Jan 16, 2007 #1 Mighty Programmer Joined Feb 22, 2001 Messages 1,682 Location US Using CDO to send emails from an ASP page with objCDO as the mail object. Does objCDO.Send have any return codes to indicate success/failure and can they be used in code to test whether a mail was sent or not. Mighty
Using CDO to send emails from an ASP page with objCDO as the mail object. Does objCDO.Send have any return codes to indicate success/failure and can they be used in code to test whether a mail was sent or not. Mighty
Jan 16, 2007 #2 kss444 Programmer Joined Sep 19, 2006 Messages 306 Location US Try google. http://www.cdolive.com/cdo11.htm http://classicasp.aspfaq.com/email/can-i-get-cdo-messages-to-return-a-read-receipt.html Upvote 0 Downvote
Try google. http://www.cdolive.com/cdo11.htm http://classicasp.aspfaq.com/email/can-i-get-cdo-messages-to-return-a-read-receipt.html
Jan 16, 2007 #3 tsuji Technical User Joined Jul 25, 2001 Messages 10,675 Location US >Does objCDO.Send have any return codes to indicate success/failure Always the offical documentation first and foremost. http://msdn2.microsoft.com/en-us/library/ms871459.aspx Return Value Returns S_OK if successful, or an error value otherwise. Click to expand... Upvote 0 Downvote
>Does objCDO.Send have any return codes to indicate success/failure Always the offical documentation first and foremost. http://msdn2.microsoft.com/en-us/library/ms871459.aspx Return Value Returns S_OK if successful, or an error value otherwise. Click to expand...
Jan 16, 2007 Thread starter #4 Mighty Programmer Joined Feb 22, 2001 Messages 1,682 Location US Tried the following to test it out: Code: rtnCode = objCDO.Send() wscript.echo "Return Code: " & rtnCode When I run the script that contains this code it doesn't show any value for the return code. What does that mean? Mighty Upvote 0 Downvote
Tried the following to test it out: Code: rtnCode = objCDO.Send() wscript.echo "Return Code: " & rtnCode When I run the script that contains this code it doesn't show any value for the return code. What does that mean? Mighty
Jan 16, 2007 #5 tsuji Technical User Joined Jul 25, 2001 Messages 10,675 Location US [tt]response.write ...[/tt] Upvote 0 Downvote
Jan 16, 2007 Thread starter #6 Mighty Programmer Joined Feb 22, 2001 Messages 1,682 Location US I actually just tested it out in a VBScript script that I am currently writing just to see what the return code was. Is it likely to give a different response in an ASP page? Mighty Upvote 0 Downvote
I actually just tested it out in a VBScript script that I am currently writing just to see what the return code was. Is it likely to give a different response in an ASP page? Mighty
Jan 17, 2007 #7 tsuji Technical User Joined Jul 25, 2001 Messages 10,675 Location US In that case, no difference. Upvote 0 Downvote