web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Email Sending in Workflow

(0) ShareShare
ReportReport
Posted on by 209

Hi,

I need help regarding sending alerts with email in workflow. (PR Submitting/Approving will email Approvers/a User).

I have tried a Job first to see if my SMTP parameters are working (I use smtp.live.com).

link of the job i used: https://community.dynamics.com/ax/b/faisalfareedaxlibrary/archive/2014/12/07/send-email-from-ax-using-live-or-gmail-exchange-server

The job works and have sent the email successfully.

Now I have to do this in my workflow, so i have set up the parameters and setups needed by following the instructions in this link:

https://community.dynamics.com/ax/b/timsaxblog/archive/2016/10/31/workflow-emails-in-ax-2012

All the steps are done, and when i tested it, the alerts/batch worked.

but when checking the status in  SystemAdmin>Periodic>Email Processing>Email sending status, the status is "Waiting(0)" and for a minute it will become "Failed".
I have double checked all the settings needed before coming here to ask. If you have any inputs, its very much welcomed. Thanks.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    XSpy Profile Picture
    209 on at
    RE: Email Sending in Workflow

    Hi Fatih and Viesturs,

    Thanks for the suggestions for my newbie question.

    My parameters and settings are all correct, no need to change.

    apparently the step needed next is Full Compile then CIL (which i forgot).

    It worked after CIL and is now sending.

    Sorry for my bad and Thank you guys for helping me.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Email Sending in Workflow

    Hi Xspy,

    Like Fatih mentioned, check in AOT SysOutgoingEmailTable. Sometimes Sender email address gets malformed and you need to reedit to correct one. Once you done that - go back to E-mail sending status form and click "Restart Send" for those that have status failed. We had similar issue not while ago.

    Regards,

    V

  • Suggested answer
    fatihgork Profile Picture
    3,817 on at
    RE: Email Sending in Workflow

    Hi,

    Can you check if the sender and sendername info correct in SysOutgoingEmailTable

  • XSpy Profile Picture
    209 on at
    RE: Email Sending in Workflow

    Hi Fatih,

    I have tried email broadcast to all online user (which is only me)

    and it has succesfully sent.

    But still my workflow email is still Sending Failed after putting 3 times of retries.

    How do i deal with this, maybe i need something.

    Thanks.

  • fatihgork Profile Picture
    3,817 on at
    RE: Email Sending in Workflow

    Are you able to send mail to the same user's email with broadcast functionality?

  • XSpy Profile Picture
    209 on at
    RE: Email Sending in Workflow

    Hi Hajish and Fatih,

    Thanks for your replies.

    As of the links you have gave me, it is kind of similar to mine, thus i have also tried that. It still sending failed.

    I dont think my smtp setting is the problem because when i run the X++ Job code to send email, it works and sends email, which uses my smtp settings.

    The only problem is when the emails sent in workflow is not continuing to send and keeps on failing.

    What do you think i should see through here? thanks.

  • Suggested answer
    fatihgork Profile Picture
    3,817 on at
    RE: Email Sending in Workflow

    Hi,

    Have you already checked these two links below?

    Technet article: Configure email functionality in Microsoft Dynamics AX [AX 2012] 

    Tushar Panda's blog post: How to Send Email Notification Of Workflow 

    Also check:

    • Assigned user's e-mail settings in AX
    • Settings of your e-mail template and make sure you wrote the address you wrote in e-mail parameters.

    And an additional information: You can setup retry schedule so AX will try a few times before mails are flagged as failed.

  • Suggested answer
    Hajish Profile Picture
    460 on at
    RE: Email Sending in Workflow

    Please check the below link for SMTP setting also.

    http://www.bhsolutions.com/news/blog/how-to-setup-workflow-email-alerts-in-microsoft-dynamics-ax-2012/

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Mea_ Profile Picture

Mea_ 4

#3
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans