SMTPMail.NewMessage('stephan.stapel@tu-clausthal.de','Subject of the mail');
SMTPMail.SetWorkMode();
SMTPMail.SetHost('gb');
SMTPMail.SetUserID('coolesau');
SMTPMail.AddLine('This is a test.');
SMTPMail.AddLine('The second line.');
SMTPMail.AddLine('Third line');
SMTPMail.AddAttachment('c:\test.txt');
SMTPMail.SetToAdress('stephan.stapel@tu-clausthal.de');
SMTPMail.Send;
IF NOT SMTPMail.WasSuccessful THEN
MESSAGE(SMTPMail.LastError);
No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
Hi
I downloaded this and got it to work using the sample code. However if I try to send to an address outside e.g. a hotmail address, I get the following message:
Comments
I downloaded this and got it to work using the sample code. However if I try to send to an address outside e.g. a hotmail address, I get the following message:
Issue RCPT TO: Command before DATA command.
Please can you help.
Thanks
Mini