OI sendmail function (OpenInsight 32-bit)
At 20 JUN 2012 08:18:02AM Steve Penney wrote:
Hi,
With reference to:
retval = sendmail(MailServerName,SenderName,Recipient,Subject,Body,cc,bcc,ReplyTo,Content,FileList,UserName,Password)
Is there anyway to know for certain whether an email was sent successfully or not, by looking at the contents of retval.
I think that retval includes information received from the mailserver?
Is there perhaps some documentation on the retval message?
Reason being we have some emails that are not going through and we want to identify these and uderstand why they didn't go through.
Thanks in advance,
Steve Penney
At 20 JUN 2012 11:06AM Bob Orsini wrote:
Try using rti_cdomail function. This does return a microsft error on failure.
At 25 JUN 2012 11:11AM Jared Bratu wrote:
You may also want to check with your mail server administrator and have him check the logs for messages that don't get delivered. Unfortunately email delivery can't be guaranteed, you can only guarantee how far it traveled to the recipient until it leaves your network/mail server. Once it leaves the network/mail server any number of spam filters can get in the way.
You'll increase your delivery success by relaying through highly trusted mail servers with good SPAM reputations. I.e. Postini, Gmail, etc.
Checking the return value of Sendmail or CDOMail will only prove that the local mail server received a copy. Checking the local mail server logs will establish that the message was delivered to the recipients network.