Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Emails in MailQueue not being received

Patrick_Gove January 16, 2019

Hi,

I have a custom listener who puts emails in the email queue. The email perfectly goes in the Queue, it sends it out, but the mail is never received. 

Anyone have tips or could help?

Thank you!

def mail = new Email("exampel@example.com")
//mail.setBcc(bcc)
mail.setFrom("example@example.com")
mail.setSubject("Test")
mail.setBody(body)

SingleMailQueueItem item = new SingleMailQueueItem(mail)
ComponentAccessor.getMailQueue().addItem(item)

1 answer

1 accepted

1 vote
Answer accepted
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 17, 2019

Hello there!

Patrick, could you clarify some points for us:

  1. Has this worked at some point in the past?
  2. Are the emails reaching your mail provider?
  3. Have you tried sending the emails to different email providers?
  4. Have you tried sending the emails to different email accounts of the same provider?
  5. Are there errors shown on your atlassian-confluence.log file?
  6. Was the Spam box checked for the emails?

Looking forward to your reply!

Patrick_Gove January 17, 2019

Hello, thank you for helping.

But after a lot og testing it turns out there was something wrong with the body. The body was set to "null" and for some reason when I fixed that everything worked again.

Thanks anyway!

Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 19, 2019

Hello there Patrick!

Thanks for sharing with the Community how you ended up fixing the issue.

If you ever need help again, come here with us!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events