LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Not able to send a mail (https://www.linuxquestions.org/questions/programming-9/not-able-to-send-a-mail-738868/)

smartgupta 07-09-2009 06:51 AM

Not able to send a mail
 
Hi,

I had written a java code to send a mail via SMTP server and it is working fine in windows but when I am trying to do the same in Solaris 9,I am not able to execute it.It is throwing exception as below..

Quote:

hello welcome smtpHost
hello Host
i m in catch block
Sending mail....
I am attaching the code file also.Please provide your valuable points to resolve it.
Thanks in Advance..

kellinwood 07-09-2009 08:57 AM

In the catch block do this...

Code:

catch (Exception x ) {
    x.printStackTrace();
}

Without knowing what exception is being thrown its hard to help you. Also, I don't see the code you mentioned.


All times are GMT -5. The time now is 04:40 PM.