tutorials & features
on Jun 4, 2008 at 3:42:07 pm
I have a contact form in a Flash site that I am trying to have access a ASP file for submission. I keep getting the following error when I test:
CDO.Message.1 error '8004020d'
At least one of the From or Sender fields is required, and neither was found.
/contact.asp, line 20
Here is the ASP code I am using:
for i=1 to 7
message=message + Request("message")
smtpServer = "smtp.1and1.com"
smtpPort = 25
name = Request("Your_Name:")
Set myMail = CreateObject("CDO.Message")
myMail.Subject = "from " & name
myMail.From = Request("Your_Email:")
myMail.To = Request("recipient")
myMail.HTMLBody = "
" & message & ""
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = smtpServer
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = smtpPort
I had to remove the brackets at the front and on the end in order to get the code to show up in this post.
What is missing here? I use a 1and1.com MS server, so I cannot use the PHP option. I would really appreciate any advice. Thanks in advance!
Jeremey @ DI
Return to posts index
All Rights Reserved