Skip to main content

Posts

Showing posts with the label email

How to send emails from AX without requiring Outlook

Sending emails from AX has been somewhat of a pain when it tries to use Outlook. This post is a simple code modification to one method in \Classes\Info\reportSendMail. I did not develop this code, I merely tweaked it. The original poster's blog has disappeared, and I can only find non-working remnants all around the web of this, but it is just too useful not to repost. If you have Outlook 64bit edition, you might get the "Either there is no default mail client or the current mail client cannot fulfill the messaging request. Please run Microsoft Outlook and set it as the default mail client." Followed by an AX MAPI error. Or sometimes you may get the "A program is trying to access e-mail address information stored in Outlook."...Allow/Deny/Hlep. This change basically bypasses outlook. Put it in and give it a shot. void reportSendMail(PrintJobSettings p1) { //SysINetMail m = new SysINetMail(); System.Net.Mail.MailMessage mailM...

Configure email functionality in Dynamics AX 2012

Sally Erickson [MSFT]   14 Oct 2013 7:19 AM You can configure Microsoft Dynamics AX to automatically send email notifications to users when specific events occur. For example, Dynamics AX can send email notifications to users when documents are assigned to them for approval (as defined by a  workflow ), or when sales orders are canceled (as defined by an  alert rule ). To configure email functionality in Microsoft Dynamics AX, you’ll need to connect Dynamics AX to an SMTP mail server, enter an email address for each user, set up a batch to send the email messages, and create email templates for the specific features that you’re using (such as workflows and alert rules). The process looks like this: For step-by-step instructions on how to set this up, see this topic on TechNet:  Configure email functionality in Microsoft Dynamics AX . For instructions about how to set up email and address settings for customer contacts, see  Set up collections...