Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Setting Reply-To on Outbound Emails

(0) ShareShare
ReportReport
Posted on by 5

Is there a way to default the reply-to email address for all marketing emails?

  • Suggested answer
    cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Setting Reply-To on Outbound Emails

    Hi Brittany,

    I have splitted your question from the old thread.

    If there is any thread which could be related or similar to your problem, feel free to open a new thread at same time. A new thread would be more likely to attract the attention of users in the forum.

    For your question itself:

    yes, we can run a custom javascript function to set the default reply-to email address.

    1. Create a JScript type web resource, add following code to the file.

    function setDefault(executionContext) {
      var formContext = executionContext.getFormContext();
      /**
       *  192350000 Draft   
       *  192350002 Stopped 
       **/ 
      if (formContext.getAttribute("statuscode").getValue() === 192350000 || 
          formContext.getAttribute("statuscode").getValue() === 192350002) {
          formContext.getAttribute("msdyncrm_replytoemail").setValue('xxx@outlook.com');
      }
    }

    2. Open Designer form of Marketing Email entity, top gear icon > advanced settings > customizations > customize the system > entities > marketing email > forms > Designer.

    pastedimage1600149336429v1.png

    3. In form editor, click form properties button to add the web resource, then running the custom function at OnLoad event of form.

    8132.JPG

    When adding the function, we need to check the two options in the screenshot.

    pastedimage1600149678347v2.png

    Now when a marketing email is in draft or stopped status, the reply-to address will be prefilled automatically.

    2480.JPG

    Regards,

    Clofly

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,468 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,287 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans