How to cc someone in sending email

Hi experts,
I call EFG_GEN_SEND_EMAIL to send a email. Now I want to cc this email to someone. How to do this?
Thanks
Moderator message: sending emails = FAQ, please search for available information/documentation before asking.
locked by: Thomas Zloch on Oct 6, 2010 12:07 PM

Hi,
Follow the code sample below to send mail to id's put in cc.
First set the copy as enabeled:-
  clear it_receivers.
REFRESH it_receivers.
it_receivers-copy = 'X'.
  it_receivers-receiver = 'email-id'.
  it_receivers-rec_type = 'U'.
  it_receivers-copy ='X'.
it_receivers-com_type = 'INT'.
  it_receivers-express = ' '.
it_receivers-notif_ndel = 'X'.
  append it_receivers.
Then use the function module:-
  call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
       exporting
            document_data              = gd_doc_data
           put_in_outbox              = 'X'
              commit_work                = 'X'
      importing
           sent_to_all                = gd_sent_all
       tables
            packing_list               = it_packing_list
            contents_txt               = it_message
            receivers                  = it_receivers
       exceptions
               too_many_receivers         = 1
      document_not_sent          = 2
      document_type_not_exist    = 3
      operation_no_authorization = 4
      parameter_error            = 5
      x_error                    = 6
      enqueue_error              = 7
      others                     = 8.
Rewrad if it is helpfull.
Thanks,
Naveen

Similar Messages

  • HT3939 HOW AM I ABLE TO SEND EMAILS TO A GROUP IN ONE GO?

    how am i able to send emails to a group of contacts in one go? on an apple 4 i phone

    Create a Group in the Conatcts app - add the recipients to it - and then send to that group.
    HTH
    T.

  • How do you make icalendar send email notifications?

    Since I "upgraded" my Mac OS I can't figure out how to get calendar to send email notifications. Is this feature gone, now?

    Apple seems to be losing its way since Jobs died. They continue with their efforts to hide features, not document features, and make their products slower and harder to use. I hate the new iPhone OS. I think Apple must hate older people because they keep switching to fonts that are harder to read (e.g. light red on white with thinner font for the calendar app).

  • How to setup adobe to send emails from the application?

    How to setup adobe to send emails from the application?

    Click Edit>Preferences and select the Email Account Preferences
    Click Add Account and select “Add other…” or if you use Gmail or Yahoo mail, select the appropriate choice for it.
    Enter your Email Account info and then click “Advanced Settings” and configure your incoming and outgoing mail settings per your email account in Outlook, Thunderbird or mail service.
    Click OK, and click Add. The new Email Account will now appear in your listed accounts.
    Click the new account and click “Make Default”
    The checkmark will indicate the new account is set as the default Email Account for Reader.

  • TS2755 i need to know how to block someone from sending me txt/imessges and calling me. they have a iphone too so i have been told the only way to block them is to turn off my imessages and only recieve regular txt messages. is there another way to block

    how do u block someone from sending imessages and txt and calling ur phone when they have a iphone also. I have been told the only way is to turn off my imessages and recieve regular text messages.. is there another way?? i have searched for apps and cant find one. neeed help!!!

    There are no apps and that is not a feature of iOS.
    iMessages are handled by Apple's own system, and there is no way to block a specific sender.
    SMS messages and voice calls are handled by your cell service provider, so you need to ask them what blocking (if any) features they offer.  If the texts are just spam, you should be able to report them to your carrier and they can block that sender.  Other blocking options will vary from carrier to carrier, so call yours and ask them what they can do.

  • How to start macbook pro sending emails again

    My macbook pro inexplicably stopped sending emails for 24 hours; how do I fix the problem?

    In Mail program check the Outgoing Mail Server. Mail>Preferences>Accounts. Of course if you get a prompt when you try to send mail perhaps you might tell us what it says...

  • How do I stop iCal sending emails?

    I've added an exchange account to iCal.  However, it recently started sending massive amounts of "Declined" emails for events, some of which are far in the past (years ago.)  This happens for multiple events and multiple recipients.  I believe the problem is that at one time I "deleted" everything in the iCal notifications area, as it was cluttered with meetings that were no longer relevant.
    However, iCal now wants to send emails to everyone on those invites telling them of the Decline.  In one minute, my mail account sent over 150 emails, which is very embarassing and inconvienent for other users.  I actually had to pull the ethernet cable and disable iCal.
    Is there a way to "flush" these out with mass-emailing everyone?  I can't find a way to tell what is going to be sent without actually being online.  I tried deleting my account in iCal and recreating, but the same behavior happened the next day.  I have Outlook running in a VM and have been using that in the interim, and it doesn't seem to have the issue.
    I want to go back to using iCal exclusively, but I'm afraid to even open the program at this point.  Help!

    I just went back into my brother's calendar and he has that event as a recurring event from August 2007 to November 2011 at which point apple moved accounts to me.com.  So it shows every week and I think when I moved I selected last event and checked repeat to never and applied to 'all future events' when pop-up gave that option.  So is there any way to resolve this?  His calendar does not show any sharing.

  • How to stop ical from sending email notifications for updates on my share ical calendar

    Is it possible stop ical from sending email notifications for updates I make on my share ical calendar?
    Mac OSX 10.7.2
    Very annoying for the person I am sharing my calendar with to get an email every time I change something.
    I hope there is a way to stop the emails, but for the updates to still go on their calendar.
    Thanks

    Great idea Lofty! thanks. If the person you are sharing a calendar with is a Yahoo Mail user, you only need to set up one filter (under Options - Mail Options - Filters) and route to Spam folder or a special folder for that purpose.
    Add a filter with the following parameters:
    Sender contains:    "Your First and Last Name" as it appears in the emails they are receiving
    Subject contains:  "Your First Name"
    Email body contains: "iCloud"
    Don't need to match case on anything. 
    So far, only these unwanted emails are being routed to the folder I chose.
    Hope that helps until Apple gets it's act together

  • How to use java to send emails

    Hi,
    I am having problems trying to send an email using java. No idea what is going on because it looks fine. Can anyone give any insight?
    Cheers
    Robert
    import java.awt.event.*;
    import java.awt.*;
    import java.net.*;
    import java.io.*;
    import javax.swing.*;
    * JEmail.java
    * @author Robert Venning 18/09/2005
    * @version 1.0
    public class JEmail extends JFrame implements ActionListener{
         private static final long serialVersionUID = 1L;
         final int SMTP_PORT = 25;
         JLabel fromLabel = new JLabel("From: ");
         JLabel toLabel = new JLabel("To: ");
         JLabel ccLabel = new JLabel("CC: ");
         JLabel subjectLabel = new JLabel("Subject: ");
         JTextField from = new JTextField(20);
         JTextField to = new JTextField(20);
         JTextField cc = new JTextField(20);
         JTextField subject = new JTextField(20);
         JTextArea message = new JTextArea(10,30);
         JScrollPane scrollPane = new JScrollPane(message);
         JButton send = new JButton("Send");
         public JEmail(){
              super("Email Program");
              JPanel mainPane = new JPanel();
              JPanel pane = new JPanel();
              JPanel fromPane = new JPanel();
              JPanel toPane = new JPanel();
              JPanel ccPane = new JPanel();
              JPanel subjectPane = new JPanel();
              mainPane.setLayout(new FlowLayout());
              pane.setLayout(new GridLayout(4,1));
              fromPane.add(fromLabel);
              fromPane.add(from);
              toPane.add(toLabel);
              toPane.add(to);
              ccPane.add(ccLabel);
              ccPane.add(cc);
              subjectPane.add(subjectLabel);
              subjectPane.add(subject);
              pane.add(fromPane);
              pane.add(toPane);
              pane.add(ccPane);
              pane.add(subjectPane);
              mainPane.add(pane);
              mainPane.add(scrollPane);
              mainPane.add(send);
              setContentPane(mainPane);
              send.addActionListener(this);
         public static void main(String[] args) {
              JFrame aFrame = new JEmail();
              aFrame.setSize(350, 400);
              aFrame.setVisible(true);
         public void actionPerformed(ActionEvent event){
              try{
                   PrintWriter writer = new PrintWriter(new FileWriter("log.txt"));
                   String input, output;
                   Socket s = new Socket("mail.tpg.com.au", SMTP_PORT);
                   BufferedReader in = new BufferedReader
                        (new InputStreamReader(s.getInputStream()));
                   BufferedWriter out = new BufferedWriter
              (new OutputStreamWriter(s.getOutputStream()));
                   output = "HELO theWorld" + "\n";
                   out.write(output);
                   out.flush();
                   System.out.print(output);
                   writer.println(output);
                   input = in.readLine();
                   System.out.println(input);
         //          writer.println(input);
                   output = "MAIL FROM: <" + from.getText() + ">" + "\n";
                   out.write(output);
                   out.flush();
                   System.out.print(output);
                   writer.println(output);
                   input = in.readLine();
                   System.out.println(input);
         //          writer.println(input);
                   output = "RCPT TO: <" + to.getText() + ">" + "\n";
                   out.write(output);
                   out.flush();
                   System.out.print(output);
                   writer.println(output);
                   input = in.readLine();
                   System.out.println(input);
              //     writer.println(input);
                   output = "DATA" + "\n";
                   out.write(output);
                   out.flush();
                   System.out.print(output);
                   writer.println(output);
                   input = in.readLine();
                   System.out.println(input);
              //     writer.println(input);
                   output = "Subject: " + subject.getText() + "\n";
                   out.write(output);
                   out.flush();
              System.out.print(output);
              writer.println(output);
              output = "From: Robert Venning <" + from.getText() + ">" + "\n";
                   out.write(output);
                   out.flush();
              System.out.print(output);
              writer.println(output);
                   // message body
              output = message.getText() + "\n";
                   out.write(output);
                   out.flush();
                   System.out.print(output);
                   writer.println(output);
                   output = ".\n";
                   out.write(output);
                   out.flush();
                   System.out.println(output);
                   writer.println(output);
                   output = "QUIT" + "\n";
                   out.write(output);
                   out.flush();
                   System.out.print(output);
                   writer.println(output);
                   input = in.readLine();
                   System.out.println(input);
         //          writer.println(input);
                   writer.close();
                   s.close();
              catch(Exception exception){
                   exception.printStackTrace();
    }

    Hi, floppit. For sending emails, I used the JavaMail API. Here is some code I wrote where I used JavaMail. The most relevant lines are in bold.
    /*   File:  ListenNotifier.java
    * Author:  Fabricio Machado
    *          [email protected]
    * This utility is based on the "Listen.java" tool from the Tiny OS
    * java tools package, in /tinyos-1.x/tools/java/net/tinyos/tools/.
    * The original application has been extended to convert raw packet data into
    * a more meaningful representation of actual photo sensor readings in
    * lux.
    * The application checks the readings against a user-defined
    * threshold, and sends email notifications when readings break the
    * threshold, and also when readings dip back below the threshold.
    * Currently, the code is only fit to handle packets from the Tiny OS
    * nesc application OscilloscopeRF.nc.  The code gets the packet data
    * by connecting via TCP to a Tiny OS java tool called "Serial Forwarder."
    * "Serial Forwarder" takes packets from the base station, and forwards
    * them to TCP port 9001.
    * Below is UC Berkeley's copyright disclaimer regarding the original code.
    *                              |   |
    *                              |   |
    *                              |   |
    *                              |   |
    *                            __|   |__
    *                                v
    * "Copyright (c) 2000-2003 The Regents of the University  of California. 
    * All rights reserved.
    * Permission to use, copy, modify, and distribute this software and its
    * documentation for any purpose, without fee, and without written agreement is
    * hereby granted, provided that the above copyright notice, the following
    * two paragraphs and the author appear in all copies of this software.
    * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
    * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
    * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
    * CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
    * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
    * AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
    * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
    * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS."
    * Copyright (c) 2002-2003 Intel Corporation
    * All rights reserved.
    * This file is distributed under the terms in the attached INTEL-LICENSE    
    * file. If you do not find these files, copies can be found by writing to
    * Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA,
    * 94704.  Attention:  Intel License Inquiry.
    import java.util.Properties;
    import java.io.*;
    import java.net.*;
    import net.tinyos.packet.*;
    import net.tinyos.util.*;
    import net.tinyos.message.*;
    import javax.mail.internet.*;
    import javax.mail.*;
    import java.util.*;
    public class ListenNotifier{
        public static void main(String args[]) throws IOException, MessagingException {
         int i;
         int j = 0;
         Integer threshold=0;
         String to="";
         String timeStamp;
         // Check to see if user is running the program correctly.
         // If -T option is not used, a default value of 250 lux is
            // set as threshold . . .
         switch (args.length){
         case 0:
               System.err.println("usage: java ListenNotifier < EmailAddress1 > <  EmailAddress2 > . . .  -T < Threshold >\n");
               System.exit(2);
               break;
         case 1:
             to = args[j];
             threshold = 250;
             break;
         default:
             if (args[args.length-2].equals("-T")){
              threshold = threshold.valueOf(args[args.length-1]);
              to = args[0];
              while(!args[j+1].equals("-T")){
                  to = to + " " + args[j+1];
                  j++;
              break;
             else{
              j = 0;
              threshold = 250;
              to = args[j];
              while((j + 1) < args.length){
                  to = to + " " + args[j+1];
                  j++;
              System.out.printf("Mailing list is: %s\n", to);
              break;
         // Connect to the Serial Forwarder on TCP port 9001 . . .
             PacketSource reader = BuildSource.makeSF("192.168.0.12",9001);
         // Check to see if connection to Serial Forwarder successful . . .
         if (reader == null) {
             System.err.println("Invalid packet source (check your MOTECOM environment variable)");
             System.exit(2);
         try {
             // Use JavaMail API methods to set up an
             // email session . . .
          Properties props = System.getProperties();
         Session session = Session.getInstance(props, null);
         javax.mail.Message message = new MimeMessage(session);
             // Open the packet source . . .
             reader.open(PrintStreamMessenger.err);
             // Set a threshold boolean to be used so
             // email is sent only once after threshold
             // is exceeded.
             Boolean limit = false;
             for (;;) {
              // The node ID field in the OscilloscopeRF packet
              // is 2 bytes long, but all byte pairs in the packet
              // are in little endian order.  Thus, the bytes must
              //  be re-ordered.  They are then converted to unsigned
              // integers and added together to obtain the node ID.
              byte[] packet = reader.readPacket();
              Integer nodeID = (( int ) packet[5] & 0xFF) + ((( int ) packet[6] & 0xFF)<<8);
              System.out.printf("Packet from node %d . . . \n", nodeID);
              // Begin extracting data payload of sensor readings,
                    // which are stored in the last 20 bytes of the packet . . .
             for (i = 0; i <= 9; i++){
              // Convert reading to integer, display on screen . . .
              Integer sensorData = (( int ) packet[(2*i)+11] & 0xFF) + ((( int ) packet[(2*i)+12] & 0xFF)<<8);
              System.out.printf("Sample %d reading at %d lux.\n", i+1, sensorData);
              // Is sensor reading  above limit?
              if(!limit && (sensorData >= threshold)){
                  limit = true;
                  System.out.printf("WARNING: SENSOR READING ABOVE THRESHOLD--SENDING NOTICE BY TEXT MESSAGE.\n");
                  // Compute a time stamp for when threshold was exceeded.
                  java.util.Locale locale = Locale.getDefault();
                  java.text.DateFormat dateFormat = java.text.DateFormat.getDateTimeInstance(java.text.DateFormat.LONG,
                                                                  java.text.DateFormat.LONG, locale);
                  timeStamp = dateFormat.format(new java.util.Date());
                  // Build message and send to recipients in mailing list . . .
                  message.setFrom();
              message.setRecipients(javax.mail.Message.RecipientType.TO, InternetAddress.parse(to, false));
              message.setSubject("WARNING: NODE " + nodeID.toString() + " SENSOR READING ABOVE THRESHOLD!");
              message.setText("Node " + nodeID.toString() + " sensed " + sensorData.toString() + " lux on " + timeStamp + "\n");
              Transport.send(message);
                  System.out.printf("%s\n",timeStamp);
              //  Has sensor reading now dropped from above threshold to below threshold?
              //  Same concept as before . . .
              if(limit && (sensorData < threshold)){
                  limit = false;
                  System.out.printf("READING BELOW THRESHOLD AGAIN . . . SENDING NOTICE BY TEXT MESSAGE.\n");
                  java.util.Locale locale = Locale.getDefault();
                  java.text.DateFormat dateFormat = java.text.DateFormat.getDateTimeInstance(java.text.DateFormat.LONG,
                                                                  java.text.DateFormat.LONG, locale);
                  timeStamp = dateFormat.format(new java.util.Date());
                  message.setFrom();
              message.setRecipients(javax.mail.Message.RecipientType.TO, InternetAddress.parse(to, false));
              message.setSubject("NODE " + nodeID.toString() + " READING BELOW THRESHOLD AGAIN.");
              message.setText("Node " + nodeID.toString() + " sensed " + sensorData.toString() + " lux on " + timeStamp + "\n");
              Transport.send(message);
                  System.out.printf("%s\n",timeStamp);
             System.out.println();
             System.out.flush();
         // Catch IOException from Tiny OS java method, and
         // MessagingException from setRecipients method in JavaMail API . . .
         catch (IOException e) {
             System.err.println("Error on " + reader.getName() + ": " + e);
         catch(MessagingException e){
         System.err.println("Error in javax.mail.message.setRecipients:\n" + to);
    }

  • How the Heck can you send email to Verizon?!!!

    Is it just me, or have others found an easy way to send a tech support email to Verizon about billing or other issues?  I've used Safari and FireFox and every time I try to get to the page where you can send an email, there is nothing there.  It's like some horrible scam.  Is anyone actually getting through to them?
    Please help if you can.
    Thanks,
    Mick

    kaebfly wrote:
    MickG wrote:
    kaebfly wrote:
    MickG wrote:
    kaebfly wrote:
    It works fine for me. You might need to check that your browsers are up to date. Also, there might just be compatiability issues with the browsers you use. A quick google search showed that there a lot of complaints posted about sites that don't play well with FireFox. I don't use either browser so perhaps that's why I  haven't had an issue accessing the email portion of the VZW site.
    Both browsers are up to date.  I'm an Apple Tech and know what I'm doing, but it's just bizarre that I can never get to the actual email form.  Anybody have a URL? 
    If all else fails, I guess I'll just have to sit on the phone....  [sigh]
    Thanks for any other ideas that might surface here.
    cheers,
    Mick
    Ok, in no way were you told or was it implied that you didn't know what you were doing on some level. You stated you were having a problem. I and another poster stated that we did not have the problem you mentioned. I suggested things that may be going on...obviously an issue exists if some of us are able to access the email page with no issue and you are not. Pointing out that there are documented issues with FireFox (one of the browsers you stated you used) and various websites is an attempt to help you out. You may be an Apple Tech but that has absolutely nothing to do with you having issues accessing a Verizon website  page and possible issues with the browsers and the site in question (last that I checked isn't an Apple browser). At any rate, try going to the following URL: https://www.verizonwireless.com/b2c/contact/email.jsp If that doesn't work for you then perhaps you can find a better solution. Being an Apple Tech as you stated I'm sure you can figure it out without any of my attempts to help you out. Good luck.
    Wow!  How interesting you read all kinds of negative things into my fairly brief reply.  I was just using broad strokes here to let you know that everything was up to date but the site is not kicking out an email form to me in either of the two, up to date browsers I'm using.  As you noted, this has little to do with technical competence and eveything to do with some flaw in the site that puts me in an infinite loop when I try to get a help desk ticket.  You never mentioned which browser you are using, but I'm guessing that it's IE?...  
    Anyway, lest you take umbrage again, let me state clearly that I'm just looking for an answer and while "it's not happening to me" is a partial one indeed, it doesn't solve my problem.  The link you posted is exactly where I end up going, but can't get through. That's what's so puzzling to me.
    I'm grateful for any replies, but please don't take offense because I'm trying to save us all some time.
    Peas and Carrots,
    Mick
    The thing that seems to be part of your issue is the browsers you are using and their compatiability with the VZW website. That is why I pointed out the things that I did to begin with. I'm sorry...you responding to possible solutions with " I'm an Apple Tech and know what I'm doing..." came off as if suggesting that you check your browsers and pointing out that a search showed that FireFox has a long list of website compatiability issues was beneath your level of knowledge because you're an Apple Tech and know what you're doing. THAT is what caused the response. You stated that the URL I provided took you to the same place you keep arriving when you try to go to it using the browsers that you are using. The URL works fine for me using IE. Another possible indicator that for whatever reason, the browsers that you are using and the VZW site don't play well together. I stated that I don't use either of the browsers that you listed so I can't troubleshoot those browsers...but perhaps trying a different browser will help you see the form so you can contact VZW as you initially wanted to. If using another browser isn't something you are interested in doing, perhaps doing an internet search about your issue will find fixes for the browsers and site issues...or you might just have to contact VZW via the telephone or go to a store if you can't contact them via the website. Another option you may have is to send a PM to one of the VZW Employees that post on here (you will have to search the forum to try and find one unless there is another way besides looking through the threads to locate one that has posted or doing a search in the search box). Also, I'm not so sure how reliable it might be but you can try going to the VZW Facebook page (if you use FB) and posting a message on there...perhaps whoever runs that page will respond with an alternative way for you to contact someone viz VZW for help. I don't know if providing you with the last email address that I was contacted from a VZW rep will help since I'm not sure if the emails are filtered to specific depts but if you want to try that then just let me know. Otherwise, maybe someone else can chime in and give you some help that you can use.
    Thanks for all the help, but unfortunately IE is not available on the Mac platform and Chrome is not fundamentally different from Safari or FireFox.  Verizon must have built their site entirely on IE webkit if the site really doesn't function properly on anything other than IE.  What a shame.  Anyway, that's also why I alluded to being an Apple tech and using the two major browsers that really are available for us.  I'm still not a Chrome fan (too much distrust of Google, I guess), but I know other Mac people who like it.  They're usually much younger.  ;-)
    Anyway, at this point we've both wasted too much of our time with this and I'll just call.  
    I think the thing that annoyed me the most about the problem was that it seems like VZW is really trying to make it hard for people to find the page to send an email.  Once you finally find it, you can't get it to work if you're using an Apple computer!  In spite of carrying the highly sought after Apple products, they may have designed an entire website that has significant parts not compatible with open source code on which both of those browsers (Safari & FireFox) are based.  
    And they wonder why Steve Jobs went to AT&T first?  ;-)
    cheers,
    Mick

  • How to use UTL_SMTP to send email with existing file attachment

    Hello! I am trying to create a pl/sql procedure that lets me send an email and include an existing file to a email address. So far, I found information on how to send a file and create an attachment with information I put in the procedure. This is NOT what I'm trying to do. I'm trying to send an email and include an attachment for a file that already exists. I need the pre-existing file to be sent to the email recipient.
    This is how far I've gotten, but this only allows me to CREATE an attachment with the information I put in it from the procedure. I got it from the following site:
    http://www.orafaq.com/wiki/Send_mail_from_PL/SQL
    DECLARE
       v_From       VARCHAR2(80) := '[email protected]';
       v_Recipient  VARCHAR2(80) := '[email protected]';
       v_Subject    VARCHAR2(80) := 'Weekly Invoice Report';
       v_Mail_Host  VARCHAR2(30) := 'mail.mycompany.com';
       v_Mail_Conn  utl_smtp.Connection;
       crlf         VARCHAR2(2)  := chr(13)||chr(10);
    BEGIN
      v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
      utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
      utl_smtp.Mail(v_Mail_Conn, v_From);
      utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
      utl_smtp.Data(v_Mail_Conn,
        'Date: '   || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
        'From: '   || v_From || crlf ||
        'Subject: '|| v_Subject || crlf ||
        'To: '     || v_Recipient || crlf ||
        'MIME-Version: 1.0'|| crlf ||     -- Use MIME mail standard
        'Content-Type: multipart/mixed;'|| crlf ||
        ' boundary="-----SECBOUND"'|| crlf ||
        crlf ||
        '-------SECBOUND'|| crlf ||
        'Content-Type: text/plain;'|| crlf ||
        'Content-Transfer_Encoding: 7bit'|| crlf ||
        crlf ||
        'This is a test'|| crlf ||     -- Message body
        'of the email attachment'|| crlf ||
        crlf ||
        '-------SECBOUND'|| crlf ||
        'Content-Type: text/plain;'|| crlf ||
        ' name="ap_inv_supplier_cc10.txt"'|| crlf ||
        'Content-Transfer_Encoding: 8bit'|| crlf ||
        'Content-Disposition: attachment;'|| crlf ||
        ' filename="ap_inv_supplier_cc10.txt"'|| crlf ||
        crlf ||
        'TXT,file,attachment'|| crlf ||     -- Content of attachment  (THIS IS MY PROBLEM!  I NEED TO BE ABLE TO ATTACH AN EXISTING FILE, NOT CREATE A NEW ONE)
        crlf ||
        '-------SECBOUND--'               -- End MIME mail
      utl_smtp.Quit(v_mail_conn);
    EXCEPTION
      WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
        raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
    END;
    /

    First, you must create a directory object
    create directory ORALOAD as '/home/ldcgroup/ldccbc/'
    /Study the Prerequisites in the link I posted above, or else you will not be able to read/write files from the above directory object
    "fname" relates to the file name that you read from.
    In the code below, it is also the name of the file that you are attaching.
    Although they can be different!
    l_Output is the contents of the file.
    declare
    vInHandle  utl_file.file_type;
    flen       number;
    bsize      number;
    ex         boolean;
    l_Output   raw(32767);
    fname      varchar2(30) := 'ap_inv_supplier_cc10.txt';
    vSender    varchar2(30) := '[email protected]';
    vRecip     varchar2(30) := '[email protected]';
    vSubj      varchar2(50) := 'Weekly Invoice Report';
    vAttach    varchar2(50) := 'ap_inv_supplier_cc10.txt';
    vMType     varchar2(30) := 'text/plain; charset=us-ascii';
    begin
      utl_file.fgetattr('ORALOAD', fname, ex, flen, bsize);
      vInHandle := utl_file.fopen('ORALOAD', fname, 'R');
      utl_file.get_raw (vInHandle, l_Output);
      utl_file.fclose(vInHandle);
      utl_mail.send_attach_raw(sender       => vSender
                              ,recipients   => vRecip
                              ,subject      => vsubj
                              ,attachment   => l_Output
                              ,att_inline   => false
                              ,att_filename => fname);
    end;
    /

  • How to stop Siri from sending email invitations?

    Hello!
    When I put a meeting or appointment on my calendar using Siri, I find that it sends out an email to the person. Yikes! I don't want this to happen unless I specifically send such emails. How can I stop this?
    Thanks!
    Michael

    I've noticed this too. When Siri creates one (from my words) like 'Appointment with Dr. Smith', no invite is sent. If I use the name corresponding to his card in my contacts, the email is sent without confirming. 
    Another topic suggests a setting in Calendar on iCloud.com. (Settings is at bottom left.)
    Elsewhere, a suggestion to turn off 'New Invitation Alerts' in iPhone Settings > Mail, Contacts, Calendars (1st item under Calendars) Going to give this a try.
    Have you found a solution Michael?
    We need a way to opt in or out of that email....
    Going to file a bug report on this.

  • How can I change the sender email id in SO_NEW_DOCUMENT_ATT_SEND_API1

    Hi,
    I am using the FM "SO_NEW_DOCUMENT_ATT_SEND_API1" to send an E-Mail. I have to use the sender's E-Mail address as a general one ( Not to the SAP login user's id ). How to do this.
    Please advice.
    Thanks in advance.

    Hai Sabari
    Check the following Code
    DATA: OBJPACK   LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
      DATA: OBJHEAD   LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
      DATA: OBJBIN    LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
      DATA: OBJTXT    LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
      DATA: RECLIST   LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.
      DATA: DOC_CHNG  LIKE SODOCCHGI1.
      DATA: TAB_LINES LIKE SY-TABIX.
      DATA L_NUM(3).
    Creation of the document to be sent
    File Name
      DOC_CHNG-OBJ_NAME = 'SENDFILE'.
    Mail Subject
      DOC_CHNG-OBJ_DESCR = 'Delivered Mail'.
    Mail Contents
      OBJTXT = 'Object text'.
      APPEND OBJTXT.
      DESCRIBE TABLE OBJTXT LINES TAB_LINES.
      READ TABLE OBJTXT INDEX TAB_LINES.
      DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
    Creation of the entry for the compressed document
      CLEAR OBJPACK-TRANSF_BIN.
      OBJPACK-HEAD_START = 1.
      OBJPACK-HEAD_NUM = 0.
      OBJPACK-BODY_START = 1.
      OBJPACK-BODY_NUM = TAB_LINES.
      OBJPACK-DOC_TYPE = 'RAW'.
      APPEND OBJPACK.
    Creation of the document attachment
      LOOP AT ITAB_DATA.
        CONCATENATE ITAB_DATA-PRODUCTOR
                    ITAB_DATA-VBELN
                    ITAB_DATA-POSNR
                    ITAB_DATA-MATNR INTO OBJBIN.
        APPEND OBJBIN.
      ENDLOOP.
      DESCRIBE TABLE OBJBIN LINES TAB_LINES.
      OBJHEAD = 'ORDERS'.
      APPEND OBJHEAD.
    Creation of the entry for the compressed attachment
      OBJPACK-TRANSF_BIN = 'X'.
      OBJPACK-HEAD_START = 1.
      OBJPACK-HEAD_NUM   = 1.
      OBJPACK-BODY_START = 1.
      OBJPACK-BODY_NUM   = TAB_LINES.
      OBJPACK-DOC_TYPE   = 'TXT'.
      OBJPACK-OBJ_NAME   = 'WEBSITE'.
      OBJPACK-OBJ_DESCR  = 'ORDERS.TXT'.
      OBJPACK-DOC_SIZE   = TAB_LINES * 255.
      APPEND OBJPACK.
    Completing the recipient list
    target recipent
      clear RECLIST.
      RECLIST-RECEIVER = '[email protected]'.
      RECLIST-EXPRESS  = 'X'.
      RECLIST-REC_TYPE = 'U'.
      APPEND RECLIST.
    copy recipents
      clear RECLIST.
      RECLIST-RECEIVER = '[email protected]'.
      RECLIST-EXPRESS  = 'X'.
      RECLIST-REC_TYPE = 'U'.
      RECLIST-COPY     = 'X'.
      APPEND RECLIST.
    Sending the document
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           EXPORTING
                DOCUMENT_DATA              = DOC_CHNG
           TABLES
                PACKING_LIST               = OBJPACK
                OBJECT_HEADER              = OBJHEAD
                CONTENTS_BIN               = OBJBIN
                CONTENTS_TXT               = OBJTXT
                RECEIVERS                  = RECLIST
           EXCEPTIONS
                TOO_MANY_RECEIVERS         = 1
                DOCUMENT_NOT_SENT          = 2
                OPERATION_NO_AUTHORIZATION = 4
                OTHERS                     = 99.
    Thanks & regards
    Sreenivasulu P

  • I need to find out how to unblock someone from my email address so they can write me on it again

    I hit the word block under the list of choices in the box that shows up next to their email address on the list at the left side of my screen, and the whole box and his email address went away. Now I want him to be able to write me again, how can he? And how do I get his email address to stay back at the list on the left of my screen?

    It depends on what email provider you are using (gmail, yahoo, comcast, etc.) Mozilla doesn't provide email, so you'd have to contact your email provider to find out how to unblock them. You can try looking in your settings for a Block list, spam list or Black list, one of those might be where the email address is. But this isn't anything related to Firefox.

  • How do I receive and send emails on my new i4S? They are still going to my 3G iPhone

    I have restored from my computer to my new iphone 4S but my emails are not being received or sent. They are still going to my old iphone 3G any ideas??

    Copying files works OK, but not moving.  It seems like recently(iOS8?), when you try to delete photos from an iPhone that has been mounted you will get a 'permission denied' error. I haven't found a way around this. 
    I've resorted do manually deleting using one-by-one selections on the iPhone itself.  Dropbox carousel is great for this but I don't use Dropbox yet.  They other way is to do an iTunes sync and then delete the synced folder contents but that just feels 'weird'. Maybe there's a good App out there for photo management.

Maybe you are looking for