|
-
May 2nd, 2002, 02:47 AM
#1
Thread Starter
Frenzied Member
ASP and mailer.addRecipient
I am using JMAil, and my code works fine except the addRecipient-method. I have used this code, but I never recieve any answer when the mail is written.
Code:
<%
mailer = Server.CreateObject("JMail.SMTPMail");
mailer.ServerAddress = "hpl.dk";
mailer.Sender = Request.Form("sender");
mailer.Subject = Request.Form("subject");
mailer.Body = Request.Form("body");
mailer.ReturnReceipt = true;
mailer.AddRecipient(Request.Form("modtager"));
if (mailer.Execute()) {
Response.Write("The message is sent");
} else {
Response.Write("Error!. ");
Response.Write(mailer.ErrorMessage);
}
%>
-
May 2nd, 2002, 03:29 AM
#2
Thread Starter
Frenzied Member
Sorry for taking Your time, I forgot to declare the variable "var modtager = ...", this solved my problem.
-
May 2nd, 2002, 04:46 AM
#3
Junior Member
Hi,
The .ReturnReceipt = true indicated that the .To will receive a popup message (depending on ReaderSoftware) asking him if he wants to send a "I have opened this e.mail" notification.
If yes, then he will send a notification e.mail (ReturnReceipt) to the adress specified in the Request.Form("sender").
If no, then you will not receive anything.
I normally validate e.mail adresses using nSoftware IP*Works V5 MX50 component, before I do the sending, all o them.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|