Email "no-reply" address

Hi Five Team,

In my application, users send emails (Mail Merges) using my own SMTP server. I configure the context in a JavaScript function like this:

const messageContext = {};
messageContext.SMTPSubject = courrielData.smtpSubject;
messageContext.SMTPFromName = currentConfig.senderName;
messageContext.SMTPAddresses = currentConfig.to;
// … cc and bcc …
I would like to add a “Reply-To” header so that when a recipient replies, the response goes to the user’s personal email instead of my system’s “no-reply” address.

Example of what I want to achieve:

Is there a reserved property in messageContext for this (e.g., SMTPReplyTo)?

Thanks!

Jean

Hi Jean,

Thank you for bringing up this scenario.

We currently do not support this property. Please let me know if there is any alternative solution that I can assist you with.

I have notified the development team about adding this property to the message context.

Regards,
Elton S

Hi Elton,

Thanks for your reply. For the moment, I just warn the recipients that this is a no-reply email and they are asked to use the address indicated in the signature area.

Yes this property would be a nice feature in a future release :slight_smile:

Regards,

Jean

Hi Jean,

Your latest account upgrade should have the fixes for this issue.

This is an example of how you can use it:

The property ‘SMTPReplyTo’ accepts an array of emails you want to reply to.

const mailMergeContext = {SMTPToEmail: five.field.EmailAddress, SMTPToName: "Staff", SMTPReplyTo: ['riley@five.co']};

const mailResult = five.executeAction('ExtensionReportEmail', mailMergeContext);


if (mailResult.isOk() === false) {

    return five.createError(mailResult);

}

Can you please try again and let me know how that goes?

Thank you.
Elton S

Yes the SMTPReplyTo works fine! This is a very useful feature! Even though there are 2 or 3 notices in my users’ emails stating “Do not reply to this email”, there will always be people who simply click “reply” instead of using the adress in the sender’s signature. This solves a really annoying problem.

Thank you!

Jean