Sending Email via SMTP

kaybeekaybee Member Posts: 49
Hi, Is there the ability to send an email using C/Side code? I would like to send an email via SMTP and not through the Outlook client. I am also not using Exchange.

Comments

  • infonoteinfonote Member Posts: 233
    kaybee wrote:
    Hi, Is there the ability to send an email using C/Side code? I would like to send an email via SMTP and not through the Outlook client. I am also not using Exchange.

    This should help.

    http://mibuso.com/forum/viewtopic.php?f=7&t=3475&hilit=smtp+ocx
  • kaybeekaybee Member Posts: 49
    I've just installed the OCX, but there's no option to set a password to use whilst sending via SMTP? I am trying to do this via Gmail SMTP. Am I doing this correctly?
    Email.SetToAdress := 'TO_EMAIL';
    Email.SetFromAdress := 'FROM_EMAIL';
    Email.SetSubject := 'Test Email from Navision';
    Email.SetHost := 'smtp.gmail.com';
    Email.NewMessage('FROM_EMAIL', 'Test Email from Navision');
    Email.Send;
    MESSAGE(FORMAT(Email.WasSuccessful));
    
Sign In or Register to comment.