Re: Semd mail using gmail SMTP server (General questions)
Can you please try something like this for sending email using Gmail SMTP server
[code]wodSmtp1.Security = SecurityImplicit
wodSmtp1.Authentication = AuthLogin
wodSmtp1.Login = email@example.com
wodSmtp1.Password = somepass
wodSmtp1.Hostname = smtp.gmail.com
wodSmtp1.Port = 465
wodSmtp1.SendSimple firstname.lastname@example.org , email@example.com , test , testing [/code]
Let us know how it goes.
Before I was placing the properties directly into the wodsmtp1 component in Delphi's object inspector.
I then tried doing it via lines of code - and that worked! Thanks very much for your really prompt reply.
A little more testing and everything works so far, but if I send an email to a non-existent recipient, I get no error message. In my application, recipient addresses are supplied but I have no way to know in advance if they are all correct.
Is there a way of testing for a correct 'To Address'?
Thanks in anticipation,
- Semd mail using gmail SMTP server - JohnW, 2009-06-01, 11:34