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




Reply With Quote