Hi Clinton / Tibor
Here is some sample code I use to send emails with Synapse.
2 qualifiers to this code :
1. I have not tied to send to gmail with it
2. I have not used it with SSL/TLS
In both cases I cannot say whether it will work under those conditions.
procedure TForm1.SendMailMessage;
var
MailSubject : string;
mailmsg : TStrings;
const
SmtpServerName = 'your.smtp.server.address.here';
SmtpServerPort = 'your.smtp.server.port.here';
SmtpServerUser = 'your.smtp.server.login.here';
SmtpServerPassword = 'your.smtp.server.password.here';
RecipientEmail = 'recipie...@gmail.com,recipie...@gmail.com';
SenderEmail = 'send...@gmail.com';
begin
Mailmsg := TStringList.Create;
MailSubject := 'My test email';
{load message details into body}
with MailMsg do
begin
Clear;
Add(' ');
Add('Place body of email here');
Add('Add another line to email body');
end;
{send email}
try
if SendToEx(SenderEmail, RecipientEmail, MailSubject , SmtpServerName,
MailMsg, SmtpServerUser, SmtpServerPassword) = True then
ShowMessage('Success !')
except
ShowMessage('Error ! Failed to send email');
end;
MailMsg.Free;
end;
On Sat, Mar 9, 2013 at 4:11 AM, Tibor <tibor.a...@gmail.com> wrote:
> Hey Clinton,
>
> I've got the same error, got any solution so far?
>
> Thanks,
> Tibor
>
>
>
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> _______________________________________________
> synalist-public mailing list
> synalist-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/synalist-public
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public