Email Issue Detail: (Email notifications failed from Dynamics AX 2012 R3 CU8)
- Client using Gmail SMTP Server for managing employee emails (outgoing Mail Server: smtp.gmail.com / Port: 587)
- Email configurations done using following URL (all email setting done successfully)
https://technet.microsoft.com/en-us/library/aa834374.aspx
- Email sending failed after batch job execution.
after debugging sysEmailDistributor Class - ProcessEmails Method following exception thrown:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --->System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. 61sm20055911wrs.29 - gsmtp
at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, MailAddress from, Boolean allowUnicode)
at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception)
at System.Net.Mail.SmtpClient.Send(MailMessage message)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.Dynamics.AX.ManagedInterop.ClrBridgeImpl.InvokeClrInstanceMethod(ClrBridgeImpl* , ObjectWrapper* objectWrapper, Char* pszMethodName, Int32 argsLength, ObjectWrapper** arguments, Boolean* argsAreByRef, Boolean* isException)
Please suggest? Is Dynamics AX support GMail smtp (SSL) or not?