Results 1 to 3 of 3

Thread: ASP and mailer.addRecipient

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Question 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);
    	}
    %>

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049
    Sorry for taking Your time, I forgot to declare the variable "var modtager = ...", this solved my problem.

  3. #3
    Junior Member
    Join Date
    May 2002
    Posts
    29
    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
  •  



Click Here to Expand Forum to Full Width