Re: Semd mail using gmail SMTP server (General questions)
Hi John,
Can you please try something like this for sending email using Gmail SMTP server
[code]wodSmtp1.Security = SecurityImplicit
wodSmtp1.Authentication = AuthLogin
wodSmtp1.Login = someone@gmail.com
wodSmtp1.Password = somepass
wodSmtp1.Hostname = smtp.gmail.com
wodSmtp1.Port = 465wodSmtp1.SendSimple someone@gmail.com , to@gmail.com , test , testing [/code]
Let us know how it goes.
Regards,
DrazenHi Drazen,
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.Regards,
John.[:smile:]
Hi again,
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,
John.
Complete thread:
- Semd mail using gmail SMTP server - JohnW, 2009-06-01, 11:34
- Re: Semd mail using gmail SMTP server - woddrazen, 2009-06-01, 11:41
- Re: Semd mail using gmail SMTP server - JohnW, 2009-06-01, 12:02
- Re: Semd mail using gmail SMTP server - Johnw, 2009-06-01, 20:57
- Re: Semd mail using gmail SMTP server - wodDamir, 2009-06-01, 21:26
- Re: Semd mail using gmail SMTP server - Johnw, 2009-06-01, 20:57
- Re: Semd mail using gmail SMTP server - JohnW, 2009-06-01, 12:02
- Re: Semd mail using gmail SMTP server - woddrazen, 2009-06-01, 11:41