I'm having occasional email failures, when sending emails as part of a business rule. About 90% are going through fine, but the other 10% are failing. I created a custom command with the same email, and if I manually fire that off for the user it will go through. I checked my email server logs, but I don't see the email coming through. Are there additional logs somewhere that will tell me more?

by (920 points)
by (216k points)
0

Hello Ryan,

Take a look at Adaxes Event Log for any errors and/or warnings that may be related to the issue. For information on how to view it, see the following help article: http://www.adaxes.com/help/?ServiceAdmi ... ntLog.html.

by (920 points)
0

There are two errors reported. Please see below

Log Name:      Adaxes
Source:        Adaxes Service
Date:          4/8/2014 10:46:29 AM
Event ID:      0
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      Adaxes.domain.com
Description:
Softerra.Adaxes.CommandPipeline.CommandProcessingException: The following command threw an exception while being executed: Send e-mail notification (Password Change Notification). ---> System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed.
   at System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine)
   at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine)
   at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller)
   at System.Net.Mail.CheckCommand.Send(SmtpConnection conn, String& response)
   at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   --- End of inner exception stack trace ---
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at #vh.#so.Send(String toAddress, String subject, String textBody, String htmlBody, String fromAddress, String cc, String bcc)
   at Softerra.Adaxes.CommandPipeline.Actions.SendMailNotificationAction.ExecuteAction(IAdmTop targetObject)
   at Softerra.Adaxes.CommandPipeline.Actions.ActionBase.Execute(IAdmTop targetObjectArg)
   at Softerra.Adaxes.CommandPipeline.Actions.ActionBase.Execute(ICommand command)
   --- End of inner exception stack trace ---
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Adaxes Service" />
    <EventID Qualifiers="0">0</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2014-04-08T14:46:29.000000000Z" />
    <EventRecordID>2076566</EventRecordID>
    <Channel>Adaxes</Channel>
    <Computer>Adaxes.domain.com</Computer>
    <Security />
  </System>
  <EventData>
    <Data>Softerra.Adaxes.CommandPipeline.CommandProcessingException: The following command threw an exception while being executed: Send e-mail notification (Password Change Notification). ---> System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed.
   at System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine)
   at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine)
   at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller)
   at System.Net.Mail.CheckCommand.Send(SmtpConnection conn, String& response)
   at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   --- End of inner exception stack trace ---
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at #vh.#so.Send(String toAddress, String subject, String textBody, String htmlBody, String fromAddress, String cc, String bcc)
   at Softerra.Adaxes.CommandPipeline.Actions.SendMailNotificationAction.ExecuteAction(IAdmTop targetObject)
   at Softerra.Adaxes.CommandPipeline.Actions.ActionBase.Execute(IAdmTop targetObjectArg)
   at Softerra.Adaxes.CommandPipeline.Actions.ActionBase.Execute(ICommand command)
   --- End of inner exception stack trace ---</Data>
  </EventData>
</Event>
Log Name:      Adaxes
Source:        Adaxes Web UI
Date:          4/8/2014 10:47:56 AM
Event ID:      0
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      Adaxes.domain.com
Description:
Softerra.Adaxes.Web.Common.FatalErrorException: An unhandled exception occured (for details, see messages below). ---> Softerra.Adaxes.Web.Common.FatalErrorException: Please enable cookies
   at Softerra.Adaxes.Web.UI.Common.Pages.PageBase.EnsureBrowseIsCompatible()
   at Softerra.Adaxes.Web.UI.Common.Pages.PageBase.OnInit(EventArgs e)
   at Softerra.Adaxes.Web.UI.Common.Pages.ViewPageBase.OnInit(EventArgs e)
   at Softerra.Adaxes.Web.UI.SignInPage.OnInit(EventArgs e)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   --- End of inner exception stack trace ---
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Adaxes Web UI" />
    <EventID Qualifiers="0">0</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2014-04-08T14:47:56.000000000Z" />
    <EventRecordID>2076567</EventRecordID>
    <Channel>Adaxes</Channel>
    <Computer>Adaxes.domain.com</Computer>
    <Security />
  </System>
  <EventData>
    <Data>Softerra.Adaxes.Web.Common.FatalErrorException: An unhandled exception occured (for details, see messages below). ---> Softerra.Adaxes.Web.Common.FatalErrorException: Please enable cookies
   at Softerra.Adaxes.Web.UI.Common.Pages.PageBase.EnsureBrowseIsCompatible()
   at Softerra.Adaxes.Web.UI.Common.Pages.PageBase.OnInit(EventArgs e)
   at Softerra.Adaxes.Web.UI.Common.Pages.ViewPageBase.OnInit(EventArgs e)
   at Softerra.Adaxes.Web.UI.SignInPage.OnInit(EventArgs e)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   --- End of inner exception stack trace ---</Data>
  </EventData>
</Event>

1 Answer

by (216k points)
0 votes

Ryan,

To send emails, we use the standard .NET send mailer provided by Windows, and the error is returned by the mailer. As far as we managed to dig from the available information, the issue can be that you are simply sending emails too often.

by (920 points)
0

Thanks for taking a look. If you could add this as something to be improved in the future I'd appreciate it. I'm using this for a password change notification email, and of course we have a lot of users going through the process right away, so maybe a few bursts of 5-10 emails within a minute or two, but nothing too crazy. For now I'm just watching the log, and manually triggering emails for any that fail initially.

Ryan

by (216k points)
0

Ryan,

Thanks for the suggestion!

By the way, how is the password change triggered? Do you users do it manually or is it some kind of a Scheduled Task, Custom Command or something like that?

by (920 points)
0

Our users are doing the password change manually through the web interface. We are a K-12 school district and our users are spread across multiple operating systems, so forcing a password change through the built-in AD tools isn't ideal as it can't touch all users. Once a year, we send a mass email instructing staff to change their password, and now with Adaxes we're pointing them to the self service web interface. So far it's working really well!

Related questions

Hey, We've ran into a few issues recently where we ran out of Office Licenses without our knowledge and when that happens it causes a lot of our automation around this ... , so is that something we can easily configure on our scheduled tasks? Thank you, Ben

asked Mar 27, 2017 by Ben.Burrell (490 points)
0 votes
1 answer

Hi, I have a business rule that creates new groups and shared folders that has failed at least twice over the past weeks. Screenshot attached from the GUI. Can you ... file that would have dates/times etc so I can troubleshoot more effectively please? John.

asked Oct 12, 2015 by bistromath (840 points)
0 votes
1 answer

Hello, We've previously had assistance in implementing a method to transfer email addresses to a specified user via a powershell script for our on-prem Exchange. This has ... $user.SetInfo() Please let me know if you require more clarification. Regards, Josh

asked Aug 25 by jtop (720 points)
0 votes
1 answer

Now that version 2025.1 allows you to type in an external email address in the "Forward to" field, how can you restrict that? We only allow our admins to set ... in Exchange Online, and an Exchange SE server + EntraID Connect to sync the Exchange attributes.

asked Jul 10 by felix (190 points)
0 votes
1 answer

Hello, we are using the script from https://www.adaxes.com/questions/12406/send-approval-request-to-manager-of-group-member?show=12406#q12406 to request approval from a ... the text in the Submitted message without the default message going out. Thank you!

asked Jun 27 by sphelpsjr (20 points)
0 votes
1 answer