Re: Difference between wodSmtp1.SendMessage and w - WeOnlyDo Discussion board

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

by nightwalker83, Saturday, August 07, 2010, 12:41 (5221 days ago) @ wodDamir

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


I receive a connection timed out error.


Complete thread: