Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

Email Configuration

Posted on by 105
I am working with an environment that wants to utilize Postmark mail service to take advantage of the DKIM or DMARC security.  Postmark has SMTP connection settings, but we have been unable to get GP to send successfully using the Postmark service.  Has anyone done this before?  

The other interesting fact I found out was the GP uses Microsoft Graph to connect to email.  Has anyone captured the specifics of the call.  I am wondering if certain information is not being recorded correctly in GP and that is why it is not working.  Any information would be appreciated as I was informed there the resources are limited with the support desk.
  • Suggested answer
    John Frandolig Profile Picture
    John Frandolig 12 on at
    Email Configuration
    Hi Pete,
     
    One option that would allow you to send through Postmark's SMTP email service, using GP emailing, is Accountable Software's Forms Printer product, which now for GP 18.x,  has a feature called "email replacer" which modifies the last email step when GP Emails, to use an Alternate email engine which supports SMTP, so can send the mails through Postmark or other 3rd party email providers that support SMTP.
     
    If you or anyone wants more information about it, contact sales@accountable.com , or techsupport@accountable.com
     
    Regards,
     
    John Frandolig, Accountable Software.
  • Email Configuration
    Hi Pete,
     
    David is correct - all emails you send via DynamicsGP are going to go out via the MSGraph interface added to DynamicsGP as a Visual Studio add-in.  If you wanted to use Postmark, you would need to hook into the MSGraphEmailSendEmail form procedure on the syEmailObj, and prevent Microsoft's VS add-in from firing. This would mean you take over ALL emailing in DynamicsGP , including emails that other add-in products send through DynamicsGP , as they end up going out through this point as well most likely.  On the upside, all the work of setting and validating the various parameters has been done for you. On the downside, you are limited to whatever email functionality DynamicsGP supports.  Also know that this endpoint has changed in the last three releases of DynamicsGP , so your integration may need to change depending on the version of DynamicsGP your customer is on and change again when they upgrade.
    This is the parameter block for the 18.6 version of MSGraphEmailSendEmail:
    in    text                toMailaddress;
    in    text                ccMailaddress;
    in    text                bccMailaddress;
    in    string                Subject;
    in    text                Body;
    in    integer                BodyContentType;
    in    text                Attachmentfilepaths;
    in    text                Attachmentfilenames;{This is added for workflow doc attach where file name on disk will be different}
    out string                errorcode;
    out string                errormessage;
    in     text                ReplyToMailaddress; {93741}
    in  boolean                UseSharedMailbox; {93996}
    in  boolean                SuppressExceptionWarning;
     
    Know that the Attachmentfilepaths and filenames are separated by pipe characters (|), and in earlier versions of this, only supported a small number of attachments as the text field was initially a string, and then a 4000 character text field. Now it is 32,000 I think. Still, when you have files that are stored in the local temp folder, the paths to each one can easily be over a hundred characters, so it goes fast. You also will need to take care of authentication in your code. Note, there is no who the message is from at this point in the code, so you would need to figure that out.  The ReplyToMailAddress is the shared mailbox name if the UseSharedMailbox param is true, so that may be useful.
     
    I think it can be done, as long as you can accept the trade offs and responsibility.
     
    Paul
  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,917 Most Valuable Professional on at
    Email Configuration
    Hi Pete
     
    I don't know the specifics of the .Net Add-in that is handling the MFA email via Microsoft Graph.
     
    I am pretty sure that the MFA code being used is not using SMTP though. SMTP is disabled by default now.
     
    The non MFA mode will try and call Exchange Web Services which is not SMTP either.
     
    Not sure that this helps.
     
    Regards
     
    David 

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans