Pro with mail sending

Hi,
I want to send a mail to recipients( one employee ) and multiple employee ( more than 20 employees )  in CC.
I am using Classes to send a mail.
lr_receiver = cl_cam_address_bcs=>create_internet_address( receipient ).
CALL METHOD lr_email->add_recipient
                           EXPORTING
                             i_recipient = lr_receiver
*                           i_express   =
                             i_copy      = 'X'.
But receiver will hold one mail id at a time.
So how can i send mails to multiple employees in CC and one employee to receiver in one shot.
Can u please help me.
Sudheer.

Hi Mathew,
Hi all,
I am able to see the list of mail in SOST. I have wirtten the logic to display the image in the body of mail.
But in SOST, I am unable to see the image.
Please find the below image which i have taken from SOST.
my code ;
CALL METHOD o_mr_api->get
           EXPORTING
             i_url              = '/SAP/PUBLIC/Recruiting_Header.jpg'
           IMPORTING
             e_is_folder        = is_folder
             e_content          = l_current
             e_loio             = l_loio
           EXCEPTIONS
             parameter_missing  = 1
             error_occured      = 2
             not_found          = 3
             permission_failure = 4
             OTHERS             = 5.
*l_current will hold the image in a XSTRING
*Step 4: Convert the binary image data into Base64.
       CLEAR b64data.
         CALL FUNCTION 'SSFC_BASE64_ENCODE'
           EXPORTING
             bindata = l_current
           IMPORTING
             b64data = b64data.
         IF sy-subrc <> 0.
         ENDIF.
         DATA lv_length TYPE i.
         DATA lv_len2 TYPE i.
         wa_mail_body-line = 'Dear employee'.
         APPEND wa_mail_body TO gt_mail_body.
         CLEAR wa_mail_body.
         APPEND wa_mail_body TO gt_mail_body.
         CLEAR wa_mail_body.
         wa_mail_body-line = 'Warmest Birthday Wishes!!'.
         APPEND wa_mail_body TO gt_mail_body.
         CLEAR wa_mail_body.
         APPEND wa_mail_body TO gt_mail_body.
         CLEAR wa_mail_body.
         wa_mail_body-line = 'Wishing you very best always#'.
         APPEND wa_mail_body TO gt_mail_body.
         CLEAR wa_mail_body.
         APPEND wa_mail_body TO gt_mail_body.
         CLEAR wa_mail_body.
         CLEAR wa_mail_body.
         MOVE '<html>' TO wa_mail_body.
         APPEND wa_mail_body TO gt_mail_body.
         CLEAR wa_mail_body.
         MOVE '<head>' TO wa_mail_body.
         APPEND wa_mail_body TO gt_mail_body.
         CLEAR wa_mail_body.
         MOVE '<title>Hello</title>' TO wa_mail_body.
         APPEND wa_mail_body TO gt_mail_body.
         CLEAR wa_mail_body.
         MOVE '<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-   1">' TO wa_mail_body.
         APPEND wa_mail_body TO gt_mail_body.
         CLEAR wa_mail_body.
         MOVE '</head>' TO wa_mail_body.
         APPEND wa_mail_body TO gt_mail_body.
         CLEAR wa_mail_body.
         MOVE '<body>' TO wa_mail_body.
         APPEND wa_mail_body TO gt_mail_body.
         CLEAR wa_mail_body.
         wa_mail_body  = '<em><font'  .
         APPEND wa_mail_body TO gt_mail_body.
         CLEAR wa_mail_body.
         wa_mail_body  = 'color="#0000FF" size="+7" face="Arial,'.
         APPEND wa_mail_body TO gt_mail_body.
         CLEAR wa_mail_body.
         wa_mail_body  = 'Helvetica, sans-serif">Test Image</font></em>'.
         APPEND wa_mail_body TO gt_mail_body.
         CLEAR wa_mail_body.
*Add image Base64 content
         wa_mail_body = '<img src="data:image/gif;base64,'.
         APPEND wa_mail_body TO gt_mail_body.
         CLEAR wa_mail_body.
         lv_length = strlen( b64data ).
         lv_len2 = lv_length / 255.
         wa_mail_body = b64data.
         APPEND wa_mail_body TO gt_mail_body.
         CLEAR wa_mail_body.
         DATA lv_len3 TYPE i.
         DATA: temp1 TYPE i,
               temp2 TYPE i.
         DO lv_len2 TIMES.
           lv_len3 = 255 * sy-index.
           IF lv_len3 <= lv_length.
             wa_mail_body = b64data+lv_len3.
             IF wa_mail_body IS NOT INITIAL.
               APPEND wa_mail_body TO gt_mail_body.
               CLEAR wa_mail_body.
             ELSE.
               EXIT.
             ENDIF.
           ELSEIF lv_len3 > lv_length.
             EXIT.
           ENDIF.
         ENDDO.
         wa_mail_body = '"alt="Happy birthday" align="middle" width="304" height="228" />'.
         APPEND wa_mail_body TO gt_mail_body.
         CLEAR wa_mail_body.
         MOVE '</body>' TO wa_mail_body.
         APPEND wa_mail_body TO gt_mail_body.
         CLEAR wa_mail_body.
         MOVE '</html>' TO wa_mail_body.
         APPEND wa_mail_body TO gt_mail_body.
         l_subject = 'Birthday Greetings'.

Similar Messages

  • Adobe FormsCenral + Acrobat XI Pro ( E-Mail Sende Button )

    Sehr geehrte Damen und Herren,
    wir nutzen die oben genannte Software, zur Erstellung von Webformularen als PDF. Anwendungs soll sein, dass unterschiedliche Formalere von einem Handy aus ausgefüllt werden können und diese über einen E-Mail Sende Button an uns verschickt in die Firma gesendet werden. Sendeformat sollte das ausgefüllte PDF Formular sein.
    Ich bitte um Tipps wie wir dies am besten lösen können.
    Danke

    Da hier leider keiner antwortet hab ich nach guten 5 Stunden suchen endlich die Lösung gefunden.
    Die Lösung ist sehr sehr einfach.
    Für die,die es interessiert und am selben Problem verzweifeln an dem ich verzweifelt habe,hier die Lösung:
    Klick auf den "E-Mail Schaltbutton"-> Objekt -> Feld -> E-Mail-Adresse"
    Nun einfach eine Email Adresse eingeben und mit einem " , " getrennt die zweite. WICHTIG: ohne Leerzeichen vor und hinter dem " , ". Das war das winzige Detail das mich 5 Stunden meiner Arbeit gekostet hat. Hier ein Beispiel:
    [email protected],[email protected] <- RICHTIG
    [email protected], [email protected] <- FALSCH
    [email protected] ,[email protected] <- FALSCH
    [email protected] , [email protected] <- FALSCH
    Ich hoffe die Erklärung war verständlich genug.
    Ich wäre froh gewesen über ein bisschen Hilfe...
    Lg Bernd

  • Need help with mail sending mails..

    Can anybody help me with a code that works perfectly for sending mails.. since i used many codes which are not working, so please help me with the code to send mails please or else with an example.

    Hi kirupa_sankar,
    To send mails to others you have to use javax.mail.jar file and sample code is
    import javax.mail.*;
    import javax.mail.internet.*; // important
    import javax.mail.event.*; // important
    import java.net.*;
    import java.util.*;
    public class Mail {
    Properties props;
    Session session1;
    Message message;
    boolean flag=false;
    public boolean sendMail()
    props=new Properties();
    props.put("mail.smtp.host","mail.website.com"); // 'localhost' for testing
    session1 = Session.getDefaultInstance(props,null);
    String from= "[email protected]" ;
    String subject = "testing mail(subjective matter)";
    message =new MimeMessage(session1);
    message.setFrom(new InternetAddress(from));
    message.setRecipients(Message.RecipientType.TO,InternetAddress.parse("toaddress",false));
    message.setSubject(subject);
    message.setContent("content of the message");
    Transport.send(message);
    return true;
    try this one you will get success....

  • Trouble with Mail sending large attachments using iCloud

    I am on an iMac running Lion 10.7.2 using Mail 5.1
    My wife and I both have iCloud accounts.
    I have been trying to send an email with three pdf files. The total size of all three files is 48.4 mb.
    Other emails go out without any problem, but this one email will not go out.
    I keep getting the following message:
    Cannot send message using the server ...
    I then try my wife's iCloud account and it does the same thing.
    Can anyone help me figure this out? Is there a phone number or text support to actually talk to someone at apple?
    Thanks,
    Keith

    The total size of all three files is 48.4 mb.
    That's why. That maximum size of incoming and outgoing messages is 20MB:
    http://support.apple.com/kb/HT4863
    Email really isn't designed for transferring large files and all email providers have attachment size limits to avoid people clogging up their mail servers.
    Use one of the many (free) large file transfer services instead.

  • Help me with mail sending with servlets/jsp

    : doe any one have a clue as to how to send a mail via jsp/servlets.

    An obvious solution is to use JavaMail. It is part of j2EE.

  • Mail sender adapter: date

    Hi all
    I need to fetch the mail date during the processing with mail sender adapter. I can't find a relevant field in the Adapter-Specific Message Attributes (SHeaderFROM, SHeaderTO etc.).
    Do you know how to fetch the mail date during the processing of a mail via mail sender adapter?
    Thx
    Tobias

    Thanks for the response.
    The problem is that the mail is perhaps not processed when it is created. For example: the mail is created on 01th of april and sent to the mailbox. But the PI mail sender adapter is fetching the mail on 02nd of april. Due to the reason I can't use current date - I need the original sending date of the mail.
    Thx

  • My macbook pro with OS 10.6.7 'mail' program does not send my mail through the IPS wireless, I am connected to. The message is my 'e-mail is rejected by the server'. It has been working until 5 days ago. The connection doctor says I am connected and no lo

    My macbook pro with OS 10.6.7 'mail' program does not send my mail through the IPS wireless, I am connected to. The message is my 'e-mail is rejected by the server'. It has been working until 5 days ago. The connection doctor says I am connected and no log in required.
    After trying lots I found now in 'Airport Utility is 'unable to detect any airport wireless devises.....'
    There is no provider to be seen in airport utility and only 'rescan' is an option with no results...
    even so I am connected and can browse the net receive mail etc. and the outgoing 'mail server' is set to the internet provider I am connected to.
    Can you enlighten me what can I do I need to use my e-mail program urgently !!!
    Thanks for your help

    I'm not sure what "IPS wireless" is, but unless you have an Apple Wi-Fi base station (such as a Time Capsule, AirPort Extreme, or AirPort Express), AirPort Utility won't see anything.
    You might try defining a new SMTP server to see if that will work any better.
    By the way, the subject field for these messages isn't intended to hold a lot of text.  Put a short description of your problem in the subject field and save the rest of your message for the body field.

  • I have been stung by a WhatsApp scam on my email account and changed my password.  All mail sent is held in the outbox with actually sending. gmail account in Google works  OK. How to restore Mac mail?

    I have a one year old MacBook Pro, using Yosemite OS. In my Mac mail account I use gmail. I have recently been stung by an e- mail scam using WhatsApp. When I changed my password I was able to move on with mail on my phone and laptop. I now find that all the mails I sent yesterday have got stuck in my Outbox and have not actually been sent. i have since opened up my gmail account via Google and have pasted i the messages and successfully sent from there.
    How can I now restore my Mac Mail on the laptop to send my mail?
    I would interested to hear views.

    Hello Nicholas,
    It sounds like you are suddenly unable to send email from the Mail app but can log into your webmail and send the emails without issue. I recommend you use the following article, to help figure out what the issue is, named:
    OS X Mail: Troubleshooting sending and receiving email messages
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • How do I use my iPhone's hot spot to send email with Mail ?

    Hi,
    My land line is dead ... so no phone nor internet at home.  But I can use my iPhone'hot spot to get on the web from my iMac.  Great ... it works !
    Oups !   I cannot send email from my computer using my iPhone's hot spot with Mail.
    How do I do that ?
    Regards.
    Robert Lespérance

    Hi Templeton Peck,
    Thanks for droping in my thread ...
    Doesn't the fact that I can surf the web with my iPhone's hot spot and that I cannot use Mail normally has I normally do give you a clue what the problem could be ?
    What other information can I give you other than normally I can surf and send email with my regular ISP.  Now that my ISP is dead I am using my iPhone's hotspot to surf the web awaiting that my ISP's connoection returns. Surfing is OK but I cannot send emails with through Mail.
    When I want to send an email from my computer, I get a message asking me to select the the SMTP server.  Then I select my usual ISP server, but the message comes back telling me it does not work.
    Is there any other configuration to do ?

  • On my Mac Pro, when I send emails, it always gives me the option of adding an attachment with a paper clip. Today, the paperclip has vanished. What do I do ?

    On my Mac Pro, when I send emails, it always gives me the option of adding an attachment with a paper clip.
    Today, the paperclip has vanished. What do I do ?
    Simon

    http://www.apple.com/support/mail

  • When I access my google e-mail account on the I-pad my inbox has at least 6 e-mails with no sender and no subject (absent via I-phone, Mac or PC) I cannot delete them as they cannot be selected- how do I stop them and clear the ones there now?

    When I access my google e-mail account on the I-pad my inbox has at least 6 e-mails with no sender and no subject (absent via I-phone, Mac or PC) I cannot delete them as they cannot be selected- how do I stop them and clear the ones there now?

    Try turning the account off and on : Settings > Mail, Contacts, Calendars , then tap the account on the right, slide Mail to 'off', exit settings and go back into the Mail app, and then go back to Settings and slide Mail back to 'on'
    If that doesn't work then try closing the Mail app completely : from the home screen (i.e. not with the Mail app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    Also do a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • I have a problem with Mail on my Macbook Pro. It is configurated with a gmail account, and now I can't access the mail. Is it possible to reboot the account or..? Please help:)

    I have a problem with Mail on my Macbook Pro. It is configurated with a gmail account, and now I can't access the mail. Is it possible to reboot the account or..? Please help:)

    The question mark means the computer cannot find a bootable volumes so can;t do anything, That, combined with annoying sounds, strongly suggests a failed hard drive.
    You can ask a "genius" at an Apple Rtail Store to test it but I'm pretty sure the drive is kaput. I'm hoping you had your data backed up.

  • I recently upgraded to Firefox 13.0.1 and I'm operating a Mac Powerbook Pro with OS of 10.6.8 (Snow Leopard). Now I'm having intermittent problems with sending

    I recently upgraded to Firefox 13.0.1 and I’m operating a Mac Powerbook Pro with OS of 10.6.8 (Snow Leopard).
    Now I’m having intermittent problems with sending emails where Firefox freezes up. There is often a yellow warning above suggesting 32-bit mode, sometimes I can click to shift it that way, sometimes not.
    Anyone having these problems?
    Any suggestions?

    I recently upgraded to Firefox 13.0.1 and I’m operating a Mac Powerbook Pro with OS of 10.6.8 (Snow Leopard).
    Now I’m having intermittent problems with sending emails where Firefox freezes up. There is often a yellow warning above suggesting 32-bit mode, sometimes I can click to shift it that way, sometimes not.
    Anyone having these problems?
    Any suggestions?

  • I'm not able to send emails with mail.ru. Receiving and reading is not a problem. When I create a email with mail.ru its not possible to send it although its stored in my mail.ru account as "still to be send". What can it be??

    I'm not able to send emails with mail.ru. Receiving is not a problem. Creating a mail is also not a problem and the mail will be stored at mail.ru as still to be send, only problem is its not possible to send. I noticed the buttons for sending change colour when used but they don't perform. What it is?

    Don't know what changed, but all of a sudden able to send emails by mail.ru ...... sorry for bothering.

  • Anybody had an issues with mail since upgrading to mountain lion? Can't get emails from one account, tried deleting and recreating but to no avail. Set up a new user and it works fine. Macbook pro 13" mid 2010 model.

    Anybody had an issues with mail since upgrading to mountain lion? Can't get emails from one account, tried deleting and recreating but to no avail. Set up a new user and it works fine. Macbook pro 13" mid 2010 model.

    Anybody had an issues with mail since upgrading to mountain lion? Can't get emails from one account, tried deleting and recreating but to no avail. Set up a new user and it works fine. Macbook pro 13" mid 2010 model.

Maybe you are looking for