error '8004020e'

error '8004020e'

Post by SmVzc » Fri, 09 Dec 2005 06:04:03


I'm using CDOSYS to email out of a web page. Here's the code:

emailSubmitter = rs("emailaddr")
Set myMail.Configuration = objConfig
mymail.From = "Training Event Approval/Decline"
myMail.To = emailSubmitter
myMail.Subject = "Training Form Approval"
myMail.HTMLBody = strBody

When I send it out with a variable in myMail.From I get an error '8004020e'.
When I put a regular email address, like XXXX@XXXXX.COM , it works ok.
What's going wrong?
 
 
 

error '8004020e'

Post by Ray Costan » Fri, 09 Dec 2005 06:50:12

A validly formatted address is required. You can do something like:

mymail.From = "Training Event Approval/Decline < XXXX@XXXXX.COM >"

Ray at work