Email Queue Not Sending

Daniel Gilhool asked on September 2, 2014 17:45

We have the Send Email Queue task running, but from time to time, emails will not be sent. There are no errors in the event log, and we are able to send the queued emails via the email queue resend all feature. This is happening several times a day.

Recent Answers


Brenden Kehren answered on September 3, 2014 06:37

What version are you running?

0 votesVote for this answer Mark as a Correct answer

Daniel Gilhool answered on September 3, 2014 15:04

Hi, we are running version CMS7

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on September 3, 2014 19:52

In earlier version of 7 I've found it doesn't reprocess failed emails and simply created my own scheduled task to call the send all failed emails. I've scheduled it to run every few hours. In v8, there is already a task for this. You'll have to create the module and task code to call this code but it's pretty simple.

protected void ResendFailedEmails(ref string result)
{
    try
    {
        if (!EmailHelper.Queue.SendingInProgess)
        {
            EmailHelper.Queue.SendAllFailed();
            result = ResHelper.GetString("kwiktrip.completesuccessfully");
        }
        else
        {
            result = "Send already in progress.";
        }
    }
    catch (Exception ex)
    {
        result = ex.Message;
    }
}
0 votesVote for this answer Mark as a Correct answer

Daniel Gilhool answered on September 4, 2014 15:11

Hi, these are not failed emails, but ones that are sitting in the queue for over 15 minutes where they should be sent via the normal one minute cycle. The Send queued e-mails job is set to run every 1 min, and it is not reporting any issue in the event log. Can you create a task to Resend All?

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on September 4, 2014 15:14

Yes, you'd use the EmailHelper class to do that as well.

0 votesVote for this answer Mark as a Correct answer

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