See comments at end.
On 14/03/2013 16:47, RC wrote:
> Hi Clinton
>
> Sorry to hear no luck. If I may ask which linux version are you using
> ? I have only used the sample code on Windows, but am interested in
> trying on linux, alternatively under wine.
>
> regards
> Rob
>
> On Thu, Mar 14, 2013 at 4:21 PM, Clinton Shane Wright
> <clintona...@gmail.com <mailto:clintona...@gmail.com>> wrote:
>
> Hi,
>
> I tried all the various methods of working with this code, even
> the suggested method you gave and with no avail. I believe it had
> something to do with the libraries of my linux operating system.
> Not exactly sure. Do try the example code given here Tibor and
> report back if that works for you.
>
> Kind regards,
>
> Clinton Wright
>
> On Thu, Mar 14, 2013 at 4:00 PM, RC <bal...@gmail.com
> <mailto:bal...@gmail.com>> wrote:
>
> 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
> <mailto:recipie...@gmail.com>,recipie...@gmail.com
> <mailto:recipie...@gmail.com>';
> SenderEmail = 'send...@gmail.com <mailto: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
> <mailto:tibor.a...@gmail.com>> wrote:
>
> Hey Clinton,
>
> I've got the same error, got any solution so far?
>
> Thanks,
> Tibor
>
:
I have managed after a couple of days to figure out the problem with
sending with gmail.
I have had success with lazarus on windows and expect that it would also
work on my linux. - That's why I used Lazarus. ;^)
Apart from the right port settings, when doing the commands one at a
time the response from gmail showed that I was logged out after the
initial login when I tried to prepare the connection.
What is the error you get? - Not working? What step is not working?
I'll go digging up the code.
(Side issue: top posting? Should I conform?)
Regards
--
*Danie Wessels
*
------------------------------------------------------------------------------
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