Sending fax using javaMail

Hi,
Iam working on an assignment where I should be able to send a page via email or efax. Iam using JavaMail for email. Not sure what to do for the Fax.
Someone help me.
Thanks
Jo

I think you have to write thr protocol yourself for eFax just search for it and you will hopefully find som info how the protocol is built!
.leonard

Similar Messages

  • Error while sending FAX using FM

    Hi All,
    I am trying to send fax using FM “SO_NEW_DOCUMENT_SEND_API1”. Fax number of format AANNNNNNNN(A-area code and N-Fax number) and passing country LAND field in receiver table ‘AU”. When program ran I can see the entry in SCOT under fax for waiting status, but when I send returns with error saying Country code not specified or incorrect fax number. Am I doing any thing wrong here? Thanks in advance and any suggestion much appreciated.
    Regards,
    Tim

    Hi Manohar/Prashant,
    Thanks for your update. Well here is the code which i use in my interface. I haven’t using FM 'TELECOMMUNICATION_NUMBER_CHECK'before let me check before i post. But in mean time if you guy's see any thing in my code NOTOKAY please let me know. Thanks again for your help and let you know if it works.
    Regards,
    Tim
    CODE BELOW
    Fill the receiver list
      clear gs_reclist.
      gs_reclist-receiver = p_fax_number. (format 0212345678)
      gs_reclist-rec_type = co_f.         (F)
      gs_reclist-country  = co_au.        (AU)
      append gs_reclist to gt_reclist.
    Send the document
      call function 'SO_NEW_DOCUMENT_SEND_API1'
        EXPORTING
          document_type              = 'RAW'
          document_data              = gv_doc_chng
          put_in_outbox              = co_x
          commit_work                = co_x
        TABLES
          object_content             = gt_objcont
          receivers                  = gt_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          operation_no_authorization = 4
          others                     = 99.
      if sy-subrc eq 0.
        move: co_y to c_fax.
      else.
        move co_n    to c_fax.
      endif.

  • Sending Attachments using JavaMail

    I trying to send attachments using JavaMail API which is loaded into an oracle 8.1.7 database as a stored procedure, the code looks like this:-
    CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "SendMail" AS
    import java.util.*;
    import java.io.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    public class SendMail {
    // Sender, Recipient, CCRecipient, and BccRecipient are comma-
    // separated lists of addresses;
    // Body can span multiple CR/LF-separated lines;
    // Attachments is a ///-separated list of file names;
    public static int Send(String SMTPServer,
    String Sender,
    String Recipient,
    String CcRecipient,
    String BccRecipient,
    String Subject,
    String Body,
    String ErrorMessage[],
    String Attachments) {
    // Error status;
    int ErrorStatus = 0;
    // create some properties and get the default Session;
    Properties props = System.getProperties();
    props.put("mail.smtp.host", SMTPServer);
    Session session = Session.getDefaultInstance(props, null);
    try {
    // create a message;
    MimeMessage msg = new MimeMessage(session);
    // extracts the senders and adds them to the message;
    // Sender is a comma-separated list of e-mail addresses as
    // per RFC822;
    InternetAddress[] TheAddresses =
    InternetAddress.parse(Sender);
    msg.addFrom(TheAddresses);
    // extract the recipients and assign them to the message;
    // Recipient is a comma-separated list of e-mail addresses
    // as per RFC822;
    InternetAddress[] TheAddresses =
    InternetAddress.parse(Recipient);
    msg.addRecipients(Message.RecipientType.TO,
    TheAddresses);
    // extract the Cc-recipients and assign them to the
    // message;
    // CcRecipient is a comma-separated list of e-mail
    // addresses as per RFC822;
    if (null != CcRecipient) {
    InternetAddress[] TheAddresses =
    InternetAddress.parse(CcRecipient);
    msg.addRecipients(Message.RecipientType.CC,
    TheAddresses);
    // extract the Bcc-recipients and assign them to the
    // message;
    // BccRecipient is a comma-separated list of e-mail
    // addresses as per RFC822;
    if (null != BccRecipient) {
    InternetAddress[] TheAddresses =
    InternetAddress.parse(BccRecipient);
    msg.addRecipients(Message.RecipientType.BCC,
    TheAddresses);
    // subject field;
    msg.setSubject(Subject);
    // create the Multipart to be added the parts to;
    Multipart mp = new MimeMultipart();
    // create and fill the first message part;
    MimeBodyPart mbp = new MimeBodyPart();
    mbp.setText(Body);
    // attach the part to the multipart;
    mp.addBodyPart(mbp);
    // attach the files to the message;
    if (null != Attachments) {
    int StartIndex = 0, PosIndex = 0;
    while (-1 != (PosIndex = Attachments.indexOf("///",
    StartIndex))) {
    // create and fill other message parts;
    MimeBodyPart mbp = new MimeBodyPart();
    FileDataSource fds =
    new FileDataSource(Attachments.substring(StartIndex,
    PosIndex));
    mbp.setDataHandler(new DataHandler(fds));
    mbp.setFileName(fds.getName());
    mp.addBodyPart(mbp);
    PosIndex += 3;
    StartIndex = PosIndex;
    // last, or only, attachment file;
    if (StartIndex < Attachments.length()) {
    MimeBodyPart mbp = new MimeBodyPart();
    FileDataSource fds =
    new FileDataSource(Attachments.substring(StartIndex));
    mbp.setDataHandler(new DataHandler(fds));
    mbp.setFileName(fds.getName());
    mp.addBodyPart(mbp);
    // add the Multipart to the message;
    msg.setContent(mp);
    // set the Date: header;
    msg.setSentDate(new Date());
    // send the message;
    Transport.send(msg);
    } catch (MessagingException MsgException) {
    ErrorMessage[0] = MsgException.toString();
    Exception TheException = null;
    if ((TheException = MsgException.getNextException()) !=
    null)
    ErrorMessage[0] = ErrorMessage[0] + "\n" +
    TheException.toString();
    ErrorStatus = 1;
    return ErrorStatus;
    show errors java source "SendMail"
    CREATE OR REPLACE PACKAGE SendMailJPkg AS
    -- EOL is used to separate text line in the message body;
    EOL CONSTANT STRING(2) := CHR(13) || CHR(10);
    TYPE ATTACHMENTS_LIST IS
    TABLE OF VARCHAR2(4000);
    -- high-level interface with collections;
    FUNCTION SendMail(SMTPServerName IN STRING,
    Sender IN STRING,
    Recipient IN STRING,
    CcRecipient IN STRING DEFAULT '',
    BccRecipient IN STRING DEFAULT '',
    Subject IN STRING DEFAULT '',
    Body IN STRING DEFAULT '',
    ErrorMessage OUT STRING,
    Attachments IN ATTACHMENTS_LIST DEFAULT NULL)
    RETURN NUMBER;
    END SendMailJPkg;
    show errors
    CREATE OR REPLACE PACKAGE BODY SendMailJPkg AS
    PROCEDURE ParseAttachment(Attachments IN ATTACHMENTS_LIST,
    AttachmentList OUT VARCHAR2) IS
    AttachmentSeparator CONSTANT VARCHAR2(12) := '///';
    BEGIN
    -- boolean short-circuit is used here;
    IF Attachments IS NOT NULL AND Attachments.COUNT > 0 THEN
    AttachmentList := Attachments(Attachments.FIRST);
    -- scan the collection, skip first element since it has been
    -- already processed;
    -- accommodate for sparse collections;
    FOR I IN Attachments.NEXT(Attachments.FIRST) ..
    Attachments.LAST LOOP
    AttachmentList := AttachmentList || AttachmentSeparator ||
    Attachments(I);
    END LOOP;
    ELSE
    AttachmentList := '';
    END IF;
    END ParseAttachment;
    -- forward declaration;
    FUNCTION JSendMail(SMTPServerName IN STRING,
    Sender IN STRING,
    Recipient IN STRING,
    CcRecipient IN STRING,
    BccRecipient IN STRING,
    Subject IN STRING,
    Body IN STRING,
    ErrorMessage OUT STRING,
    Attachments IN STRING) RETURN NUMBER;
    -- high-level interface with collections;
    FUNCTION SendMail(SMTPServerName IN STRING,
    Sender IN STRING,
    Recipient IN STRING,
    CcRecipient IN STRING,
    BccRecipient IN STRING,
    Subject IN STRING,
    Body IN STRING,
    ErrorMessage OUT STRING,
    Attachments IN ATTACHMENTS_LIST) RETURN NUMBER IS
    AttachmentList VARCHAR2(4000) := '';
    AttachmentTypeList VARCHAR2(2000) := '';
    BEGIN
    ParseAttachment(Attachments,
    AttachmentList);
    RETURN JSendMail(SMTPServerName,
    Sender,
    Recipient,
    CcRecipient,
    BccRecipient,
    Subject,
    Body,
    ErrorMessage,
    AttachmentList);
    END SendMail;
    -- JSendMail's body is the java function SendMail.Send();
    -- thus, no PL/SQL implementation is needed;
    FUNCTION JSendMail(SMTPServerName IN STRING,
    Sender IN STRING,
    Recipient IN STRING,
    CcRecipient IN STRING,
    BccRecipient IN STRING,
    Subject IN STRING,
    Body IN STRING,
    ErrorMessage OUT STRING,
    Attachments IN STRING) RETURN NUMBER IS
    LANGUAGE JAVA
    NAME 'SendMail.Send(java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String[],
    java.lang.String) return int';
    END SendMailJPkg;
    show errors
    var ErrorMessage VARCHAR2(4000);
    var ErrorStatus NUMBER;
    -- enable SQL*PLUS output;
    SET SERVEROUTPUT ON
    -- redirect java output into SQL*PLUS buffer;
    exec dbms_java.set_output(5000);
    BEGIN
    :ErrorStatus := SendMailJPkg.SendMail(
    SMTPServerName => 'gmsmtp03.oraclecorp.com',
    Sender => '[email protected]',
    Recipient => '[email protected]',
    CcRecipient => '',
    BccRecipient => '',
    Subject => 'This is the subject line: Test JavaMail',
    Body => 'This is the body: Hello, this is a test' ||
    SendMailJPkg.EOL || 'that spans 2 lines',
    ErrorMessage => :ErrorMessage,
    Attachments => SendMailJPkg.ATTACHMENTS_LIST(
    '/tmp/on.lst',
    '/tmp/sqlnet.log.Z'
    END;
    print
    If I try and send file as attachments from the tmp directory, then everything works ok, but if I try to send the same file from any other directory, then it doesn't work. Can anyone help? Is there something wrong with the code, I'm not aware of anything that would make it directory specfic. Permissions are the same on /tmp as the new directory /NRS/Data/SystemX which I'm trying to send the file from now.

    well
    if u see the end of ur mail it shows the attachment dir there in which u have specified the address..why don't u do a change there or better have some in parameteres in the procedure for it..that would help in choosing the attachment directory on users wish?
    hope i am getting the problem right..if not kindly correct me in understanding the problem.
    thanX.

  • How to send fax using java programming

    i need to send files in my hard disk through fax using java programming.
    i have found on the internet that it is possible to be implemented by using java.comm API and JTAPI. however, i don't know how...does anyone can tell me the details? also, as i know it will be a big project to send fax using such API. is that any other simple way to implement the fax function in java? thx a lot!

    To cse.mahbub:
    Are you aware that you replied to a 5 1/2 year old question?
    Please don't do that. Reply only to current questions.

  • Send mail with no sender address using Javamail

    I'm trying to send emails using javamail, it works fine but I would like to send emails with no sender address. When I don't set :
    message.setFrom(new InternetAddress("[email protected]"));
    or do just
    message.setFrom()
    I get my_user_name@my_machine_name as the sender address when i recieve the email.
    I understand the security problems about sending emails without sender but i need to automate the sending of confirmation messages that recievers can't answer to.
    Quentin.

    I get a lot of e-mail newsletters that say at the bottom "Please do not reply to this, nobody will read your reply". What's wrong with that? Set up an address and automatically purge any messages sent to it on a regular basis.
    Or if you want a different way to annoy people, use an address that doesn't exist on your server. Then people get a bounce message when they reply to it.
    You might also want to evaluate commonly-used spam filters and see if they filter out messages that don't have from-addresses. No point sending people messages if they get filtered out.

  • Sending a message to fax using JavaMail

    Hello all,
    we are trying to create a system to send messages. The input will come from an Oracle 9i (9.0.2) database, our goal is to create email messages which can either be delivered to an email address or to a fax number.
    The systems works if all addresses are regular email adresses, but we get the following message when using a fax number :javax.mail.internet.AddressException: Illegal route-addr in string ``fax:[email protected]''
    I have already change the parse-method to parseHeader with the parseOption false, so that the addresses are not controlled against the standard. I expect the ':' (colon) in fax:012345678 is the cause of our problem, replacing it with a random character returns a 'normal' error message for a non-existing address.
    I have included the log message with the exception, the sourcecode of our SendMailTest and the source of SendMail.
    Is there any work around to this colon, so we can send faxes as well as emails.
    Kind regards,
    Nemata
    log message----------------------------------------------------
    C:\ProgramFiles\jdevstudio1013\jdk\bin\javaw.exe -ojvm -classpath C:\ProgramFiles\jdevstudio1013\jdev\mywork\ocbs\Client\classes;C:\ProgramFiles\jdevstudio1013\j2ee\home\lib;C:\ProgramFiles\jdevstudio1013\j2ee\home\lib\mail.jar;C:\ProgramFiles\jdevstudio1013\j2ee\home\lib\activation.jar com.vdscomputing.carpinvest.ocbs.db.io.SendMailTest
    Constructor entered
    return from constructor
    com.vdscomputing.carpinvest.ocbs.db.io.SendMail@a Hello
    javax.mail.internet.AddressException: Illegal route-addr in string ``fax:[email protected]''
    message sent
    Process exited with exit code 0.
    source SendMailTest-------------------------------------
    package com.vdscomputing.carpinvest.ocbs.db.io;
    //class designed to test SendMail
    public class SendMailTest {
    public static void main( String args[]) {
    String SMTPserver = "192.168.1.23";
    String SMTPport = "25";
    String Sender = "[email protected]";
    String Recipient ="fax:[email protected]";
    String CcRecipient = "[email protected]";
    String BccRecipient = "";
    String Subject = "faxinationTest";
    String Body = "test mail 12 from test class";
    String[] ErrorMessage = new String[1];
    String Attachments ="";
    // create mesage and monitor constructor
    SendMail testMessage = new SendMail();
    System.out.println("return from constructor");
    System.out.println(testMessage + " Hello");
    testMessage.Send(SMTPserver, SMTPport, Sender, Recipient, CcRecipient,
    BccRecipient, Subject, Body, ErrorMessage, Attachments);
    System.out.println("message sent");
    Source SendMail---------------------------------------
    package com.vdscomputing.carpinvest.ocbs.db.io;
    import java.util.*;
    import java.io.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    public class SendMail {
    //default constructor with monitor message
    public SendMail(){
    System.out.println("Constructor entered");
    // preparing the message and sending it
    public static int Send(String SMTPServer,
    String SMTPPort,
    String Sender,
    String Recipient,
    String CcRecipient,
    String BccRecipient,
    String Subject,
    String Body,
    String ErrorMessage[],
    String Attachments) {
    // Error status;
    int ErrorStatus = 0;
         // create some properties and get the default Session;
         Properties props = System.getProperties();
         props.put("mail.smtp.host", SMTPServer);
         props.put("mail.smtp.port", SMTPPort);
    Session session = Session.getDefaultInstance(props, null);
    try {
         boolean ParseOption = false; //do not enforce RFC822
    // create a message;
    MimeMessage msg = new MimeMessage(session);
    // extracts the senders and adds them to the message;
    InternetAddress[] TheAddresses =
    InternetAddress.parseHeader(Sender, ParseOption);
    msg.addFrom(TheAddresses);
         // extract the recipients and assign them to the message;
    InternetAddress[] TheAddresses =
    InternetAddress.parseHeader(Recipient, ParseOption);
    msg.addRecipients(Message.RecipientType.TO,
    TheAddresses);
         // extract the Cc-recipients and assign them to the message;
    if (null != CcRecipient) {
    InternetAddress[] TheAddresses =
    InternetAddress.parseHeader(CcRecipient, ParseOption);
    msg.addRecipients(Message.RecipientType.CC,
    TheAddresses);
         // extract the Bcc-recipients and assign them to the message;
    if (null != BccRecipient) {
    InternetAddress[] TheAddresses =
    InternetAddress.parseHeader(BccRecipient, ParseOption);
    msg.addRecipients(Message.RecipientType.BCC,
    TheAddresses);
    // subject field;
    msg.setSubject(Subject);
    // create the Multipart to be added the parts to;
    Multipart mp = new MimeMultipart();
    // create and fill the first message part;
    MimeBodyPart mbp = new MimeBodyPart();
    mbp.setText(Body);
    // attach the part to the multipart;
    mp.addBodyPart(mbp);
    // attach the files to the message;
    if (null != Attachments) {
    int StartIndex = 0, PosIndex = 0;
    while (-1 != (PosIndex = Attachments.indexOf("///",
    StartIndex))) {
    // create and fill other message parts;
    MimeBodyPart mbp = new MimeBodyPart();
    FileDataSource fds =
    new FileDataSource(Attachments.substring(StartIndex,
    PosIndex));
    mbp.setDataHandler(new DataHandler(fds));
    mbp.setFileName(fds.getName());
    mp.addBodyPart(mbp);
    PosIndex += 3;
    StartIndex = PosIndex;
    // last, or only, attachment file;
    if (StartIndex < Attachments.length()) {
    MimeBodyPart mbp = new MimeBodyPart();
    FileDataSource fds =
    new FileDataSource(Attachments.substring(StartIndex));
    mbp.setDataHandler(new DataHandler(fds));
    mbp.setFileName(fds.getName());
    mp.addBodyPart(mbp);
    // add the Multipart to the message;
    msg.setContent(mp);
    // set the Date: header;
    msg.setSentDate(new Date());
    // send the message with monitor message
    Transport.send(msg);
    System.out.println("message on transport");
    } catch (MessagingException MsgException) {
    ErrorMessage[0] = MsgException.toString();
    System.out.println(ErrorMessage[0]); // catch to console
    Exception TheException = null;
    if ((TheException = MsgException.getNextException()) !=
    null)
    ErrorMessage[0] = ErrorMessage[0] + "\n" +
    TheException.toString();
    ErrorStatus = 1;
    return ErrorStatus;
    }

    Hi,
    I want to fax using java. presently I m using mail api to email & its working. Now I have to fax the attached pdf file with out using any third party or commercial software.
    Any idea or suggestion would be very help full
    regards
    Prakash Sen

  • How to send FAX using JSP

    Hi All
    I have a requirement in my JSP application to send documents stored on a system by FAX to a fax machine, I had also the requirement to send mails but that was solved using JavaMail. But is there any method through which a FAX can be sent to a FAX machine using JSP.
    Please help
    Swaraj

    I want to send a message from a system to the client in which he prefer the mode of receiving the message by either E-mail,Phone ,Fax or Mobile.
    Plz send me the source .
    Swami.N

  • How to setup SMTP server  in PC so as to send mails using JavaMail

    Hi,
    From forums i got it cleared that we can use JavaMail to send emails. I also got two sample codes about getting it done. But in the code its asks address of the host of SMTP server. I dont have any SMTP server. But i am writing a Library Application in which an email must be sent to users automatically when thier books are in overdue.
    Where can i get SMTP server to be installed on my PC so that i can use it send mails through Javamail API.
    Thanks

    Isnt there any way setup SMTP server on own pc?? I just want to send mails in my local area network.

  • Delivery Receipt After Sending Mail Using JavaMail ?

    Hi Friends,
    I have written an application using JavaMail which would be used to send mail
    using my organisation's SMTP Server.I would like to include the following functionality in it.Just as
    Microsoft's Outlook has an option to get Delivery Receipt of the mail and Read Receipt of the mail sent
    (Provided the email Client supports it) i would like to have a similar option in my application to.I would like to of how i can do it using JavaMail.I heard that basically we need to set some SMTP properties which the Mail Transfer Agent would recognize and send us the Delivery and Read Receipts.But,i am not sure of what those properties.Can anyone help me regarding this ?

    You might look into creating a custom header that provides a return reciept to the email address you specify. I'm not 100% sure that all mail servers support this but you might want to look into it as a solution.
    -Dave

  • Getting exceptions while sending mail using javamail api

    Hi to all
    I am developing an application of sending a mail using JavaMail api. My program is below:
    quote:
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    public class sms
    public static void main(String args[])
    try
    String strstrsmtserver="smtp.bol.net.in";
    String strto="[email protected]";
    String strfrom="[email protected]";
    String strsubject="Hello";
    String bodytext="This is my first java mail program";
    sms s=new sms();
    s.send(strstrsmtserver,strto,strfrom,strsubject,bodytext);
    catch(Exception e)
    System.out.println("usage:java sms"+"strstrsmtpserver tosddress fromaddress subjecttext bodyText");
    System.exit(0);
    public void send(String strsmtpserver,String strto,String strfrom ,String strsubject,String bodytext)
    try
    java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    Properties p=new Properties(System.getProperties());
    if(strsmtpserver!=null)
    p.put("mail.transport.protocol","smtp");
    p.put("mail.smtp.host","[email protected]");
    p.put("mail.smtp.port","25");
    Session session=Session.getDefaultInstance(p);
    Message msg=new MimeMessage(session);
    Transport trans = session.getTransport("smtp");
    trans.connect("smtp.bol.net.in","[email protected]","1234563757");
    msg.setFrom(new InternetAddress(strfrom));
    msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(strto,false));
    msg.setSubject(strsubject);
    msg.setText(bodytext);
    msg.setHeader("X-Mailer","mtnlmail");
    msg.setSentDate(new Date());
    Transport.send(msg);
    System.out.println("Message sent OK.");
    catch(Exception ex)
    System.out.println("here is error");
    ex.printStackTrace();
    It compiles fine but showing exceptions at run time.Please help me to remove these exceptions.I am new to this JavaMail and it is my first program of javamail.Please also tell me how to use smtp server.I am using MTNL 's internet connection having smtp.bol.net.in server.
    exceptions are:
    Here is exception
    quote:
    Javax.mail.MessagingException:Could not connect to SMTP host : smtp.bol.net.in, port :25;
    Nested exception is :
    Java.net.ConnectException:Connection refused: connect
    At com.sun.mail.smtp.SMTPTransport.openServer<SMTPTransport.java:1227>
    At com.sun.mail.smtp.SMTPTransport.protocolConnect<SMTPTransport.java:322>
    At javax.mail.Service .connect(Service.java:236>
    At javax.mail.Service.connect<Service.java:137>
    At sms.send<sms.java:77>
    At sms.main<sms.java:24>

    Did you find the JavaMail FAQ?
    You should talk to your ISP to get the details for connecting to your server.
    In this case I suspect your server wants you to make the connection on the
    secure port. The FAQ has examples of how to do this for GMail and Yahoo
    mail, which work similarly. By changing the host name, these same examples
    will likely work for you.

  • Send Fax using rfax

    Hi
    I am sending a fax using rfax but i can not understand how can i set the size of page. I am using html format to send data.
    please help me if anybody has knowledge of rfax.

    We saw your query in the java developers forum, abut Fax through Java, we found a component, in www.java4less.com, RFax, we are able to send the Fax through serial modem, but the Fax printed, is as stretched vertically, If you have any solution found on sending fax through java, or using the same Rfax, please advice the solution.
    Thanking you
    [email protected]

  • Sending fax using java API

    Hai,
    There is a requirement in one of the projects i am currently working, to send fax from the application to any fax machine in the world. I am now assigned
    the task of finding out how this can be done in java. I have been " googling " all day . All i could find are some vague comments on certain posts including this site:
    1) This could be done using the javax comm package ( i could not find any detailed explanation as how it could be done or sample code)
    2) Could be done by installing some certain software and using it.
    By my requirement is to send fax from within my application , not any third party applications. I also cant use the online services which come as the search result
    while i "googled".
    So can sending faxes be done from a java application using the standard java packages or any extensions? Could any one point me to a sample implementation ?
    Any pointers would be appreciated.
    Thanking u in advance,
    Martin Joseph

    In order to send fax from a java application you would first have to have a fax server setup. Which would receive files from your application and send it. Now how you utilize it depends upon the implementation of the server. There could be an API made available to you or it could be as simple as dropping your files to a certain folder or ftping them to a certain location on the server itself from where it picks them up and faxes them. So in short the implementation is a function of your server choice and whether you have one already, decide to use an existing one or find one publicly available on the net.

  • Sending faxes using Mountain Lion

    Is it possible to send faes directly from the computer using Mountain Lion.

    You would have to buy a fax modem compatible with your computer in order to send faxes. I have a fax modem with my printer that I use when I need to send one.
    You could do electronic faxes through a service, but I'm not familiar with those. They usually charge for that.

  • Sending Faxes using internal modem and DSL

    I found that I can receive a fax, but I cannot send one. When I try and send one the internal modem tries to connect to the internet using "internet connect". It searches for a number to connect to the internet. Since I am using DSL now I don't have a phone number to dial into the internet. If I put my phone number in it calls me and gets a busy signal.
    Can someone tell me how I should be configuring the internal modem?

    From the Knowledge Base at
    http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh1797.html
    Sending a fax
    You can fax files directly from your computer to any fax machine or computer that is set up to receive faxes. If your computer has a modem that is connected to a phone line, it is automatically configured to send faxes.
    Open the document you want to fax.
    Choose File > Print.
    Choose Fax PDF from the PDF pop-up menu.
    Type the fax number of the user you want to receive your fax in the To field.
    You can also choose users directly from Address Book by clicking the Address Book button to the right of the To field. Be sure you have a fax number listed for each user you choose in Address Book. For more information about using Address Book, see Address Book Help, available in the Help menu when Address Book is open.
    If necessary, type the dialing prefix required for the phone system you're using in the Dialing Prefix field. (For example, if you need to dial a 9 to access an outside line, type 9 in the Dialing Prefix field.)
    If you want to send a fax through a modem other than your computer's built-in modem, choose it from the Modem pop-up menu.
    If you want to send a cover page with your fax, click the Use Cover Page checkbox and type a message in the Message field.
    If you need to change any of the preset faxing options, choose the type of options you want to change from the Fax Cover Page pop-up menu. (To see options for the application you're using, choose the application from the pop-up menu.)
    If necessary, select options for the type you chose. (For example, you can select the number of copies you want faxed if you chose Copies & Pages in step 8.)
    Tip: If you have a combination of options that you frequently use when faxing a document, you can save it as a "preset." After choosing your options, choose Save As from the Presets pop-up menu and type a name for the set of options. If you want to use this set of options when you fax a document, choose its name from the Presets pop-up menu.
    Click Fax.
    The fax is sent as soon as your modem is available. (For example, if you're using your modem to connect to the Internet, the fax is sent after you disconnect from your Internet service provider.)
    You may want to send your fax at a later time. For example, you may want to send it at night when telephone rates are lower. Just choose Scheduler from the Fax Cover Page pop-up menu, and enter the time. Make sure your computer is on, is not asleep, and is connected to your phone line at that time.

  • Faxing using JavaMail

    Hi,
    Our e-mail server will send faxes through our fax server if you write the address you're sending to in the form
    [FAX:John Smith@02 1234 5678]
    Unfortunately, when I write the line
    InternetAddress toAddress = new InternetAddress("[FAX:John Smith@02 1234 5678]", false);
    I get an error
    javax.mail.internet.AddressException: Illegal address in string ''[FAX:John Smith@02 1234 5678]''
    I thought of subclassing InternetAddress with my own FaxAddress class but InternetAddress's checkAddress method is 'private static void'.
    Does anyone have any ideas?
    Thanks,
    Ian.

    ok..so i was able to retain the entire TO address as it is....
    /name=Test_Suuplier/Fax=91-111-111-1111/ <[email protected]>
    ....using below constructor....
    InternetAddress(java.lang.String address,
    java.lang.String personal,
    java.lang.String charset)
    but now i am getting below error message at the end when sending email.....
    Exception in sending email. Exception javax.mail.internet.AddressException: Missing '<' in string ``"/name=Test_Suuplier/Fax=91-111-111-1111/ <[email protected]>" </name=Test_Suuplier/Fax=91-111-111-1111/ <[email protected]>>'' at position 130. Stack trace: javax.mail.internet.AddressException: Missing '<' in string ``"/name=Test_Suuplier/Fax=91-111-111-1111/ <[email protected]>" </name=Test_Suuplier/Fax=91-111-111-1111/ <[email protected]>>'' at position 130
         at javax.mail.internet.InternetAddress.parse(InternetAddress.java:621)
         at javax.mail.internet.InternetAddress.parse(InternetAddress.java:501)
         at javax.mail.internet.MimeMessage.getAddressHeader(MimeMessage.java:586)
         at javax.mail.internet.MimeMessage.getRecipients(MimeMessage.java:411)
         at javax.mail.Message.getAllRecipients(Message.java:269)
         at javax.mail.internet.MimeMessage.getAllRecipients(MimeMessage.java:426)
         at javax.mail.Transport.send(Transport.java:81)
         at ariba.util.net.BasicEmailClient.send(BasicEmailClient.java:113)
         at ariba.approvable.core.mail.SMTPMailQueueEntry.send(SMTPMailQueue.java:429)
         at ariba.approvable.core.mail.SMTPMailQueue.run(SMTPMailQueue.java:91)
         at ariba.rpc.server.ServerThread.run(ServerThread.java:468)
         at ariba.server.jdbcserver.JDBCServerThread.run(JDBCServerThread.java:314)
         at ariba.base.server.ObjectServerThread.run(ObjectServerThread.java:372)
         at java.lang.Thread.run(Thread.java:534)

Maybe you are looking for