Tom Gyssels
Error when sending mail using variable January 31, 2012 03:42PM |
PROCEDURE loc_SendMail() LOCAL recipients is array of string MyEmail is Email IF NOT EmailStartSMTPSession("HelpdeskSend","","relay.skynet.be") THEN RESULT Null END EDT_Recipient=Replace(EDT_Recipient,";",",") StringToArray(EDT_Recipient,recipients,",") FOR EACH sRecip OF recipients ArrayAdd(MyEmail.Recipient,sRecip) END MyEmail.Subject=EDT_Subject MyEmail.HTML=EDT_Content FOR EACH ROW OF LOOP_Attachments EmailLoadAttachment(MyEmail,LOOP_Attachments.ATT_AttPath) Debug("Added mail attachment: "+LOOP_Attachments.ATT_AttPath) END MyEmail..Sender="Helpdesk <helpdesk@domain.com>" MyEmail..SenderAddress="helpdesk@domain.com" IF ArrayCount(MyEmail.Recipient)>0 THEN IF NOT EmailSendMessage("HelpdeskSend",MyEmail,True) THEN Debug("<WIN_SendMail>"+"Mail kon niet verzonden worden"+ErrorInfo(errFullDetails)) ELSE Debug("<WIN_SendMail>"+"Mail met succes verzonden") END END EmailCloseSession("ReportSend") RESULT MyEmail
Jose Antonio Garrido
Re: Error when sending mail using variable August 25, 2012 02:02AM |
Allard
Re: Error when sending mail using variable June 30, 2013 11:34PM |