Click here to Skip to main content
15,885,032 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have been struggling with this for a week. My sendmail.asp works BUT none of the form info is included. Html form named "bodycopy" I have tried Request.form "Fieldname" doesn't work, I have tried body =("bodycopy") doen't work.
Webpage has <form Method="post" action="sendmail.asp"
Here is the sendmail.asp code: Supplied by my host.
FromName        = "Reservations"
fromAddress     = "larry@charrlin.com"
recipientName   = "Larry"
recipientAddress= "larry@charrlin.com"
subject         = "Enter a Subject Title Here!"
Template	= "Template.html"
body		= "Bodycopy"
html		="Yes"

'-----YOU DO NOT NEED TO EDIT BELOW THIS LINE-----


sentTo = "NOBODY"
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromName = fromName
Mailer.FromAddress = fromAddress
Mailer.RemoteHost = "mrelay.perfora.net"
if Mailer.AddRecipient (recipientName, recipientAddress) then
sentTo=recipientName & " (" & recipientAddress & ")"
end if
Mailer.Subject = subject
Mailer.BodyText = body


if Mailer.SendMail then
Response.Write "The mailing was sent to: " & sentTo & ""
else
Response.Write "Mail send failure. Error was " & Mailer.Response
end if
%>


Need help
Thanks
Larry [DELETED]@charrlin.com

[edit]Code block added, "Treat my content as plain text..." option disabled - OriginalGriff[/edit]
Posted
Updated 4-Nov-21 4:34am
v2
Comments
OriginalGriff 22-Jan-12 9:26am    
Never post your email address in any forum, unless you really like spam! If anyone replies to you, you will receive an email to let you know
Member 15329613 4-Nov-21 11:37am    
It looks like the only thing showing in the body is the string "Bodycopy" and that's because that's what you wrote. If you want something different you need to put something different. Not sure what you want us to do.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900