Re: Difference between wodSmtp1.SendMessage and w (General questions)

by wodDamir, (5390 days ago) @ nightwalker83

Hi,

In Blocking mode, you need to handle possible exceptions using the On Error statement, since the component won't handle them automatically in that case. That's probably why the events aren't reached.

Also, the following code works just fine on gmail:

[code]smtp.HostName = smtp.gmail.com
smtp.Security = SecurityImplicit
smtp.Login = username
smtp.Password = password
smtp.Authentication = AuthLogin
smtp.Blocking = True
smtp.Connect

smtp.Message.From = e-mail
smtp.Message.To = e-mail

smtp.Message.Subject = test
smtp.Message.Text = testing

smtp.SendMessage[/code]

Can you try the same code?

Regards,
Damba

locked

Complete thread: