Reply to topic
ASP FORMMAIL
snordman


Joined: 26 Feb 2009
Posts: 1
Reply with quote
My url is www.HumanElementCenter.com
I have a form on my "join us.html" page
I have the following code in my aspformmail.asp page

<%
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromName = "humanelementcenter.com"
Mailer.FromAddress= "info@humanelementcenter.com"
Mailer.RemoteHost = "mail.humanelementcenter.com"
Mailer.AddRecipient "Name","susane@humanelementcenter.com"
Mailer.AddExtraHeader "X-MimeOLE:Produced humanelementcenter.com"
Mailer.Subject = "Form Submission"

strMsgHeader = "Form Information Follows: " & vbCrLf
for i = 1 to Request.Form.Count
strMsgInfo = strMsgInfo & Request.Form.Key(i) & " - " & Request.Form.Item(i) & vbCrLf
next
strMsgFooter = vbCrLf & "End of form information"
Mailer.BodyText = strMsgHeader & strMsgInfo & strMsgFooter
if Mailer.SendMail then
Response.Write "Form information submitted..."
else
Response.Write "Mail send failure. Error was " & Mailer.Response
end if
set Mai[/color]ler = Nothing
%>

and I get the following error

"Mail send failure. Error was 503 Bad sequence of commands"

is there something wrong with my code?
cburns


Joined: 03 Feb 2008
Posts: 11
Location: Newark, DE
Reply with quote
Looks like you just had a simple typo in your form...the email address susane@humanelementcenter.com doesn't exist. I updated that to susan@ for you and the form works like a charm now.
malik


Joined: 06 Jan 2007
Posts: 32
Reply with quote
Does anyone have any recommendations for free scripts/solutions for preventing formmail spam.
nathacof
Forum Admin

Joined: 24 Oct 2006
Posts: 192
Location: Dover, DE
Reply with quote
http://recaptcha.net/
ASP FORMMAIL
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic