Email queue: email stuck with status "sending"

Dean Lynn asked on August 17, 2015 19:49

I have created a basic workflow and configured Kentico to send email notifications as items move between states.
On submitting an item for approval an email is generated and added to the queue.
The scheduled task is executing and the emails are moving into the "Sending" state (as seen within the email queue application).
However, the emails are never sent and remain in this state indefinitely.
I have successfully tested the SMTP settings using the System application: System > Email tab
Additionally, the log does not show any errors.

Can anyone offer any advice?

Recent Answers


Roman Hutnyk answered on August 17, 2015 21:16 (last edited on August 17, 2015 21:36)

Can you see any related errors in the event log? - Looks like system fails somewhere in the middle of sending process. If you can't find anything related in the event log, I'd implement a piece of code that fetches at least one email from the email queue and sends it out using Kentico API - might throw some exception, etc., which will give you better idea of what's wrong there.

Have you tried to re-send them manually from queue? Does it also fails?

Have you verified that email from/to values are correct?

0 votesVote for this answer Mark as a Correct answer

Dean Lynn answered on August 18, 2015 11:04

Thanks for the reply Roman.

I have checked this morning and the emails are still stuck in the queue (submitted last night).

As covered in the issues description above, I have checked the error log (no related issues) and also successfully sent an email using the same SMTP server, recipient and sender details using the System application (System > Email tab).

When I find time later today I was hoping to use dotPeek to debug the Kentico assemblies.

Does anyone have any other ideas?

Thanks,

Dean

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.