Skip to main content
Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
JustinDallas
Specialist III
Specialist III

Failed to send e-mail message ... temporary failure

Hello Folks,

I'm working with my NPrinting system, and when I go to the "Run now" button, nothing happens, yet I see this in the error logs.

Qlik.NPrinting.Repo 17.6.0.0 Qlik.NPrinting.Repo.Service.MailService 20180322T165336.181-04:00

ERROR QLIKSENSE Nprinting Task Identity 0 0 0 0 0 0 0 0

Failed to send e-mail message to [redacted]@[redacted].net.

ERROR: 4.1.0 ... temporary failure.

Stack trace:    at MailKit.Net.Smtp.SmtpClient.ProcessMailFromResponse(MimeMessage message, MailboxAddress mailbox, SmtpResponse response)↓↓  

at MailKit.Net.Smtp.SmtpClient.MailFrom(FormatOptions options, MimeMessage message, MailboxAddress mailbox, SmtpExtension extensions, CancellationToken cancellationToken)↓↓  

at MailKit.Net.Smtp.SmtpClient.Send(FormatOptions options, MimeMessage message, MailboxAddress sender, IList`1 recipients, CancellationToken cancellationToken, ITransferProgress progress)↓↓  

at MailKit.Net.Smtp.SmtpClient.Send(FormatOptions options, MimeMessage message, CancellationToken cancellationToken, ITransferProgress progress)↓↓  

at MailKit.MailTransport.Send(MimeMessage message, CancellationToken cancellationToken, ITransferProgress progress)↓↓  

at MailKit.MailTransport.<>c__DisplayClass2_0.<SendAsync>b__0()↓↓  

at System.Threading.Tasks.Task.Execute()↓↓--- End of stack trace from previous location where exception was thrown ---↓↓  

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()↓↓  

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)↓↓  

at Qlik.NPrinting.Repo.Service.MailService.<SendEmailAsync>d__4.MoveNext() in c:\Jws\workspace\NP-REL-17.6.0.0-BR-01-build\server\NPrinting\src\Repo\Service\MailService.cs:line 106.

While it says the error is temporary, this NPrinting system has been emailing folks all-day.  I can also send test emails from my Outlook and have a co-worker receive them so I know it's not the SMTP server being down completely.

Any help is greatly appreciated.

1 Solution

Accepted Solutions
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi Justin,

Install SMTP4DEV dummy server CodePlex Archive and use it as SMTP server for your NPrinitng. If NPrinitng creates and sends all emails without issues to this dummy ("smtp4dev") SMTP server you will know for sure that your actual SMTP server might have some policies which prevent your NPrinting from sending too many emails. This might be basicly  anti-spam SMTP server policy.

cheers

Lech

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.

View solution in original post

2 Replies
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi Justin,

Install SMTP4DEV dummy server CodePlex Archive and use it as SMTP server for your NPrinitng. If NPrinitng creates and sends all emails without issues to this dummy ("smtp4dev") SMTP server you will know for sure that your actual SMTP server might have some policies which prevent your NPrinting from sending too many emails. This might be basicly  anti-spam SMTP server policy.

cheers

Lech

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
JustinDallas
Specialist III
Specialist III
Author

It's working today, but I'll let you know if there are any other problems.  Thanks for hipping me to that SMTP debug, helps me cut down on guesswork of where the error might be.