![Mail server at location [java:comp/env/mail/GmailSmtpServer] is not of required type javax.mail.Session | Bamboo | Atlassian Documentation Mail server at location [java:comp/env/mail/GmailSmtpServer] is not of required type javax.mail.Session | Bamboo | Atlassian Documentation](https://confluence.atlassian.com/bamkb/files/687015558/687472862/3/1415342400071/Error.png)
Mail server at location [java:comp/env/mail/GmailSmtpServer] is not of required type javax.mail.Session | Bamboo | Atlassian Documentation
![How to use JavaMail to send email via an SMTP server. I was recently working with a server component that allowed for scheduling reports, which included email notification. I wanted to isolate How to use JavaMail to send email via an SMTP server. I was recently working with a server component that allowed for scheduling reports, which included email notification. I wanted to isolate](https://raw.githubusercontent.com/gist/gkhays/01ba5baa95eaa2131d29/raw/ced0d10eed7347cd9e0b6e0df28729080fc5d238/SSH_Port_Forwarding.png)
How to use JavaMail to send email via an SMTP server. I was recently working with a server component that allowed for scheduling reports, which included email notification. I wanted to isolate
![Email notification using java i can face error as Could not connect to SMTP host: RELAY.MY.COM, port: 25, response: 421 - Stack Overflow Email notification using java i can face error as Could not connect to SMTP host: RELAY.MY.COM, port: 25, response: 421 - Stack Overflow](https://i.stack.imgur.com/n5voZ.jpg)
Email notification using java i can face error as Could not connect to SMTP host: RELAY.MY.COM, port: 25, response: 421 - Stack Overflow
![5.21. Sending E-mail (SMTP) — TERASOLUNA Server Framework for Java (5.x) Development Guideline 5.1.0.RELEASE documentation 5.21. Sending E-mail (SMTP) — TERASOLUNA Server Framework for Java (5.x) Development Guideline 5.1.0.RELEASE documentation](https://terasolunaorg.github.io/guideline/5.1.0.RELEASE/en/_images/EmailOverview.png)