?
Solved

fax issue

Posted on 2006-04-17
5
Medium Priority
?
241 Views
Last Modified: 2010-04-17
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?
0
Comment
Question by:ocmara
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
WelkinMaze earned 400 total points
ID: 16468634
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
 

Author Comment

by:ocmara
ID: 16474924
I put it but no change :(
0
 
LVL 11

Expert Comment

by:WelkinMaze
ID: 16475602
There are more suggestions at that link.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
Progress
Introduction to Processes

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question