|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Jmail - add recipients name?
I have a Jmail form with several texfields incl. email and name of users. The mail is sent from me "John Doe" "email@domain.com" to the user filling out the form. When the e-mail is being sent it looks like this:
From: "John Doe" "email@domain.com" To: "user@domain.com" "user@domain.com" Subject: E-mail sent from formular at website. Body: This is the body-text in the e-mail..... This is how I sent the e-mail: 'Senders email address objJMail.Sender = strMyEmailAddress 'Senders name objJMail.SenderName = "John Doe" 'Who the email is sent to objJMail.AddRecipient Request.Form("email") 'Who the blind copies are sent to objJMail.AddRecipientBCC strMyEmailAddress 'Set the subject of the e-mail objJMail.Subject = "E-mail sent from formular at website" 'Set the main body of the e-mail (HTML format) objJMail.HTMLBody = strBody Now to my question: How do I add the receivers name to the outgoing e-mail sent from the form, so the e-mail looks like this: From: "John Doe" "email@domain.com" To: "Name Lastname" "user@domain.com" Subject: E-mail sent from formular at website. Body: This is the body-text in the e-mail..... Hope anyone can help me? ![]() |
|
#2
|
|||
|
|||
|
You can add two arguments to the AddRecipient method, one is the name and the other the email address for the name. I don't recall which argument is which, you can check the JMail documentation.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Jmail - add recipients name? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|