Forums
This topic is locked
Sending Mail syntax help???
Posted 05 Mar 2001 03:11:08
1
has voted
05 Mar 2001 03:11:08 Pat Gaudreau posted:
Hello,I am trying to have an email sent upon submission of a form...I am not using CDO. Instead I am using the AspEmail component from Persits Software. So far it works well, I have been able to submit the form and the mail is sent.
It retreives the email address from the form and also adds an Item Number from the form to the subject.
I am sending the mail as html (which maybe where my probelm lies, but I want to include a dynamic link as well so I need it to be html mail.) Anyhow...
I want to place some of the submitted form values into the body of the mail and I am having a hard time getting this done!
Here's what I have.....
<pre id=code><font face=courier size=2 id=code><% If Request("Submit"

Set Mail = Server.CreateObject("Persits.MailSender"

Mail.Host = "mail.auctionrelief.com"
Mail.From = " "
Mail.AddAddress Request("Mail"

Mail.Subject = "YOU'RE THE WINNING BIDDER OF EBAY AUCTION "&Request("Inumber"

Mail.IsHTML = True
Mail.ContentTransferEncoding = "Quoted-Printable"
Mail.Body = "<html><head></head><body><font size=""2"">Congratulations on being the high bidder on the"&Request("Inumber"


On Error Resume Next
Mail.Send
If Err <> 0 Then
Response.Write "An error occurred: " & Err.Description
End If
Set Mail = Nothing
Response.Redirect("end.asp"

End If
%> </font id=code></pre id=code>
Any help on this would be extremely appreciated...Thank You