How do I get JButton to send an email? (Java Swing)?

The scope of the msg variable you've shown is limited to the try block it is within Here's a page from the Java Made Easy" tutorial on scope that appears fairly easy to understand.

The scope of the msg variable you've shown is limited to the try block it is within. Here's a page from the "Java Made Easy" tutorial on scope that appears fairly easy to understand.

I read the "Scope" article a couple times, but have not gained enough insight to apply it to my issue. --do I change my button event code to "try.Transport. Send(msg);" or how should I proceed?

– Kris Nov 29 '10 at 3:04 Chose option 1. "Create Field msg in my.planterstatus. PlanterStatusUI" – Stephen Denne Nov 29 '10 at 3:12.

Msg is declared in the try block and thus is only visible in the try block.

Edit: nevermind -- Stephen Denne got there first! Reps to him. :) – Hovercraft Full Of Eels Nov 29 '10 at 2:35.

SUBSTITUTE YOUR EMAIL ADDRESSES HERE! // SUBSTITUTE YOUR ISP'S MAIL SERVER HERE! Session session = Session.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions