Confluence-Send test email NameNotFoundException

I am trying to send test email in confluence but I am getting the below error. How can I fix it?

Thanks for answers

An error has occurred with sending the test email:
com.atlassian.mail.MailException: javax.naming.NameNotFoundException: Name JiraGMailServer is not bound in this Context
at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:187)
at com.atlassian.confluence.jmx.JmxSMTPMailServer.send(JmxSMTPMailServer.java:71)
at com.atlassian.confluence.admin.actions.mail.SendTestEmailAction.execute(SendTestEmailAction.java:52)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168)
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
....

4 answers

1 accepted

This widget could not be displayed.

It cannot be done from administration panel. You should write it directly to the file as follows.

This problem has solved yet.

Here is the solution:

https://confluence.atlassian.com/pages/viewpage.action?pageId=42795030

This widget could not be displayed.

Hello,

Looking through your Stack Trace, this problem could be related to your resource name and JNDI name.

You must name your JNDI path according to the resource name in your server.xml. In this case:

mail/GmailSmtpServer. Therefore, my JNDI path would be java:comp/env/mail/GmailSmtpServer.

Cheers

JDNI path is java:comp/env/mail/JiraGMailServer. I tried also java:comp/env/mail/GmailSmtpServer. It gives the same error.

This widget could not be displayed.

Here is the solution:

https://confluence.atlassian.com/pages/viewpage.action?pageId=42795030

You should change the settings from server.xml manually.

Cheers :)

This widget could not be displayed.

I had the same problem and noticed a trailing space in the JDNI text and once I removed it, it worked. Giuliano's post helped, thanks.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Tuesday in Confluence

Add-on evaluation with confluence templates

Atlassian market place contains number of Apps/Addons which improves the capability of out of the box Atlassian products. It is good to follow a plugin evaluation process before install add-ons. So t...

109 views 12 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you