Sending an email from within a program

Hi,
I am using SO_DOCUMENT_SEND_API1 to send an email from a program. Everything works fine, but the users don't want to see the popup message titled 'SAPconnect Send Process - List of Sent Objects'.
Is there anyway I can supress this message from the program, or is it a setting in SAPconnect?
Thanks
Lindy

If your are calling RSCONN01 after your function module then remove the submit of RSCONN01. This program will run scheduled every 1 to 5 minutes anyway as background job by the basis .

Similar Messages

  • Sending an Email from within an Oracle Package

    Hi,
    I am trying to send an email from within a Oracle package Body. The code i have to do this is as follows: -
    PROCEDURE send_mail(sender_in IN VARCHAR2,
    recipient_in IN VARCHAR2,
    date_from_in IN VARCHAR2,
    date_to_in IN VARCHAR2) IS
    -- Procedure to send e-mail
    mailhost VARCHAR2(30) := '192.168.2.6';
    crlf VARCHAR2(2) := CHR(13)||CHR(10);
    --message VARCHAR2(32767);
    message LONG;
    mail_conn utl_smtp.connection;
    reply VARCHAR2(512);
    BEGIN
    mail_conn := utl_smtp.open_connection(mailhost, 25);
    message := 'Date: '||TO_CHAR(SYSDATE, 'DD-MON-YY HH24:MI:SS')||crlf||
    'From: <'||sender_in||'>'||crlf||
    'Subject: ''Holiday Request'||crlf||
    'To: '||recipient_in||crlf||
    utl_smtp.helo(mail_conn, mailhost);
    utl_smtp.mail(mail_conn, sender_in);
    utl_smtp.rcpt(mail_conn, recipient_in);
    utl_smtp.data(mail_conn, message);
    utl_smtp.quit(mail_conn);
    EXCEPTION
    WHEN others THEN
    RAISE;
    END send_mail;
    end holidays;
    I have one question though. I am getting a ORA-29278 SMTP Transien Error: 421 Service Nota Available Error. I think this may be due to the 'Mailhost' value I have given in the above code. I have been informed that this should be the ip address of the mail server used or the ip address of the machine if it is being run locally. What would i need to put in here if i wish for an email to be sent from one hotmail address to another for example?
    Any help would be much appreciated!
    Thanks!
    Darren

    hi
    The funnier part is that
    u can actually type in the sender's email id irrespective of the mail host used
    Like @hotmail.com,@yahoo.com etc.
    The receiver will get the mails from the email id that u wrote .
    The problem u r facing is becoz of the incorrect mail host server ip address
    Try to get in touch with the network admin for the mail server ip address
    other way is
    get the name it would be like
    smtp.domain name .
    hope that helps

  • Cannot send an email from within contacts on iPhone

    I’m trying to send email from within my contacts list app on my iPhone but the send button will not highlight and therefore cannot be pressed to send the email.   Sending email from the mall app works fine. Anyone know why this is happening?

    That also occurs for me and looks like a bug. The problem seems to be that, although the "To" address appears in the draft email, the iPhone does not think that it is there and won't activate the Send button. If one simply touches the "To" field the address disappears.
    Submit this as a bug at http://www.apple.com/feedback/iphone.html

  • Exporting activity data as a PDF / sending as email from within package

    Hello,
    We are currently developing an E-learning package which involves the learners building up a check list on an "ipad" as they go through the course, which we would like them to then be able to save at the end of the course so they can review it later.
    We've managed to implement a print function, however we really need them to be able to save this data in some way.  Does any one know how we could push this data back to the LMS so it can somehow be downloaded and saved (in a good, branded format) or even better how we could make it into a PDF so it can be saved from with in the SCORM package or even in some way emailed.
    Any help would be much appreciated.
    Sam

    hi
    The funnier part is that
    u can actually type in the sender's email id irrespective of the mail host used
    Like @hotmail.com,@yahoo.com etc.
    The receiver will get the mails from the email id that u wrote .
    The problem u r facing is becoz of the incorrect mail host server ip address
    Try to get in touch with the network admin for the mail server ip address
    other way is
    get the name it would be like
    smtp.domain name .
    hope that helps

  • Sending an email from my database

    Hi!
    I wanna send an email from within a procedure from my database, Im thinking of using the utl_smtp package, I know I need acces from my database server to the smtp server, that can be done... when u use the utl_smtp package u need to specify the smtp host, the email address of the sender, the email address of the receptor, and some other stuff, what I wonder is: Where do u specify the password of the email address of the sender?, I mean, it doesnt make sense that u use an email address to send an email and u dont specify the password of that account
    In all the samples Ive seen all over internet I havent found something that tells me something about it...
    Any Help???

    A lot of smtp servers do not require a username/password when sending mail, only when receiving mail.
    If you need verification, you can do it with utl_smtp:
    utl_smtp.command( conn, 'AUTH LOGIN'); 
    utl_smtp.command( conn, utl_raw.cast_to_varchar2( utl_encode.base64_encode( utl_raw.cast_to_raw( cuser ))) ); 
    utl_smtp.command( conn, utl_raw.cast_to_varchar2( utl_encode.base64_encode( utl_raw.cast_to_raw( cpassword ))) ); 

  • Sending RTF Emails from PLSQL To Outlook

    Hi,
    I am currently attempting to send an email from a plsql program to a Microsoft Outlook program in rtf format as I need the email to be in a particular format. I am using utl_smtp to do this along with rich text format codes. Unfortunately Outlook does not recognise the fact that the resulting email file is in rtf format and displays the item as plain text (i.e. it displays the codes).
    Is there any way that Oracle can force Outlook to accept this format ? I've tried adding application/rtf as the mime type in the connection string but all this does is send the email as a word attachment when really what we need is for the email body to be in rtf format.
    Thanks in advance,
    Paul.

    Hi,
    I think you will find this is not an Oracle problem. Outlook uses the mime type to decide which application to open it with. The associations between types and applications are buried somewhere in the registry. And if it's not the mime type, it's the 3 letter extension that's used (but you didn't say what extension you were giving the attachment).
    If you just open a .rtf file on this computer, the one with Outlook on, by double clicking it, what application does Windoze use to open it? I bet you will find it's Word.
    HTH
    Chris

  • Cannot send email from within iPhoto

    Using OX X 10.7.5 cannot send email from within iPhoto.  I get this error message: "Your email did not go through because the server did not reply."
    If I change the preference to use email, everything goes fine but I lose the formatting feature.

    iPhoto Menu ->
    Preferences ->
    Accounts ->
    Delete and recreate your email settings.
    Alternatively, use Apple's Mail for the job. It has Templates too - and more of them. Check out the Stationery...

  • Send email from within apex 2.1 application

    Hello,
    I like to send email from within apex application. I use oracle 10g xe with apex 2.1
    thx for advice
    Edited by: wucis on Feb 27, 2012 11:49 AM

    That is a very old version indeed. The documentation for sending emails from Apex 2.2 is here:
    http://docs.oracle.com/cd/B31036_01/doc/appdev.22/b28550/advnc.htm#BABJHJJF

  • I am no longer able to send emails from within iPad apps.

    I always used to be able to send files with attachments by email from within iPad apps like Adobe Reader or Pages. Used to work but now it doesn't - and this for all apps all at once. It gets to the point where it has prepared the email, but if you press send, it says "Could not save or send message". It also doesn't matter which email account I use - result always the same. It's a real pain as this was a good way of editing a word file and then emailing it to myself.

    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps from the tray BEFORE doing the reset.

  • Can Sales send Eloqua template emails from within SalesForce?

    Is there an out of the box solution for sales people to send a marketing template email from within SalesForce?
    Can Sales select multiple contacts and send them the Eloqua email from within SalesForce?
    Thanks
    Juan

    Have you tried using a mailto link on the form. We have found that this is accomplishes a lot of what F9 did in SOP. What you don't get is multiple templates, as the template is defined when you create the web link.
    Greg.

  • Cannot send an email from my alias Mobile Me account from the iPhone.

    I have a Mobile Me email account which works perfectly on my Mac and iPhone. I created a an Alias Mobile Me Account on the web.
    I am able to create a new email from the alias account on the Mac.
    The iPhone will not recognize the alias account, I cannot add it or sync the account.
    I cannot send an email from my alias Mobile Me account from the iPhone.

    To all frustrated MobileMe alias owners who want to send email from iPhone - please go to the feedback area of the apple.com and leave messages regarding this issue. I had a lengthy conversation with a tech support guy who agreed that this is a needed fix - he said to initiate a grass roots effort - and that by all of us leaving messages it will eventually get attention and fixed. Why would Apple give us the ability to create alias's, use them on mobileme website, on our mac mail programs, but NOT the iPhone, which is the MOBILE device. Silly. Please protest!! Thanks.

  • 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

  • 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

  • Send iCloud email from alternative smtp server?

    How do I send iCloud email from alternative smtp server? The setting is 'greyed out' on my iPhone so I cannot tell iCloud to use another server.
    The reason is so I can have my outgoing email appear from my own domain email address rather than my me.com address. Mobileme would allow this - and Mail on the Mac does allow it, but the iPhone under iOS 5 seems not to allow it....
    Any ideas?

    I have spent about 4-6 hours working directly with folks from Tim Cooke's office, various support levels, and through them their engineers.
    As much as I tried to convince them their logic is flawed, the engineers for iCloud come back and say this is expected behavior because somehow it helps secure iCloud from being a spam source. The fine and helpful gentleman from Cooke's office now understands how it is a MobileMail.app client issue, having nothing to do with iCloud servers (because we are in fact trying to bypass their servers) still totes the "it's expected behavior" line from the server engineers.
    I have implored him to follow up with the iOS MobileMail app programmers and not the iCloud programmers. I am hopeful he will. Until then you have to choose between having iCloud push and losing your online identity, or losing push email and keeping your preferred address.
    Fun to try: turn off all smtp servers. Send email. Gets stuck in outbox. Turn on your preferred smtp server. That one email will use your preferred alternate address, but subsequent ones revert back to the old .me.com smtp servers. Personally I believe this points to a client programming error more than reinstating a preferred behavior. Aggravating!
    I spend $500 on a new phone. Google takes away my exchange client ability and apple makes me choose push email vs outgoing email address.

  • Can't email from within iPad apps

    On my iPad w/Retina, I am unable to send email from within an application. Within Pages, for example, trying to email a document produced a "Couldn't send or save message" dialog. From within my NYT app, trying to email an article link produces "The operation could not be completed. (MFMailComposeErrorDomainError1.)" IPad's native mail app works fine.
    Any thoughts?

    Just got a reply to the same question in a different post, but it still doesn't tell me how to actually solve the problem, somstill waiting. See if this helps you:
    Douglas Johnson1
    Re: Why can't I send Emails from iPad apps?
    09-Jul-2013 15:29 (in response to Louises)
    I fixed this problem.  In my case I was using the GMail app and I NEVER used Apple's Mail app that came with my iPad.  So I had been checking all my settings for the Gmail app and I was ignoring the settings on Apple's Mail app.  It turns out that even if you never use Apple's Mail app, other apps DO use Apple's Mail app when they send Email from within their repsective applications. 
    So I'm guessing you aren't using Apple's Mail app and you've therefore ignored the settings on that app.  Fix all those settings and you should be fine.

Maybe you are looking for

  • Error in running the Program SDRQCR21

    Hi, For a material,the sales order which are rejected are showning in MD04.When i try to run this program SDRQCR21,it gives me timed out error. Since there are lot of sales order for that material. Please can any one help me in this issue... Thanks S

  • Capturing at 3/4 speed

    Hey everyone i came home last night and logged some footage on the old Imovie and when i was logging the footage it was saying below the sound bar that it was capturing at 3/4 speed! would this mean a reduced frame rate? how do i set it to full speed

  • Link between vbap and vbrk

    hi folks whatt's the link between vbap and vbrk table. gaurav

  • Number of Frames ?!

    Hi all, This forum has been great. But I encountered this problem that I cannot find a solution hint to here. It must be something simple... I did ask this question a couple of times, and got great responses but not quite what I asked. Maybe I wasn't

  • Using between operator

    Hello, I am using Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 I am using between operator in date field,read that the between opertaor takes the inclusive of the second value. But i am not getting that way,its taking exclusive of the la