Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Setting Reply-To on Outbound Emails

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,198 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans