![]() |
| ASPmail |
|
Groll
|
In aspmail, does anyone know how to get the mail FROM field to reflect what the user enters in their email field so that all I have to do is hit REPLY and it goes straight back to the email address that they listed?
|
||||||||||||
|
|
|||||||||||||
|
Josh
Forum Regular
|
Care to display your code?
|
||||||||||||
|
|
|||||||||||||
| followup |
|
Groll
|
Basically, I need this field in the aspmail.asp file: Mailer.FromAddress= "" to display the field in my form that I have labeled as 'Email'
Is it something like this? Mailer.FromAddress= "Request.QueryString("Email")" So when the user of the form enters their email address, it comes to me with the 'from' field as whatever they input into the Email field.... |
||||||||||||
|
|
|||||||||||||
|
ssuhmann
|
You could add their name to the reply to address.
http://www.aspemail.com/manual_object.html#AddReplyTo This would allow you to reply to them depending on how your software works. |
||||||||||||
|
|
|||||||||||||
|
Josh
Forum Regular
|
*kicks Scott* You beat me to it!!!
hey man I'm gonna call you soon - we'll go get some SledgeHammers |
||||||||||||
|
|
|||||||||||||
|
Groll
|
still slightly confused...where does this tag go? In the form, or the aspmail instructions?
Sub AddReplyTo(Address As String, Optional Name) Adds an email address and optionally the corresponding full name to the message's Reply-To: list. This method can be called multiple times per message.
|
||||||||||||||
|
|
|||||||||||||||
|
Josh
Forum Regular
|
wouldn't it be like this?
|
||||||||||||||
|
|
|||||||||||||||
|
Groll
|
No, i mean in the actual form there is an email address field for them to put in their email address. I want the replyto address to be relative for that particular email address that they type in, not a permanent email address that I manually put in there. make sense?
|
||||||||||||
|
|
|||||||||||||
|
Josh
Forum Regular
|
Sorry about that... I got you now... use the ReplyTo property
http://www.bizclasshosting.com/faq/webhostingplans/E-mail/568-aspmail_properties.htm
|
||||||||||||||
|
|
|||||||||||||||
|
Groll
|
Thanks for the info. Actually, I found the exact string I needed. For those who had a similar quesion, when putting in an email field in your form and you want to write BACK to that email address, input this:
Mailer.ReplyTo= Request("Email") As long as the field is names Email this should work. |
||||||||||||
|
|
|||||||||||||
| ASP Mail REPLY TO email address given in Form * Please Help |
|
aerojonny
|
Any Ideas what I am doing Wrong? In the email generated It says Nams email, not what the form generates....HELP
<% Set Mailer = Server.CreateObject("SMTPsvg.Mailer") Mailer.FromName = "Name" Mailer.ReplyTo= Request("Email") Mailer.FromAddress= "Email" Mailer.RemoteHost = "mail.company.com" Mailer.AddRecipient "Reservation Request", "me@company.com" Mailer.Subject = "company.com | Rental Inquiry" strMsgHeader = "Contact Information follows" & vbCrLf for each qryItem in Request.Form strMsgInfo = strMsgInfo & qryItem & " - " & request.Form(qryItem) & vbCrLf next strMsgFooter = vbCrLf & "End of form information" Mailer.BodyText = strMsgHeader & strMsgInfo & strMsgFooter if Mailer.SendMail then Response.Write "Thank you, your information was submitted...We will contact you soon!" else Response.Write "Mail send failure. Error was " & Mailer.Response end if set Mailer = Nothing %> |
||||||||||||
|
|
|||||||||||||
|
bobum
Elvis Fanatic
![]()
|
Where does it say "Nams email"?
In the Subject? In the To? In the ReplyTo? If I were a betting man I would bet that you were getting the FromName Field displaying "Name" and the FromAddress Field displaying "Email" becuase that's what you are setting them to here :
Just a guess (since I'm not familiar with ASPMail) I'd say you might want to do something similar to this
|
||||||||||||||||
|
|
|||||||||||||||||
| ASPmail |
|
||
|



