Hi.....I want to send outbond email from SAP ERP to Gmail useing SBWP Tcode

I want to send outbond email from  SAP ERP to Gmail  useing SBWP transaction , for that i want standered BADI or BAPI or RFC to send an outbond mail.i want to send a email from sbwp t-code in that t-code we have title text box and body text box and receipent  and receipent type,after entering alll those values i want trigger my badi /bapi/rfc and also that mail goes to receipent Gmail indox and also sap user outbox in sbwp t-code
Moderator message: Welcome to SCN!
Moderator message: this is considered "spec dumping", please work yourself first on your requirement.
[Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
[Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
Edited by: Thomas Zloch on Jul 13, 2011 9:25 AM

Check note 455140 - Configuration of e-mail, fax, paging or SMS using SMTP
Markus

Similar Messages

  • I have multiple email accounts in my iPhone. Before the 6.0 update... I could select what account to send from. Now it's a default. Do I have to go change the email default everytime I want to send an email from a different account?

    I have multiple email accounts in my iPhone 4. Before the 6.0 update... I could select what account to send from each time. Now it's a default. Do I have to go change the email default setting everytime I want to send an email from a different account?

    In Mail Preferences/Accounts/each GMail account, set up the SMTP Outgoing Server for each account separately, going into SMTP name/edit/Advanced and specify the Username of each account.  The Outgoing servers must be two different servers, authenticated by the Username and Password of each.
    Otherwise, the GMail SMTP server will change the from address to that of the account where the SMTP server was setup.
    Ernie

  • I want to send an email  from my java application

    i want to send an email from my java application

    Then do so...
    You'll probably want to use the JavaMail API (http://java.sun.com/products/javamail) to do that.

  • Sending external email from SAP with following requirements...

    Hi All,
           I need to send external emails from SAP by meeting following requirements.
    1) With subject line more than 100 characters.
    2) No attachments, only body which has specific format (blueprint/layout) and would be amended often, hence code shouldn't be touched during amendments.
    3) Should be able to know the success/failure of mail sending at program level.

    Hi,
    The code below demonstrates how to send an email to an external email address
    *& Report  ZSENDEMAIL                                                  *
    *& Example of sending external email via SAPCONNECT                    *
    REPORT  zsendemail                    .
    PARAMETERS: psubject(40) type c default  'Hello',
                p_email(40)   type c default '[email protected]' .
    data:   it_packing_list like sopcklsti1 occurs 0 with header line,
            it_contents like solisti1 occurs 0 with header line,
            it_receivers like somlreci1 occurs 0 with header line,
            it_attachment like solisti1 occurs 0 with header line,
            gd_cnt type i,
            gd_sent_all(1) type c,
            gd_doc_data like sodocchgi1,
            gd_error type sy-subrc.
    data:   it_message type standard table of SOLISTI1 initial size 0
                    with header line.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    Perform populate_message_table.
    *Send email message, although is not sent from SAP until mail send
    *program has been executed(rsconn01)
    PERFORM send_email_message.
    *Instructs mail send program for SAPCONNECT to send email(rsconn01)
    perform initiate_mail_execute_program.
    *&      Form  POPULATE_MESSAGE_TABLE
          Adds text to email text table
    form populate_message_table.
      Append 'Email line 1' to it_message.
      Append 'Email line 2' to it_message.
      Append 'Email line 3' to it_message.
      Append 'Email line 4' to it_message.
    endform.                    " POPULATE_MESSAGE_TABLE
    *&      Form  SEND_EMAIL_MESSAGE
          Send email message
    form send_email_message.
    Fill the document data.
      gd_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      gd_doc_data-obj_langu = sy-langu.
      gd_doc_data-obj_name  = 'SAPRPT'.
      gd_doc_data-obj_descr = psubject.
      gd_doc_data-sensitivty = 'F'.
    Describe the body of the message
      clear it_packing_list.
      refresh it_packing_list.
      it_packing_list-transf_bin = space.
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 0.
      it_packing_list-body_start = 1.
      describe table it_message lines it_packing_list-body_num.
      it_packing_list-doc_type = 'RAW'.
      append it_packing_list.
    Add the recipients email address
      clear it_receivers.
      refresh it_receivers.
      it_receivers-receiver = p_email.
      it_receivers-rec_type = 'U'.
      it_receivers-com_type = 'INT'.
      it_receivers-notif_del = 'X'.
      it_receivers-notif_ndel = 'X'.
      append it_receivers.
    Call the FM to post the message to SAPMAIL
      call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           exporting
                document_data              = gd_doc_data
                put_in_outbox              = '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.
    Store function module return code
      gd_error = sy-subrc.
    Get it_receivers return code
      loop at it_receivers.
      endloop.
    endform.                    " SEND_EMAIL_MESSAGE
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
          Instructs mail send program for SAPCONNECT to send email.
    form initiate_mail_execute_program.
      wait up to 2 seconds.
      if gd_error eq 0.
          submit rsconn01 with mode = 'INT'
                        with output = 'X'
                        and return.
      endif.
    endform.                    " INITIATE_MAIL_EXECUTE_PROGRAM
    Hope this helps.
    Reward if helpful.
    Regards,
    Sipra

  • Limit send of IDoc from SAP-ERP to SAP-XI or a Non-SAP

    Hi guys,
    I send the following IDocs from SAP-ERP over SAP-XI to Non-SAP for an initialload: Artmas, Bommat, Infrec, Cond_a, Mmaddi, Cremas
    Example: Artmas with TA: BD10.
    Problem: SAP-ERP send all 25'000 IDoc to SAP-XI. The effect is that the qRFC and tRFC in SAP-XI is full, because the Non-SAP is not fast enough to takeover the Idocs. From then other systems can't send out or get in Idocs.
    I tried to limit in WE20, but it didnt work. TA: RSEOUT00 ist not so useful, because of the quantity of the IDocs.
    Is in SAP-ERP a possibility to limit the sending of IDocs to SAP-XI or Non-SAP?
    Example: Automatic sending of 200 Idocs every 2 Minute.
    Thanks

    may be u can write a wrapper above BD10 this way
    report zaRs message-id b1.
    select-options: matsel for marav-matnr matchcode object mat1.
    parameters: receiver like tbdlst-logsys no-display.
    start-of-selection.
      select * from mara into i_mara where matnr in matsel.
      refresh : matsel.  
      v_no = 0.
      loop at i_mara.
        move i_mara-matnr to matsel-low
    * fill up sign option etc.
        append matsel
      do.
       move mara
       if v_no = 200.
        submit rbdsemat  " Program behind BD10
              with logsys eq receiver
              with matsel in matsel
              with mestypat eq 'ARTMAS'
              and return.
              wait 20 seconds
        exit.
        clear v_no.
       endif.
      enddo.  

  • Cannot send external emails from SAP

    Hi,
    I am trying to set up emails to external systems, but for some reason it is not working. I have checked the port number for the SMTP server with the administrator and it is the default one, the SMTP server name, and also in SCOT the INT portion has a * in it.
    I am able to send emails to internal domain (our work email domain) but when sending it to external domains, it keeps coming back with the error message " recipient unknown".
    I have some doubts but am not sure if these should / could be the problem.
    1. Is there a job that need to run periodically for sending emails.
    2. Should there be a * in SCOT in the INT part ? or should it be @.com or something else.
    3. Is there anything else that I am missing?
    Platform : ECC 6.0
    Thanks,
    Kunal

    Hi Adam,
    Thanks for your reply. Here is what I have set up for the instructions you provided me.
    1. I<b>n SCOT, menu 'Settings' --> 'Default Domain'</b> I have my work domain set up.
    Assume that I work for ebay.It is set up as ebay.com. I am able to send emails to [email protected] want to be able to send emails to other domains.
    Question : Should I be setting up the name of the domain that I want to send emails to ? I dont think that this is feasible. But still I might be wrong.
    2. <b>Your SMTP server should have added this SAP server into its auth list.</b>
    Yes. I have checked on this with my SMTP administrator. The ip of that SAP server is in the authorization list.
    3.<b>A periodic job ( 2 minutes? 5 minutes? etc) should be defined for sending Emails automatically</b>
    I have the following jobs running when I go to jobs in SCOT
    MAILSERVERSEND     INT     5min     14:46:52
    SAPCONNECT INT SEND 1     INT     10min     14:55:00
    Is there any other job that needs to be running for this?
    4.<b>A '*' should be defined in 'SCOT' -->'INT' --> 'Internet' --> 'Address areas'</b>
    Yes, There is.
    Thanks,
    Kunal

  • Sending the Email from SAP B One through SDK

    hello guys,
    i have an issue that,
    i have desinged the RFQ Screen through SDK, when i entered the data into the controls,when the user clicks on the Email button,
    the system has to send the email to the Specified  person in the screen.
    so please me  regarding this issue.
    thanks in advance.
    thanks & regards
    shiva shanker.
    [email protected]

    Couldnt you use the DI API Message service ?

  • Auto Send an Email from SAP BPC 10.0

    Hi Experts,
    My requirement is : There is an EPM report for which i have to take a snapshot and save those snaps of all sheets in a PPT file.
    I am able to create a file with the help of Macro(VB) and got it saved on desktop.
    But I want that to save on Server and would like to have a feature of mailing file from that server to an email id.
    Is this scenario achievable in BPC.
    I have tried creating process chain for Email but didn't get any breakthrough.Is it possible from Web Admin( BPF ) ? Which I don't think so.

    Sumit,
    Would a pdf file be sufficient? If yes, the distribution feature can e-mail pdf files. The distribution function can also be scheduled.
    Akos

  • Send email from SAP to External User ..........

    hiii
    <b>Is it possible to send mail from SAP to External user??????if possible does BASIS people had to do something???</b>
    I want to send the email from sap to external user([email protected]).My mail will consist of some changes made in production order(CO03). for which i had created the BADI. That part is over now i want to send the mail.
    <b>I got many sample programs in sdn but when i enter the email address it execute but mail is not sent.....I want to know by just executing Zprogram mail will be sent or there is some role for BASIS also..............</b>
    Thanking you.
    Regards.

    There is a transaction called SCOT that needs to be configured
    http://www.sap-basis-abap.com/sapbs035.htm
    http://www.sap-img.com/basis/basis-faq.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2b/d925bf4b8a11d1894c0000e8323c4f/frameset.htm

  • When I type in the email address I want to send an email to, mail suggests email addresses i never use

    I am using Apple's Mail application on my MacBook Pro for 3 emails. One personal, one for my work place and one for my university email address. From the university I receive lots of emails which isn't sent only for me, but every student on my course, so I am not the only receiver.
    When I am sending an email, from any of my email addresses and I type in whom I want to send it to, it shows a bunch of email addresses that I have never sent an email to. They are all university email addresses and I want to get rid of them, but they are not in my address book and I have no clue how to delete them / where to find them.
    For example: I wanted to send an email from my work place email to James Fox. He's email is [email protected] (just an example). When I start to type in James.f,   about 100 email addresses pop up, but none of them is the one I need and I will never need those and I CANT GET RID OF THEM.
    Please help me, how to get rid of all these unwan

    How is the university account added to your system? (You should be able to find it in either System Preferences - Internet Accounts, or Mail - Preferences). Is it an Exchange account, perhaps? I wonder if you're seeing a centralized contact group that can't be controlled from your computer (but you may be able to turn it off completely).
    Matt

  • How to send only email from workflow

    Hi Guys,
    I want to send an email from a workflow without sending a notification ... how do i do it ?
    Thanks In advance
    Tom.

    Hi,
    Two possible ways - neither of which I would recommend.
    1 - Write a trigger on the WF_NOTIFICATIONS table, so that if the notification for the process that you require is sent, then you populate the mailer status column to 'spoof' the mailer into thinking that it has already sent it. That should suppress the email.
    2 - Modify the flow to include an activity prior to the notification to change the recipient preferences to not receive email, send the notification, then change the preferences back.
    Email is an "all or nothing" solution - either get email from everything, or get it from nothing. How are they planning on dealing with the notification that they are sent? If they are logging into the application to view the notification, then you could consider sending summary notification emails, and force the users to log into the application to view them all, rather than trying to adopt a half-and-half solution where some things come by email and some only come in the application.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://thoughts.workflowfaq.com ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • How to send an email from a VI

    Hello..
         I want to know how to send an email from VI. I am using Labview 8.6 . I tried some examples also. But when I run those VIs, I getting errror. It is smtp server error. I dont have any idea about how to change smtp server settings. Can any body tell step by step procedure to accomplish this task.. 
    Further, I need send an attachment with this email... 
    Please help me
    Thanks
    Prashanth
    Solved!
    Go to Solution.

    Hello harold..
               thanks for sending VI. I tried it, but I am getting following error
    Error 1172 occurred at Error calling method System.Net.Mail.SmtpClient.Send of ObjectId handle: 0xCD21184 for obj 0x212E63[System.Net.Mail.SmtpClient] in domain [LabVIEW Domain for Run] and thread 280, (System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
        Inner Exception: System.Net.Mail.SmtpException: Failure sending mail.
        Inner Exception: System.Net.WebException: Unable to connect to the remote server
        Inner Exception: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it
    ) in GmailLV86.vi
    How can I solve this problem..
    Please let me know.
    Thanks
    Prashanth

  • Beginner help to send an email from PHP

    I hope this isn't too easy to answer - I think I must be doing something fairly simple wrong.
    I want to send an email from a PHP page, using SOAP so the mail appears in the sender's sent items, as if it was done in the usual way.
    We're using Groupwise 8.02
    Using the example code in phpClient/phpClient.php I have got a list of folders/emails in my mailbox, so the authentication and access to Groupwise is obviously working. However, in that file there isn't a send mail example, so I copied the one from phpSOAP/client.php and it doesn't work.....the error seems to be 59920 which might be something to do with the session missing, but I find this hard to believe since the folders can be retrieved with the same object.
    Here is the code for mail sending I'm using:
    $mail = new Mail();
    $mail->subject = "php item";
    $dist = new Distribution();
    $from = new From();
    $from->displayName = "Paul Green";
    $from->email = "[email protected]";
    $dist->from = "[email protected]";;
    $dist->to = "Paul Green";
    $rlist = new RecipientList();
    $recip1 = new Recipient();
    $recip1->displayName = "Peter";
    $recip1->email = "[email protected]";
    $recip2 = new Recipient();
    $recip2->displayName = "Andy";
    $recip2->email = "[email protected]";
    $rlist->recipient = array ($recip1, $recip2);
    $dist->recipients = $rlist;
    $mail->distribution = $dist;
    $mp = new MessagePart();
    $mp->_ = "This is a test!";
    $mb = new MessageBody();
    $mb->part = $mp;
    $mail->message = $mb;
    $sir = new sendItemRequest();
    $sir->item = $mail;
    $sires = $gwservice->sendItemRequest($sir);
    Looking around, it seems to me that some of the objects haven't got the properties that the above code expects (eg the from object), so is the schema wrong somewhere?
    What I would like, but couldn't find, is some simple example code that works!
    Does anyone know the simplest way to send an email via SOAP?
    Many thanks in advance for any help anyone can give.
    Paul Green
    Barton Peveril College
    Eastleigh
    Hampshire
    UK

    The phpClient code was a proof of concept.
    I only hand fixed a few of the requests.
    If you use that code, you will need to go into each
    request you want to use and put in code to put in the
    session string. You need to do that in GroupWiseService.php.
    You may need to modify the individual files, ie Filter.php.
    The phpSOAP code works better / easier. You shouldn't have
    to modify that code. (You should be able to just use it.)
    That said, I only did a spot check. The code is as is. There
    is no support for it.
    Preston
    >>> On Friday, June 29, 2012 at 9:56 AM,
    PaulGreen77<[email protected]> wrote:
    > Thanks for the suggestions. I tried the phpClient code you suggested,
    > but it didn't work at all. I don't quite understand what you say about
    > setting the session header string; I think my code does this already.
    >
    > Early on in the code, after logging in, I have the following line
    > $gwservice‑>session = $lres['session'];
    > Doesn't this set the session as part of the Groupwise service?
    >
    > You said I need to manually set the session header string, but which
    > objects do i need to do it in? And can I do it as a parameter call, or
    > does it need to be done in GroupwiseService.php?
    >
    > I hope this doesn't make me sound too silly, but I am a bit of a novice
    > with OO programming!
    >
    > Another point: at various places in the code,
    > http://schemas.novell.com/2005/01/Gr...groupwise.wsdl is referred
    > to, but when I type this into a web browser, it says it can't be found?
    > Does this matter?
    >
    > I hope you can help me a bit further!
    >
    > Thanks.
    >
    > Paul
    >
    > Preston Stephenson;2203363 Wrote:
    >> If you can use php 3.x, use the phpSOAP example instead.
    >> ftp://sdk.provo.novell.com/ndk/gwsoa...rm/phpSOAP.ZIP
    >>
    >> It will handle setting the session string header automatically.
    >> If you use the phpClient example, you will have to go in to
    >> GroupwiseService.php
    >> and manually set the session header string in each request you want to
    >> use.
    >> See getFolderListRequest().
    >>
    >> Preston
    >>
    >> >>> On Friday, June 22, 2012 at 9:56 AM,
    >> PaulGreen77<PaulGreen77@no‑mx.forums.novell.com> wrote:
    >>
    >> > I hope this isn't too easy to answer ‑ I think I must be doing
    >> something
    >> > fairly simple wrong.
    >> > I want to send an email from a PHP page, using SOAP so the mail
    >> appears
    >> > in the sender's sent items, as if it was done in the usual way.
    >> > We're using Groupwise 8.02
    >> >
    >> > Using the example code in phpClient/phpClient.php I have got a list
    >> of
    >> > folders/emails in my mailbox, so the authentication and access to
    >> > Groupwise is obviously working. However, in that file there isn't a
    >> send
    >> > mail example, so I copied the one from phpSOAP/client.php and it
    >> doesn't
    >> > work.....the error seems to be 59920 which might be something to do
    >> with
    >> > the session missing, but I find this hard to believe since the
    >> folders
    >> > can be retrieved with the same object.
    >> >
    >> > Here is the code for mail sending I'm using:
    >> >
    >> > $mail = new Mail();
    >> > $mail‑>subject = "php item";
    >> > $dist = new Distribution();
    >> > $from = new From();
    >> > $from‑>displayName = "Paul Green";
    >> > $from‑>email = "[email protected]";
    >> > $dist‑>from = "[email protected]";;
    >> > $dist‑>to = "Paul Green";
    >> > $rlist = new RecipientList();
    >> > $recip1 = new Recipient();
    >> > $recip1‑>displayName = "Peter";
    >> > $recip1‑>email = "[email protected]";
    >> > $recip2 = new Recipient();
    >> > $recip2‑>displayName = "Andy";
    >> > $recip2‑>email = "[email protected]";
    >> > $rlist‑>recipient = array ($recip1, $recip2);
    >> > $dist‑>recipients = $rlist;
    >> > $mail‑>distribution = $dist;
    >> > $mp = new MessagePart();
    >> > $mp‑>_ = "This is a test!";
    >> > $mb = new MessageBody();
    >> > $mb‑>part = $mp;
    >> > $mail‑>message = $mb;
    >> > $sir = new sendItemRequest();
    >> > $sir‑>item = $mail;
    >> > $sires = $gwservice‑>sendItemRequest($sir);
    >> >
    >> > Looking around, it seems to me that some of the objects haven't got
    >> the
    >> > properties that the above code expects (eg the from object), so is
    >> the
    >> > schema wrong somewhere?
    >> > What I would like, but couldn't find, is some simple example code
    >> that
    >> > works!
    >> > Does anyone know the simplest way to send an email via SOAP?
    >> >
    >> > Many thanks in advance for any help anyone can give.
    >> >
    >> > Paul Green
    >> > Barton Peveril College
    >> > Eastleigh
    >> > Hampshire
    >> > UK

  • Deleting email from SAP inbox

    Hai All,
    I want to delete a  email from SAP inbox, without  logging into SAP with that person's userid.   Please let me know how to do it.
    Regards,
    H.K.Hayath Basha.

    Hi Hayath Basha ,
      You can do if you have a Workflow Administrator role and have access to Tcode : SWI5 (WorkLoad Analysis).
    Following is the procedure :
    1. Go to SWI5
    2. Provide the required parameters ;
       Resposibility :
         Type  US
         ID    User ID of whom you want to delete the WI.   
       Period :
          Choose To be processed by
    3. Execute the Report..
       Now you will see all the workitems in his inbox.
    4. Select the workitem you want to delete from the list.
    5. Double click on the workitem selected.
    6. select the menu  Goto -> Technical work item display
           You will be taken to Display workitem screen
    7. In Display workitem Screen  select the menu
           Edit -> Change
       Now you will be give a option to Delete Logically.
    8. Click on Delete Logically button to actually delete the mail from the SAP inbox.
    Let me know if this works.
    Thank you
    Srinivas

  • Send binary files from SAP System to SAP XI/PI

    Dear experts,
    in our SAP ERP-System we have a link to JPG files which are stored in an archive. We want to send these files with some other information to our SAP XI and then store them on a file server. Is there a way to send a MIME attachment via RFC? Or is there another way to send binary files from SAP ERP to SAP XI? We want to avoid polling the files on OS level.
    Thanks and regards,
    David

    Most recommended way is to go for ABAP proxies. They support attachments.
    Regards,
    Prateek

Maybe you are looking for