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 = "[email protected]";
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("[email protected]","TO");
message.fromAddresses = "[email protected]";
message.subject = "A subject";
message.plainMsg = "The plain message body";
message.addHeader("Disposition-Notification-To", "[email protected]"); // <-----------
vSmtp.sendMessage(message);
Users browsing this forum: No registered users and 16 guests