I am using a asp script to send a form to an email account. My original code
Dim emailFrom
Dim emailTo
emailFrom = Request.Form("emailAdd")
emailTo = "[email protected]"
Set oMail.Configuration = iConf
oMail.To = email
oMail.From = emailFrom
oMail.CC= cc
oMail.Subject = subject
oMail.TextBody = BodyBB
oMail.Send
provided me with this error
CDO.Message.1 (0x8004020D)
At least one of the From or Sender fields is required, and neither was found.
okay, so I found a posting that suggested to change to To and From fields to
oMail.To = "[email protected]"
oMail.From = "&emailFrom&"
which does not give me an error... however,
when it shows up in my in box it looks like
&emailFrom&@mydomian.com
which I really want it to show the person from whom the email was sent
when I use the request.form("emailAdd")
I get the same error....
any ideas???
thanks in advance
tawandaI know it sounds obvious but have you done a response.write to check that the emailFrom variable actually has a value?yes, the response.write() shows the email address entered on the form.
AND.. yesterday, I tried a number of different things and when I put an actual email address in the field like...
oMail.From = "[email protected]"
it works... (only if that address is an address on our email server
some of the other results I recieved with different sytax were
<!-- e --><a href="mailto[email protected]">[email protected]</a><!-- e -->
and I managed to get alot in the bad mail and the error there was
Reporting-MTA: dns;www2
Received-From-MTA: dns;www2
Arrival-Date: Thu, 4 Aug 2005 15:58:06 -0500
Final-Recipient: rfc822;[email protected]
Action: failed
Status: 5.0.0
and sometimes this same error showed up in my drop folder
in my event viewer it showed an error of
Expecting string input. The function expects a string as input..
so my ultimate conclusion is that something is wrong in the way that I set the
oMail.From = variable
but I cannot find the solution
thanksThanks for all the help
I think now it might be a DNS issue on the web server....
Dim emailFrom
Dim emailTo
emailFrom = Request.Form("emailAdd")
emailTo = "[email protected]"
Set oMail.Configuration = iConf
oMail.To = email
oMail.From = emailFrom
oMail.CC= cc
oMail.Subject = subject
oMail.TextBody = BodyBB
oMail.Send
provided me with this error
CDO.Message.1 (0x8004020D)
At least one of the From or Sender fields is required, and neither was found.
okay, so I found a posting that suggested to change to To and From fields to
oMail.To = "[email protected]"
oMail.From = "&emailFrom&"
which does not give me an error... however,
when it shows up in my in box it looks like
&emailFrom&@mydomian.com
which I really want it to show the person from whom the email was sent
when I use the request.form("emailAdd")
I get the same error....
any ideas???
thanks in advance
tawandaI know it sounds obvious but have you done a response.write to check that the emailFrom variable actually has a value?yes, the response.write() shows the email address entered on the form.
AND.. yesterday, I tried a number of different things and when I put an actual email address in the field like...
oMail.From = "[email protected]"
it works... (only if that address is an address on our email server
some of the other results I recieved with different sytax were
<!-- e --><a href="mailto[email protected]">[email protected]</a><!-- e -->
and I managed to get alot in the bad mail and the error there was
Reporting-MTA: dns;www2
Received-From-MTA: dns;www2
Arrival-Date: Thu, 4 Aug 2005 15:58:06 -0500
Final-Recipient: rfc822;[email protected]
Action: failed
Status: 5.0.0
and sometimes this same error showed up in my drop folder
in my event viewer it showed an error of
Expecting string input. The function expects a string as input..
so my ultimate conclusion is that something is wrong in the way that I set the
oMail.From = variable
but I cannot find the solution
thanksThanks for all the help
I think now it might be a DNS issue on the web server....