I use the plugins.mail.sendMail but I don't find how to have a reply when the recipient has read it.
Does somebody know the solution ?
Thanks a lot!
Stefania
var vSmtp = plugins.MailPro.SMTPAccount();
if (application.isInDeveloper()) {
vSmtp.host = 'localhost';
vSmtp.userName = null;
vSmtp.password = null;
vSmtp.requiresAuthentication = false;
} else {
//Production
vSmtp.host = 'smtp.example.com';
vSmtp.userName = "postmaster@example.com";
vSmtp.password = "XXXXXXX";
vSmtp.requiresAuthentication = true;
vSmtp.useTLS = true;
}
var vSuccess = vSmtp.connect();
if (vSuccess === false) {
throw new Error("failed to connect to email server");
}
var message = vSmtp.createMessage();
message.addRecipient("someone@example.com","TO");
message.fromAddresses = "postmaster@example.com";
message.subject = "A subject";
message.plainMsg = "The plain message body";
message.addHeader("Disposition-Notification-To", "postmaster@example.com"); // <-----------
vSmtp.sendMessage(message);
Users browsing this forum: No registered users and 9 guests