error '8004020e'

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jess

    error '8004020e'

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

    emailSubmitter = rs("emailaddr" )
    Set myMail.Configur ation = 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 someone@comed.c om, it works ok.
    What's going wrong?
  • Ray Costanzo [MVP]

    #2
    Re: error '8004020e'

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

    mymail.From = "Training Event Approval/Decline <noreply@yourdo main.kom>"

    Ray at work


    "Jess" <Jess@discussio ns.microsoft.co m> wrote in message
    news:F07786B5-77E4-4747-937D-A3AA61D0B284@mi crosoft.com...[color=blue]
    > I'm using CDOSYS to email out of a web page. Here's the code:
    >
    > emailSubmitter = rs("emailaddr" )
    > Set myMail.Configur ation = 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 someone@comed.c om, it works ok.
    > What's going wrong?[/color]


    Comment

    Working...