|
Sending mail in webdev not working...pls help me |
Iniciado por ouk.chanvicheka, 28,abr. 2009 12:02 - 3 respuestas |
| |
| | | |
|
| |
Publicado el 28,abril 2009 - 12:02 |
Dear everybody, I try to use the build-in sending mail function as following:
EmailStartSMTPSession("ckdeveloper@gmail.com", "vicheka2009", "smtp.gmail.com",587,False) IF ErrorOccurred THEN Error(ErrorInfo(errSummary)) RETURN END //Reset the email variables //EmailReset() //Sender of the message Email.Sender="ckdeveloper@gmail.com" //Recipients of the message Email.Recipient="vvicheka@yahoo.com" Email.Cc = "ouk.chanvicheka@gmail.com" Email.NbRecipient=1 //Attachments Email.NbAttach=0
//Subject and content of message Email.Subject="Test Subject" Email.Message="Test Test Test" Email.HTML="" //Subject and content of message EmailSendMessage("ouk.chanvicheka@gmail.com",EmailOptionRéférence) IF ErrorOccurred THEN Error(ErrorInfo(errSummary)) END //Close the SMTP session EmailCloseSession("SessionSMTP")
When I run it I have debug it for the session it can create if i use this port but I got the error "Mail send fail" and generate error "ckdeveloper@gmail.com" is not a valid session id. And if i did not specified the port (default = 25 i think) and it cannot even open the session when use default port it takes a long time then error appear "cannot creation session" |
| |
| |
| | | |
|
| | |
| |
Publicado el 28,abril 2009 - 15:41 |
Hi...
Unfortunately, gmail supports only secured transmission, and emailstartsmtpsession DOESN'T (I have requested this option in version 10 or 11, without any success, so feel free to contact the support about it)... the funny thing is that you can READ emails on a gmail mailbox, but not send them... And it's still the same in version 14, in case youa re wondering
I was told lately that the next LST would contain an example on how to send email in those conditions, and I'm guessing it will not be by using internal email methods
best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
More information on http://www.fabriceharari.com
vicheka wrote:
Dear everybody, I try to use the build-in sending mail function as following:
EmailStartSMTPSession("ckdeveloper@gmail.com", "vicheka2009", "smtp.gmail.com",587,False) IF ErrorOccurred THEN Error(ErrorInfo(errSummary)) RETURN END //Reset the email variables //EmailReset() //Sender of the message Email.Sender="ckdeveloper@gmail.com" //Recipients of the message Email.Recipient="vvicheka@yahoo.com" Email.Cc = "ouk.chanvicheka@gmail.com" Email.NbRecipient=1 //Attachments Email.NbAttach=0
//Subject and content of message Email.Subject="Test Subject" Email.Message="Test Test Test" Email.HTML="" //Subject and content of message EmailSendMessage("ouk.chanvicheka@gmail.com",EmailOptionRéférence) IF ErrorOccurred THEN Error(ErrorInfo(errSummary)) END //Close the SMTP session EmailCloseSession("SessionSMTP")
When I run it I have debug it for the session it can create if i use this port but I got the error "Mail send fail" and generate error "ckdeveloper@gmail.com" is not a valid session id. And if i did not specified the port (default = 25 i think) and it cannot even open the session when use default port it takes a long time then error appear "cannot creation session"
|
| |
| |
| | | |
|
| | |
| |
Publicado el 30,abril 2009 - 11:13 |
hoi,
try use sending mail via outlook |
| |
| |
| | | |
|
| | |
| |
Publicado el 30,abril 2009 - 13:17 |
Thank you very much Fabrice and benny for giving good idea... Your idea is good and for the sending mail to spam folder now my admin will solve this problem because I am not the admin of the server wish you both succeed with your work.... Happy International New.... bonne weekend to both of you... |
| |
| |
| | | |
|
| | | | |
| | |
|