SMTP OCX v1.5

visperasvisperas Member Posts: 31
edited 2008-03-31 in Download section
i need some example for this utility.
i cant send messages

thanks

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    This is example comes from the author's website:
    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)
  • focalsysfocalsys Member Posts: 7
    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:

    Issue RCPT TO: Command before DATA command.

    Please can you help.
  • MiniMini Member Posts: 17
    Hi can you pls let me know how did you solved this problem? I am facing the same problem.

    Thanks
    Mini
Sign In or Register to comment.