Sending multiple faxes to multiple recipients

I have to fax permit applications to juridictions for processing. Sometimes I have four or five faxes to send out to the different recepients. I need an all-in-one that will scan outgoing faxes to memory while one fax is sending, to be sent when the first fax is complete. The fax on the all-in-one I have now will not accept another fax input until the first fax has completed sending. I need to be able to just scan them all in to the different recipients and walk away. 

@mph710, When you send a regular fax through the printer, do the recipient receive multiple faxes?
Perform a hard reset on the printer. Unplug the power cord from the back. Leave it out for 30 seconds and plug it back in. 
Also, try to unplug the phone cord. Check to see if you have a (2-wire) phone cord. 
**Click the KUDOS star on the left to say 'Thanks'**
Please mark a reply "ACCEPTED AS SOLUTION" if it solved your problem, so others can find it.

Similar Messages

  • How to send multiple Recipients using the mail.jar and activation.jar

    hi!
    could somebody help me. how do i send multiple Recipient using mail.jar. when i would input 2email address in to Recipient
    (example: [email protected], [email protected])
    i get a DEBUG: setDebug: JavaMail version 1.3.2
    but if i send a single email it just works properly.
    heres my code
    import java.io.*;
    import java.util.*;
    import javax.mail.*;
    import javax.mail.event.*;
    import javax.mail.internet.*;
    public class SendMail
              public SendMail(String to, String from, String subject, String body)
              //public SendMail(String to)
                   String message_recip = to;
                   String message_subject = subject;
                   String message_cc = "";
                   String message_body = body;
                   //The JavaMail session object
                   Session session;
                   //The JavaMail message object
                   Message mesg;
                   // Pass info to the mail server as a Properties, since JavaMail (wisely) allows room for LOTS of properties...
                   Properties props = new Properties( );
                   // LAN must define the local SMTP server as "mailhost" to be able to send mail...
                   //props.put("mail.smtp.host","true");
                   props.put("mail.smtp.host", "mailhost");
                   // Create the Session object
                   session = Session.getDefaultInstance(props, null);
                   session.setDebug(true);
                   try
                        // create a message
                        mesg = new MimeMessage(session);
                        // From Address - this should come from a Properties...
                        mesg.setFrom(new InternetAddress(from));
                        // TO Address
                        InternetAddress toAddress = new InternetAddress(message_recip);
                        mesg.addRecipient(Message.RecipientType.TO, toAddress);
                        // CC Address
                        InternetAddress ccAddress = new InternetAddress(message_cc);
                        mesg.addRecipient(Message.RecipientType.CC, ccAddress);
                        // The Subject
                        mesg.setSubject(message_subject);
                        // Now the message body.
                        mesg.setText(message_body);
                        // XXX I18N: use setText(msgText.getText( ), charset)
                        // Finally, send the message!
                        Transport.send(mesg);
                   }//end of try
                   catch (MessagingException ex)
                        while ((ex = (MessagingException)ex.getNextException( )) != null)
                             ex.printStackTrace( );
                        }//end of while
              }//end of catch
         }//end of SendMail
    public static void main(String[] args)
              //String t = "[email protected], [email protected]"; - this I think causes error
    String t = "[email protected]";
              String f = "[email protected]";
              String s = "Hello World";
              String b = "the quick brown fox jumps over the lazy dog";
              SendMail sm = new SendMail(t,f,s,b);     
         }//end of main
    }//end of class
    could someone please help me im stuck-up with this. thanx!

    i need it ASAP
    i am a beginner in java and jsp
    Need to knw how can I parse the addresss field
    Below
    is the code
    <code>
    package
    public class EMailBean {
    private String smtp,username,password,from,bcc,subject,body,attachments,cc;
         /*setter*/
         public void setSmtp(String str){this.smtp=str;}
         public void setUsername(String str){this.username=str;}
         public void setPassword(String str){this.password=str;}
         public void setFrom(String str){this.from=str;}
         public void setTo(String str){this.to=str;}
         public void setCc(String str){this.cc=str;}
         public void setBcc(String str){this.bcc=str;}
         public void setSubject(String str){this.subject=str;}
         public void setBody(String str){this.body=str;}
         public void setAttachments(String str){this.attachments=str;}
                                  /*getter*/
         public String getSmtp( ){return this.smtp;}
         public String getUsername( ){return this.username;}
         public String getPassword( ){return this.password;}
         public String getFrom( ){return this.from;}
         public String getTo( ){return this.to;}
         public String getCc( ){return this.cc;}     
         public String getBcc( ){return this.bcc;}
         public String getSubject( ){return this.subject;}
         public String getBody( ){return this.body;}
    public String getAttachments( ){return this.attachments;}
    </code>
    Session session = Session.getDefaultInstance(props, null);
    session.setDebug(true);
    try {
    MimeMessage msg = new MimeMessage(session);
    msg.setFrom(new InternetAddress(mail.getFrom()));
                                  msg.addRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false));
                                  msg.addRecipient(Message.RecipientType.TO,new InternetAddress(mail.getTo()));
                             msg.addRecipient(Message.RecipientType.CC, new InternetAddress(mail.getCc()));
                                  msg.addRecipient(Message.RecipientType.CC, new InternetAddress("[email protected]"));
    msg.setSubject(mail.getSubject());
    // Create the message part
    BodyPart messageBodyPart = new MimeBodyPart();
    // Fill the message
    messageBodyPart.setText(mail.getBody());
    Multipart multipart = new MimeMultipart();
    multipart.addBodyPart(messageBodyPart);
    // Part two is attachment
    messageBodyPart = new MimeBodyPart();
    DataSource source = new FileDataSource(mail.getAttachments());
    messageBodyPart.setDataHandler(new DataHandler(source));
    messageBodyPart.setFileName(source.getName());
    multipart.addBodyPart(messageBodyPart);
    msg.setContent(multipart);
    msg.setSentDate(new Date());
    Transport t = session.getTransport("smtp");
    try {
    t.connect(mail.getUsername(), mail.getPassword());
    t.sendMessage(msg, msg.getAllRecipients());
    } finally {
    t.close();
    result = result + "<FONT SIZE='4' COLOR='blue'><B>Success!</B>"+"<FONT SIZE='4' COLOR='black'> "+"<HR><FONT color='green'><B>Mail was successfully sent to </B></FONT>: "+mail.getTo()+"<BR>";
    if (!("".equals(mail.getCc())))
    result = result +"<FONT color='green'><B>CCed To </B></FONT>: "+mail.getCc()+"<BR>";
    if (!("".equals(mail.getBcc())))
    result = result +"<FONT color='green'><B>BCCed To </B></FONT>: "+mail.getBcc() ;
    result = result+"<BR><HR>";
    } catch (MessagingException mex) {
    result = result + "<FONT SIZE='4' COLOR='blue'> <B>Error : </B><BR><HR> "+"<FONT SIZE='3' COLOR='black'>"+mex.toString()+"<BR><HR>";
    } catch (Exception e) {
    result = result + "<FONT SIZE='4' COLOR='blue'> <B>Error : </B><BR><HR> "+"<FONT SIZE='3' COLOR='black'>"+e.toString()+"<BR><HR>";
    e.printStackTrace();
    finally {
    return result;
    }

  • HOW DO YOU SEND MULTIPLE RECIPIENTS  TO THE RECIPIENT NAME IN EMAIL?

    FROM AN ORACLE FORM I CAN OPEN UP A NEW MESSAGE IN MICROSOFT OUTLOOK AND HAVE THE RECIPIENT LINE AND SUBJECT LINE ALREADY PREFORMATTED WITH THE FOLLOWING CODE.
    WIN_API_SHELL.WINEXEC('''C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\OUTLOOK.EXE''-C IPM.Note/m'''||:AKO_MAIL.EMAIL||'&SUBJECT='||:AKO_MAIL.SUBJECT||'&BODY=''',WIN_API.SW_SHOWNORMAL,TRUE);
    PART OF THIS CODE COMES FROM 2 LIBRARIES D2KCOMN AND D2KWUTIL.
    THIS WILL WORK WELL WITH 1 EMAIL ADDRESS FOR ORACLE6i AND FOR ANY VERSION OF ORACLE BELOW ORACLE6i
    THIS HAS NOTHING TO DO WITH SIMPLE MAIL TRANSFER PROTOCOL (SMTP).
    HOWEVER LET'S SAY I HAVE QUERIED 15 OR MORE EMAIL ADDRESSES IN A GROUP ON A BLOCK IN AN ORACLE FORM. THE LENGTH OF EACH EMAIL ADDRESS IS 55 BYTES. FROM 90 TO OVER A HUNDRED EMAIL ADDRESSES NEED TO BE PREFORMATTED IN THE RECIPIENT LINE. I WANT TO DO THIS WITHOUT USING THE SMTP ROUTINE. HOW CAN I PASS ALL 15 OR MORE EMAIL ADDRESSES TO THE RECIPIENT LINE OF THE NEW EMAIL MESSAGE IN MICROSOFT OUTLOOK?

    It appears that All Photos is fixed at Keep Sorted by Date Added.  I have 6450 photos.
    But when I open the side bar and do a right click on iPhoto Events where I have 480 albums I get option to sort them by Name

  • Sending Multiple Fax/E-mail Recipients at once

    I'm a RightFax integrator and am trying to assist a customer that would like to integrate RightFax with Oracle Purchasing.
    What we would like to do is provide the user with the ability to transmit one purchase order to multiple fax recipients and/or e-mail recipients at once from the Oracle interface. It was initially thought that this might be able to be accomplished with the RightFax integration module but RightFax only processes the data stream from Oracle and makes no change to its functionality. If Oracle can only fax to one recipient at a time then so can RightFax.
    Does anyone know if there's a way to customize Oracle to allow sending to multiple recipients at once or of another add-in product that might offer this functionality?
    Please feel free to post replies here or send directly to me at [email protected]
    Thanks in advance for any assistance.
    Mike Bishop

    See the response to your other post

  • Faxing with Tiger.  sending same fax to multiple recipients

    I have a G4 titanium notebook and just upgraded to Tiger. Under Panther, when I sent faxes, I would be able to just type the first few letters and the discription and fax number would come up and it would fax without problems. Now when I do this under Tiger, the fax number and the description will come up, but it will not fax unless I remove all of the letters from the fax number. Also, I often have to send the same fax to multiple numbers at the same time. Under Panther, it was a snap, just put all the number in the same line separated by a comma and the fax would be sent to as many numbers as possible. Under Tiger, it will only send to the first number listed. Why did they make the fax program less functional on the upgraded OS?

    Are you using a Fax program within Tiger? I have been using FaxStfPro made by
    Smith Micro, and now with Tiger, OS10.4.8 operating with DSL, I find i cannot send a fax unless I get a separate phone line with filter to connect to my Power Book G4. That is not an easy solution here because of wiring distance.
    If a Fax program existed within Tiger that could be used even with DSL, that would solve my problem. What is Mac Fax? I have not heard of it before,
    Any guidance you might provide would be greatly appreciated.
    Randolph McCreight

  • Sending PO as PDF to multiple recipients

    Hi,
    I have to out put the PO as pdf and send it to mulitple recipients.
    I am taking the standard program and copied to z program and i did some modifications in it.
    i am able to send the PDF as attachment in a mail and its working fine.
    Now requirement enhanced... they were asking to me to send it to multiple recipients in CC.
    Can anyone guide me how to do it... where should I pass these ID's so that the mail can send to multiple recipients.
    How to use the open form close form sequence. If I call the Open form 2 times does it work.. if so how to use the sequence can anyone guide me plz

    Sreejith,
    I really appreciate your valuable time first of all
    here i am posting piece of code... where exactly i am passing the email id to get the TO mail... where as CC how to write the same logic
    CALL FUNCTION 'Z_OPEN_FORM'
    EXPORTING
    APPLICATION = APPLICATION
    ARCHIVE_INDEX = ARCHIVE_INDEX
    ARCHIVE_PARAMS = ARCHIVE_PARAMS
    DEVICE = DEVICE
    DIALOG = DIALOG
    FORM = FORM
    LANGUAGE = LANGUAGE
    OPTIONS = OPTIONS
    MAIL_SENDER = MAIL_SENDER
    MAIL_RECIPIENT = MAIL_RECIPIENT    <------ <b>Single To ID 
                                               is passing here</b>
    MAIL_APPL_OBJECT = MAIL_APPL_OBJECT
    RAW_DATA_INTERFACE = RAW_DATA_INTERFACE
    FAX = ZALPHA-TELFX_1
    COMPANY = ZALPHA-NAME1_1
    CONTACT = ZALPHA-TEXT63
    COMMENT = NAST-TDCOVTITLE
    USER1 = ZALPHA-TEXT62
    USER2 = NAST-OBJKY
    *{ REPLACE SBXK901084 4
    OWNER = SY-UNAME
    OWNER = WRK-OWNER
    *} REPLACE
    EMAIL = ZALPHA-TEXT61
    COVER = ZALPHA-TEXT64
    USERID = ZALPHA-TEXT65
    IMPORTING
    LANGUAGE = LANGUAGE
    NEW_ARCHIVE_PARAMS = NEW_ARCHIVE_PARAMS
    RESULT = RESULT
    EXCEPTIONS
    CANCELED = 1
    DEVICE = 2
    FORM = 3
    OPTIONS = 4
    UNCLOSED = 5
    MAIL_OPTIONS = 6
    ARCHIVE_ERROR = 7
    INVALID_FAX_NUMBER = 8
    MORE_PARAMS_NEEDED_IN_BATCH = 9
    SPOOL_ERROR = 10
    OTHERS = 11.
    IF SY-SUBRC <> 0.
    Raise the corresponding exception
    CASE SY-SUBRC.
    WHEN 1. RAISE CANCELED.
    WHEN 2. RAISE DEVICE.
    WHEN 3. RAISE FORM.
    WHEN 4. RAISE OPTIONS.
    WHEN 5. RAISE UNCLOSED.
    WHEN 6. RAISE MAIL_OPTIONS.
    WHEN 7. RAISE ARCHIVE_ERROR.
    WHEN 8. RAISE INVALID_FAX_NUMBER.
    WHEN 9. RAISE MORE_PARAMS_NEEDED_IN_BATCH.
    WHEN 10. RAISE SPOOL_ERROR.
    WHEN OTHERS. RAISE OTHERS.
    ENDCASE .
    ENDIF.
    Any suggestions please

  • Can't send emails to multiple recipients any more?

    Yesterday I had to send an email to some 30 other people (I only do this occasionally).
    It refused to go and I received this error message:-
    I have several email accounts but each one was the same.
    At that time I could not even send single emails but incoming emails were unaffected.
    Later in the day I received this email from my ISP mail account.
    Your emails may be blocked – please confirm your alternate BT Yahoo! Mail addresses
    Dear Customer,
    You’ve received a ‘553’ error message because we’ve upgraded your BT Yahoo! Mail account security to help protect against ‘spoofing’ – when people use alternate email addresses to disguise the real sender, possibly to commit fraud.
    What you need to do
    We need you to take a few minutes to confirm each of the BT Yahoo! Mail alternate email addresses you use are genuine. If you don’t, you might get more ‘553’ error messages and have problems sending emails. Just log in and follow these simple steps. We don’t ask for any personal information.
    This is rubbish and I had a similar one last year which I ignored, as the simple steps were far from simple, and the following morning all was back to normal.
    So I ignored this email and tried again this morning.
    I was still unable to send emails to multiple recipients but now I can send single emails OK!
    Any ideas what is going on?
    Is it Mail's fault or my ISP's?

    From the error message, it looks like there was a problem with at least one of the addresses ("NONE"). It is possible that a bad address is in the list you tried to send to.
    I don't know anything about BT Internet, so I can't confirm the authenticity of the email you received.
    You should be able to log into your BT account directly from the web without using any links sent in the email.
    The email also seems to indicate you used an alias as the reply-to (from) email address.
    You didn't mask out the username for your smtp server and it is definitely different from the from account. This may all be normal, but it does tend to match what the email is telling you.

  • Sending Text Messages to Multiple Recipients

    Is there a way to send a text message to multiple recipients? I've been trying to figure it out for a while. I feel like this is a feature that apple couldn't have just forgotten! Anybody know?

    Not supported with the iPhone - at the present time anyway with no indication that it will be supported in the future.
    Apple is known for doing research so right, wrong or indifferent, I doubt this is something Apple forgot to include.
    The only thing you can do is provide Apple feedback via the iPhone feedback link.

  • IPhone 5 iOS7 - Sending text to multiple recipients.

    I have recently upgraded from my trusty iPhone 3GS to an iPhone 5 with iOS7. The phone is locked to the UK O2 Network.
    When abroad multiple recipient text could be sent incurring a European Text Message Cost of 6p per recipient. So far so good. Idid not use data when I was abroad as I had the Roaming option off.
    When back in the UK I tried to send Multiple Recipeint texts only to find there was a problem.
    The recipeint received a message saying that I had sent them a Media Message without the text being included. I incurred a 33p cost per multiple text instead od the texts being free.
    I have never paid for texts before as I am on an unlimited text tariff.
    Any suggestions other than sending each text individually.
    O2 seem to be aware of this issue.
    Is it an iOS7 issue, or an iPhone 5 issue?
    This was never a problem with my iPhone 3GS.
    Many thanks.

    I have just read this on the Apple Site:
    "iOS: Understanding group messaging
    Learn about group messaging.
    You can send a message to multiple recipients using SMS, MMS, and iMessage.
    Group messaging allows you to send messages to multiple people and have any responses delivered to everyone in the group. Group messaging works with iMessage and MMS.
    If you send a message to multiple recipients without group messaging in use by the sender and all recipients, an individual message will go to each recipient using either SMS or MMS. Responses to these messages will be delivered only to the original sender in separate messaging threads."
    This would suggest that Multiple Recipient Text do not necessarily need MMS.
    It would seem that unless MMS is prevented then Multiple Recipient Texts will default to MMS.
    I have switched off data and have been able to send Multiple Recipient Texts which the recipient has been able to read as texts.

  • Message error when sending to multiple recipients/contacts

    Ever since 3.0 I can't send messages to multiple recipients. I'm on Optus in Australia using a 16gb 3G.
    Anyone else having this problem?
    Any fixes?

    Actually, just for an update, if I turn off MMS I can send to multiple contacts. But with MMS on, I can't. Am I the only person having this issue?
    I've tried a restore, and set-up as new phone. But still having no success.

  • Mail issue: not sending (addressed to multiple recipients in BCC

    Hi,
    I am having trouble sending a message to multiple recipients in the BCC field.  I am sending to myself in the To: box and many others in BCC.  It is not sending the message, either through my Mail program, nor through iCloud mail.  iCloud mail gives me  "Cannot send message.  This message cannot be sent at this time." messge, but no explanation why.  (iCloud mail seems to be working normally according to on-line status report).  My Mail program give me a, "Cannot send message using the server smtp.me.com:(username)
    The server "smtp.me.com" did not recognize the following recipients:  [followed by long list of recipients all separated by commas] though it doesn't list all the recipients in the field. 
    Could it be that I just have too many in the field?
    HELP!  I'm in a time-crunch on this one.
    It did send a test e-mail to me, just fine.  No other reipients listed.)

    AAARGH!  Nevermind!  I found the answer!  over the 100 recipients-at-a-time limit.

  • Question regarding sending email to multiple recipients

    Hi All,
    I am creating a workflow that will send an email notification everytime a new campaign is created. I've learned that R16 is capable of sending emails to multiple recipients, the only concern I have is I can't find any doumentation on how to do it. It is stated in the R16 Administrator Preview Guide that you can select 'Specific Email Address' and enter multiple email addresses directly, I tried to enter multiple email addresses separated by comma - [email protected],[email protected],[email protected] as an example, but it doesn't work and prompts me to enter a valid email address. Could anybody guide me on how to enter multiple email addresses once the 'Specific Email Address' is selected or how to do it in the expression builder to define the expression that will define the list of emails. I know that using group email addresses can be used as an alternative to this requirement but I hope theirs a way to do this with workflows.
    Thanks,
    Wayne

    According to the R16 Admin preview guide;-
    "Send Email to Multiple Recipients
    Expression Builder is now linked to the email address text field that is presented when the Specific Email Address
    option is selected. Workflow administrators can enter multiple email addresses directly, or click the "fx" icon
    beside the field, and use Expression Builder to define expressions that evaluate to one or more email addresses.
    The benefit of this feature is that emails can be stored on any text field in the base record and multiple emails can
    be sent using one workflow action. "
    But how that works exactly is not clear, I have tried commas, semi-colons, spaces, apostrophes, doublequotes, to separate and try to establish the correct syntax without luck.
    Bob - Perhaps you can do some digging and find out the correct syntax for multiple addresses?

  • N8 sending SMS to multiple recipients as MMS?

    If I send an SMS text message to multiple recipients it is being sent as an MMS. Since MMS is not included in my PAYG "goodybag", it's costing me a fortune!
    I can't find this in the user guide anywhere. Can I turn it off?
    many thanks

    While you writing a text message, if you don't add anything photos or smileys (sometimes smileys may have counted as .gif s ), it must be sent as text messages. Or if you choose a recipent that have no phone number but a mail adress, it sends texts to mail adresses as MMS.
    Another thing to consider is to check again messaging centers.

  • Unable to send emails to multiple recipients through oracle storedprocedure

    I have the email code working with single email in the To address but I am looping through the table and getting a semicolon separated emails and assining to_mail and I am unabl to send any emails to any users in To address but works for cc_address users. I am getting the following error in the stored procedure when compiling. Please help if any suggestions or any one came accross this issue. Thanks.
    ORA-29279: SMTP permanent error: 501 #5.1.1 bad address @abc.com
    ORA-06512: at "SYS.UTL_SMTP", line 29
    ORA-06512: at "SYS.UTL_SMTP", line 110
    ORA-06512: at "SYS.UTL_SMTP", line 252
    ORA-06512: at "abc_owner.SendMail", line 101
    ORA-06512: at line 10

    900045 wrote:
    I have the email code working with single email in the To address but I am looping through the table and getting a semicolon separated emails and assining to_mail and I am unabl to send any emails to any users in To address but works for cc_address users. I am getting the following error in the stored procedure when compiling. Please help if any suggestions or any one came accross this issue. Thanks.
    ORA-29279: SMTP permanent error: 501 #5.1.1 bad address @abc.com
    ORA-06512: at "SYS.UTL_SMTP", line 29
    ORA-06512: at "SYS.UTL_SMTP", line 110
    ORA-06512: at "SYS.UTL_SMTP", line 252
    ORA-06512: at "abc_owner.SendMail", line 101
    ORA-06512: at line 10when all else fails, Read The Fine Manual
    http://docs.oracle.com/cd/E11882_01/appdev.112/e25788/u_smtp.htm#i1002798
    RCPT Function
    This subprogram specifies the recipient of an e-mail message.
    "To send a message to multiple recipients, call this routine multiple times. "
    "Each invocation schedules delivery to a single e-mail address."

  • On OnPremise, Sending email to multiple recipients doesn't work with SendEmail method

    Hi,
    We are creating a site collection on OnPremise from App by using Sharepoint Client API's (16 version).
    After creation of site collection, we are sending an email to all site collection administrators. But we found that email is being sent to the only first person mentioned in the "To" list. For sending email we are using following method "Microsoft.SharePoint.Client.Utilities.Utility.SendEmail()".
    We tried different scenarios by passing alternately domain username and email address.
    Here are the findings for the different scenarios for the "To" field:
    1) "domain\user1; domain\user1" => sends email to first user
    2) "[email protected]; [email protected]" => sends email to both emails (at least shows in inbox To field, two occurances of email)
    3) "domain\user1; domain\user2" => sends email to first user
    4) "[email protected]; [email protected]" => sends email to first user
    Here is the code we are using:
                    EmailProperties properties = new EmailProperties();
                    properties.To = to.ToList();
                    if (cc != null)
                        properties.CC = cc;
                    properties.Subject = subject;
                    properties.Body = body;
                    Utility.SendEmail(context, properties);
                    context.ExecuteQuery();
    Please let us know what is going wrong here.
    Thanks in advance for your valuable inputs.
    Br,
    Shriram
    Shri07

    According to the R16 Admin preview guide;-
    "Send Email to Multiple Recipients
    Expression Builder is now linked to the email address text field that is presented when the Specific Email Address
    option is selected. Workflow administrators can enter multiple email addresses directly, or click the "fx" icon
    beside the field, and use Expression Builder to define expressions that evaluate to one or more email addresses.
    The benefit of this feature is that emails can be stored on any text field in the base record and multiple emails can
    be sent using one workflow action. "
    But how that works exactly is not clear, I have tried commas, semi-colons, spaces, apostrophes, doublequotes, to separate and try to establish the correct syntax without luck.
    Bob - Perhaps you can do some digging and find out the correct syntax for multiple addresses?

  • Sending Mails to Multiple Recipients using UTL_SMTP

    create or replace procedure send_mail(msg_text varchar2) is
    c utl_smtp.connection;
    PROCEDURE send_header(name IN VARCHAR2, header IN VARCHAR2) AS
    BEGIN
    utl_smtp.write_data(c, name || ': ' || header || utl_tcp.CRLF);
    END;
    BEGIN
    c := utl_smtp.open_connection('outlook.abc.com');
    utl_smtp.helo(c, 'abc.com');
    utl_smtp.mail(c, '[email protected]');
    utl_smtp.rcpt(c, '[email protected]');
    utl_smtp.open_data(c);
    send_header('From', '"root" <[email protected]>');
    send_header('To', '"abc" <[email protected]>');
    send_header('Subject', 'WARNING: Salary has been changed');
    utl_smtp.write_data(c, utl_tcp.CRLF || msg_text);
    utl_smtp.close_data(c);
    utl_smtp.quit(c);
    EXCEPTION
    WHEN utl_smtp.transient_error OR utl_smtp.permanent_error THEN
    BEGIN
    utl_smtp.quit(c);
    EXCEPTION
    WHEN utl_smtp.transient_error OR utl_smtp.permanent_error THEN
    NULL; -- When the SMTP server is down or unavailable, we don't have
    -- a connection to the server. The quit call will raise an
    -- exception that we can ignore.
    END;
    raise_application_error(-20000,
    'Failed to send mail due to the following error: ' || sqlerrm);
    END;
    ==============
    when I execute the above using
    sql> exec send_mail('hihihih');
    I am getting the mails..no problems...
    So..I created the following trigger and used the above procedure to send the mail...
    CREATE OR REPLACE TRIGGER test_emp_table_trg
    AFTER UPDATE
    ON test_emp_table
    FOR EACH ROW
    WHEN (NEW.sal <> OLD.sal)
    DECLARE
    l_employee_name VARCHAR2 (240);
    l_old_sal VARCHAR2 (240);
    l_new_sal VARCHAR2 (240);
    l_message VARCHAR2 (240);
    BEGIN
    /* Gets the employee full name */
    BEGIN
    SELECT ename
    INTO l_employee_name
    FROM test_emp_table
    WHERE empno = :OLD.empno;
    EXCEPTION
    WHEN OTHERS
    THEN
    l_employee_name := NULL;
    END;
    /* Gets the old Salary */
    BEGIN
    SELECT sal
    INTO l_old_sal
    FROM test_emp_table
    WHERE empno = :OLD.empno;
    EXCEPTION
    WHEN OTHERS
    THEN
    l_old_sal := 0;
    END;
    /* Gets the new salary */
    BEGIN
    SELECT sal
    INTO l_new_sal
    FROM test_emp_table
    WHERE empno= :NEW.empno;
    EXCEPTION
    WHEN OTHERS
    THEN
    l_new_sal := 0;
    END;
    l_message:=
    'Employee Name= '
    || l_employee_name
    || 'Old Salary= '
    || l_old_sal
    || 'New Salary= '
    || l_new_sal;
    BEGIN
    send_mail (l_message);
    END;
    END;
    ===================
    I am not getting desired output..what might be problem friends...I am getting 0 values for old salary and new salary......
    One more thing..when i use 2 receipts in the send_mail procedure like this...I added the following lines in the procedure to send to multiple receipents..
    ======
    utl_smtp.rcpt(c, '[email protected]');
    utl_smtp.rcpt(c, '[email protected]');
    =============
    Pleas have a look and correct me, where i went wrong....
    Edited by: oraDBA2 on Sep 22, 2008 3:12 PM

    Hi, You can use the following routine to send mail to multiple recipients through utl_smtp.
    create or replace package mail_pkg
    as
    type array is table of varchar2(255);
    procedure send( p_sender_e_mail in varchar2,
    p_from in varchar2,
    p_to in array default array(),
    p_cc in array default array(),
    p_bcc in array default array(),
    p_subject in varchar2,
    p_body in long );
    end;
    create or replace package body mail_pkg
    begin
    g_crlf char(2) default chr(13)||chr(10);
    g_mail_conn utl_smtp.connection;
    g_mailhost varchar2(255) := 'ur mail server';
    function address_email( p_string in varchar2,
    p_recipients in array ) return varchar2
    is
    l_recipients long;
    begin
    for i in 1 .. p_recipients.count
    loop
    utl_smtp.rcpt(g_mail_conn, p_recipients(i));
    if ( l_recipients is null )
    then
    l_recipients := p_string || p_recipients(i) ;
    else
    l_recipients := l_recipients || ', ' || p_recipients(i);
    end if;
    end loop;
    return l_recipients;
    end;
    procedure send( p_sender_e_mail in varchar2,
    p_from in varchar2,
    p_to in array default array(),
    p_cc in array default array(),
    p_bcc in array default array(),
    p_subject in varchar2,
    p_body in long );
    end;
    is
    l_to_list long;
    l_cc_list long;
    l_bcc_list long;
    l_date varchar2(255) default
    to_char( SYSDATE, 'dd Mon yy hh24:mi:ss' );
    procedure writeData( p_text in varchar2 )
    as
    begin
    if ( p_text is not null )
    then
    utl_smtp.write_data( g_mail_conn, p_text || g_crlf );
    end if;
    end;
    begin
    g_mail_conn := utl_smtp.open_connection(g_mailhost, 25);
    utl_smtp.helo(g_mail_conn, g_mailhost);
    utl_smtp.mail(g_mail_conn, p_sender_e_mail);
    l_to_list := address_email( 'To: ', p_to );
    l_cc_list := address_email( 'Cc: ', p_cc );
    l_bcc_list := address_email( 'Bcc: ', p_bcc );
    utl_smtp.open_data(g_mail_conn );
    writeData( 'Date: ' || l_date );
    writeData( 'From: ' || nvl( p_from, p_sender_e_mail ) );
    writeData( 'Subject: ' || nvl( p_subject, '(no subject)' ) );
    writeData( l_to_list );
    writeData( l_cc_list );
    utl_smtp.write_data( g_mail_conn, '' || g_crlf );
    utl_smtp.write_data(g_mail_conn, p_body );
    utl_smtp.close_data(g_mail_conn );
    utl_smtp.quit(g_mail_conn);
    end;
    end;
    begin
    mail_pkg.send
    (p_sender_e_mail => 'urmail',
    p_from => 'urmail',
    p_to => mail_pkg.array( 'urmail','othersmail' ),
    p_cc => mail_pkg.array( ' othermail ' ),
    p_bcc => mail_pkg.array( '' ),
    p_subject => 'This is a subject',
    p_body => 'Hello Buddy, this is the mail you need' );
    end;
    /

Maybe you are looking for

  • External Drive Reformatted Itself

    I have an external drive that used to be a 3TB USB 2.0 WD MyBook. A while ago I upgraded my MBP to a 2012 model that has USB 3 so I bough an USB 3 external drive case, took apart the MyBook and swapped the drive to the new case. It worked flawlessly

  • Better way of managing heirarchical groupings?

    Sort of a feature request, but also a question to other users about different approaches you like to use.  I've often wished for a way of grouping layers in a heirarchy that is independant of layer order, like you can do in most 3D apps (or -ahem- no

  • Objects Moved to XI Production but no execution  --  please help  ?

    Hi friends   ,                      I have developed my scenario and moved [ Transported ]   my design objects [IR] to production .  <b>I have tested in XI Dev everything is working</b> .                     I have done the  configuation  [ID]  in XI

  • User-defined Favorites or Shortcuts for Reports and Schedules

    Hi experts, A client was inquiring whether it's possible to for an end-user to create shortcuts or favorites to frequently used reports within BPC.  I know it's possible to use the BPFs or presumably the custom menu tools to create links. Is there a

  • Does installing Desktop Experience on Windows Server 2008 R2 SP1 slow down the server / increase processor usage?

    Hello. I'm running a tekkit classic (Minecraft) Server on a dedicated server I got from OVH, Im just wondering - Im currently using ClamAV for an antivirus, But I would like windows defender. Im wondering if installing Desktop Experience on my dedi w