Sunday, March 18, 2001 09:34 PM
i am using below package for sending automail when user become member of my site but here every goes correct only body part is not mailed to receiver.except this to,from,subject mailed to receiver that is firstname.lastname@example.org is the problem,please solve this problem of my.this is the servlets.
MAIL_TO = "email@example.com"
MAIL_HOST = "mail.server.com";
subject = "Thanks for becoming Member";
body = "Dear Customer,";
SmtpClient mailer = new SmtpClient(MAIL_HOST);
PrintStream ps = mailer.startMessage();
ps.println("From: " + from);
ps.println("To: " + MAIL_TO);
ps.println("Subject: " + subject);
catch (Exception ex)
out.println("Message=" + ex.getMessage());
Wednesday, March 21, 2001 06:38 AM