fax issue

Hi,
I'm trying to send fax via my code but I got this exception
javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first

        at javax.mail.Transport.send0(Transport.java:219)
        at javax.mail.Transport.send(Transport.java:81)

Would anyone tell me why?
ocmaraAsked:
Who is Participating?
 
WelkinMazeCommented:
Hi,

You can try one of these:

just add this line before creating the Property for the session
java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());


the only thing you must do in your code to solve the problem is to add the following line:
props.put("mail.smtp.starttls.enable","true");


or look at this thread where the above two are from:
http://forum.java.sun.com/thread.jspa?threadID=617974&tstart=0
0
 
ocmaraAuthor Commented:
I put it but no change :(
0
 
WelkinMazeCommented:
There are more suggestions at that link.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.