Hi All -
I have been trying to send emails through WebDev, have overcome several hurdles, now it says that it's working, but the emails never come through. I have tried a couple of different mail servers - same result. I'll paste the code I'm using here.
Note - I did contact LSI and my account is set up to send emails.
Note2 - my user account is
mail@mafaofficemgr.com, password is 'password', mail server is mail.mafaofficemgr.com
Thanks!
//Start a SMTP session
EmailStartSMTPSession("test@mafaofficemgr.com", "password", "mail.mafaofficemgr.com")
IF ErrorOccurred THEN
Error(ErrorInfo(errSummary))
RETURN
END
//Reset the email variables
EmailReset()
//Sender of the message
Email.Sender="test@mafaofficemgr.com"
//Recipients of the message
Email.Recipient[1]="MasterWaldron@gmail.com"
Email.NbRecipient=1
//Attachments
Email.NbAttach=0
//Subject and content of message
Email.Subject="Test Subject"
Email.Message="Test Test Test"
Email.HTML=""
//Subject and content of message
EmailSendMessage("test@mafaofficemanager.com")
IF ErrorOccurred THEN
Error(ErrorInfo(errSummary))
END
//Close the SMTP session
EmailCloseSession("SessionSMTP")
Info("Your email was sent successfully")
// Routine to get email address
//HReadSeek(HFStudio,HFStudioID,1)
// If HFound(HFStudio) Then
// sSelEmail is String = HFStudio.Email
//Else
// Info("An Error has occurred")
//END