fax issue

Posted on 2006-04-17
Last Modified: 2010-04-17
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(
        at javax.mail.Transport.send(

Would anyone tell me why?
Question by:ocmara
    LVL 11

    Accepted Solution


    You can try one of these:

    just add this line before creating the Property for the session;

    the only thing you must do in your code to solve the problem is to add the following line:

    or look at this thread where the above two are from:

    Author Comment

    I put it but no change :(
    LVL 11

    Expert Comment

    There are more suggestions at that link.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Suggested Solutions

    Title # Comments Views Activity
    countEvens challenge 2 47
    scoresAverage challenge 8 58
    dividesSelf challange 15 57
    Installed softare without GUID 6 22
    Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
    Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    761 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

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now