Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 8 Monaten
Letzter Beitrag:
vor 7 Monaten, 1 Woche
Beteiligte Autoren:
Julio Cesar, Luis Antonio Gutiérrez Flores, Mathy Dreesen, Joris, SolutionJ-Reg, Allard, Paulo Oliveira

WD20 Dont send email

Startbeitrag von Julio Cesar am 15.11.2017 13:59


I'm in trouble with my windev 20 app. Just stop to send email. I try with 2 gmail accounts, smtp2go and my internet service provider. Nothing Works.

Here is the code:

// cria sessão de envio de email
MySession is EmailSMTPSession
MySession..Name = "user@gmail.com"
MySession..Password = "password"
MySession..ServerAddress = "smtp.gmail.com"
MySession..Port = 587
MySession..Option = emailOptionSecuredTLS
// cria o anexo da mensagem
myAnexo is EmailAttach
myAnexo..Name = sAnexo
myAnexo..ContentDescription="A XML document"
// cria o corpo da mensagem

IF EmailStartSession(MySession) = True THEN
// Build an email
MyMessage is Email
MyMessage..Subject = sAssunto
MyMessage..Sender = "Brascol"
MyMessage..Message = sMensagem
// envia a mensagem
IF NOT EmailSendMessage(MySession,MyMessage) THEN
ToastDisplay("Falha ao enviar mensagem.",toastLong,vaMiddle,haCenter,DarkRed)
ToastDisplay("Mensagem enviada com sucesso.",toastShort,vaMiddle,haCenter)

Error("falha de conexão")



I think it is the use of google. Take a look at that ( settings ).



von Allard - am 15.11.2017 14:43
to check what is wrong in the error message (Falha ao enviar mensagem) include errorinfo(errfulldetails) or run it in debug and check the error message.

von Paulo Oliveira - am 15.11.2017 16:19
try setting the senderaddress parameter to the senders email address and also set the sender parameter to the senders email address, that has helped me with gmail...

von SolutionJ-Reg - am 15.11.2017 19:05

Did you see this post?


Kind regards,


von Joris - am 16.11.2017 08:29
Yes. I already see this post. Looks like google change something in gmail but i dont know.

And the EmailConfigure function is not available in WD20. :-(

von Julio Cesar - am 16.11.2017 20:08
Congratulations PC$OFT !

So, if I want to continue to send messages I need to upgrade to version 22. :sneg:

I'm almost giving up on windev.

Too many bugs and too much expensive.

von Julio Cesar - am 19.11.2017 15:07
It's not problem of windev, and it's not a bug, google simply changed it's email sending policies for smtp, you need to change the settings of your gmail account from which you are trying to send your email from.

von Luis Antonio Gutiérrez Flores - am 22.11.2017 20:48
Ok. It´s not a windev bug.

But looks like this changes only affect windev because my php and java routines still works fine with gmail.

von Julio Cesar - am 22.11.2017 22:29
What exactly needs to be changed in the settings of the gmail account?

von Mathy Dreesen - am 08.12.2017 12:02
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.