Mail to Lotus notes when a program is executed

Hi,
   Whenever i execute a report, i want a message to be sent to lotus notes id. I have a function module SO_OBJECT_SEND, if this is the function module that i need to use, can i know the values that need to be passed.
Kindly provide code if anyone is having.
Thanks,
Naveen

Sample code
" The following code is used to send automatic email.
data : gt_receivers like soos1 occurs 0 with header line,
         gt_obj_cont   like soli occurs 0 with header line,
         gs_object_hd_change like sood1.
  gt_obj_cont-line            = 'email body'. "Email body
  append gt_obj_cont.
    gt_receivers-recextnam = '@' . "mention the full email adress here of lotus notes
    gt_receivers-recesc = 'E'.
    gt_receivers-sndart = 'INT'.
    gt_receivers-sndpri = 1.
    gt_receivers-mailstatus = 'E'.
    gt_receivers-rcdat = sy-datum.
    gt_receivers-rctim = sy-uzeit .
    gt_receivers-deliver = 'X'.
    gt_receivers-mailstatus = 'X'.
    gt_receivers-not_deli = 'X'.
    append gt_receivers.
  gs_object_hd_change-objla  = sy-langu.
  gs_object_hd_change-objnam = 'Immediate mail'.SPAN
call function 'SO_OBJECT_SEND'
    exporting
      object_hd_change           = gs_object_hd_change 
      object_type                = 'RAW'
      outbox_flag                = 'X'
    tables
      objcont                    = gt_obj_cont
      receivers                  = gt_receivers
    exceptions
      active_user_not_exist      = 1
      communication_failure      = 2
      component_not_available    = 3
      folder_not_exist           = 4
      folder_no_authorization    = 5
      forwarder_not_exist        = 6
      note_not_exist             = 7
      object_not_exist           = 8
      object_not_sent            = 9
      object_no_authorization    = 10
      object_type_not_exist      = 11
      operation_no_authorization = 12
      owner_not_exist            = 13
      parameter_error            = 14
      substitute_not_active      = 15
      substitute_not_defined     = 16
      system_failure             = 17
      too_much_receivers         = 18
      user_not_exist             = 19
      originator_not_exist       = 20
      x_error                    = 21
      others                     = 22.
  commit work.

Similar Messages

  • Out of office message when sending mail to Lotus Notes from SAP

    Hi,
    Is it possible to have an 'out of office' message when sending mail to Lotus Notes from SAP?
    I'm sending account statements by mail via a modified version of function FI_OPT_ARCHIVE_CORRESPONDENCE. The SAP username is send as a parameter, and later converted to the e-mail saved in the user profile. This works, - but I would like to have an out of office reply if the user I send to is out of office.
    Hope someone can help...
    Regards,
    Lene

    As Thomas pointed out, you can use regular SMTP mail to send the contents to Lotus Notes. You can use the function module SO_OBJECT_SEND or any of the SAP Office function modules to do this.
    Only thing to remember is that the SMTP may have been disabled by your basis team due to security risks involved. An alternative could be a lotus notes connector available from IBM.
    Srinivas

  • HOWTO: send a mail through Lotus notes by Java Code

    Dear All,
    I have requirement with me, where i have to write a java code which will send a mail from lotus notes .
    Could you please provide me sample source code and different options for implementing this .

    Generally, whatever program you use to read mail, it will ultimately be sent by a "Mail Transfer Agent" which understand SMTP. I've got Lotus Notes here as my mail reader, but when my programs send mail they use java mail, and send the mail as SMTP using the appropriate mail server (sometimes called the "smart host"). It the mail is for my mailbox the MTA then forwards it to the Lotus Notes mail store.

  • Send mail via Lotus Notes R5

    Does anyone have any examples of sending e-mail through Lotus Notes via forms 6i?
    I have searched the forum and there seems to be very few items on Lotus Notes.
    Thanks in advance.
    Lakmal

    Fainaly I found the way.. here is the coding
    PROCEDURE send_email(p_recipient_in IN VARCHAR2,
    p_copy_to_in IN VARCHAR2,
    p_blind_copy_to_in IN VARCHAR2,
    p_subject_in IN VARCHAR2,
    p_text_in IN VARCHAR2,
    p_return_receipt_in IN VARCHAR2,
    p_no_of_attachments IN NUMBER DEFAULT 0,
    p_mood_stamp_in IN VARCHAR2,
    p_view_icon_in IN NUMBER) IS
    -- Local Variable Declaration
    lv_args ole2.list_type;
    lv_db ole2.obj_type;
    lv_doc ole2.obj_type;
    lv_return_receipt VARCHAR2(1);
    lv_session ole2.obj_type;
    lv_attach1 ole2.obj_type;
    lv_attach2 ole2.obj_type;
    lv_mailserver VARCHAR2(200) := 'ew-cmb';
    lv_sqlerrm VARCHAR2(255);
    BEGIN
         lv_session := ole2.Create_Obj('Notes.NotesSession');
         lv_args := ole2.Create_Arglist;
         ole2.Add_Arg(lv_args, lv_mailserver); -- Mail Server
         ole2.Add_Arg(lv_args, 'names.nsf'); -- Mail File
         ole2.Add_Arg(lv_args, 'mail\Lakmal_M.nsf'); Mail File
         lv_db := ole2.Invoke_Obj(lv_session, 'GetDatabase', lv_args);
         ole2.Destroy_Arglist(lv_args);
         lv_doc := ole2.Invoke_Obj(lv_db, 'CreateDocument',lv_args);
         ole2.Set_Property(lv_doc, 'SendTo', p_recipient_in);
    If (p_copy_to_in IS NOT NULL) then
         ole2.Set_Property(lv_doc, 'CopyTo', p_copy_to_in);
    End If;
    If (p_blind_copy_to_in IS NOT NULL) then
         ole2.Set_Property(lv_doc, 'BlindCopyTo', p_blind_copy_to_in);
    End If;
    -- Guidelines for mood stamp as to what argument values should be passed
    -- ''- Normal
    -- P - Personal
    -- C - Confidential
    -- R - Private
    -- F - Flame
    -- Q - Question
    -- G - Good Job!
    -- M - Reminder
    -- J - Joke
    -- T - Thank You!
    If (p_mood_stamp_in IS NOT NULL) then
         ole2.Set_Property(lv_doc, 'SenderTag', p_mood_stamp_in);
    End If;
    If (p_subject_in IS NOT NULL) then
         ole2.Set_Property(lv_doc, 'Subject', p_subject_in);
    End If;
    If (p_text_in IS NOT NULL) then
         ole2.Set_Property(lv_doc, 'Body', p_text_in);
    End IF;
    --To embed attachments add the following lines to code immediately after
    -- setting the 'Body' property :
    If (nvl(p_no_of_attachments,0) = 0) then -- No attachments
         null;
    Else
         lv_args := ole2.Create_Arglist;
         ole2.Add_Arg(lv_args, 'Attachments');
         lv_attach1 := ole2.Invoke_Obj(lv_doc, 'CreateRichTextItem', lv_args);
         ole2.Destroy_Arglist(lv_args);
         lv_args := ole2.Create_Arglist;
         ole2.Add_Arg(lv_args, 1454);
         ole2.Add_Arg(lv_args, '');
         Ole2.Add_Arg(lv_args, 'C:\Install.log');
         lv_attach2 := ole2.Invoke_Obj(lv_attach1,'EMBEDOBJECT', lv_args);
    End If;
    -- 1-Return Receipt
    -- 0-No Return Receipt
    lv_return_receipt := TRANSLATE(NVL(UPPER(p_return_receipt_in), 'N'), ' NY', '001');
    ole2.Set_Property(lv_doc, 'ReturnReceipt', lv_return_receipt);
    If (lv_return_receipt = '1') then
         ole2.Set_Property(lv_doc, 'DeliveryReport', 'B');
    End If;
    -- The following values can be used to set the icon that appears to the left
    -- of the senders name.
    -- 0 - none
    -- 10 - finger with ribbon
    -- 23 - newspaper
    -- 74 - flame
    -- 83 - thumbs up
    -- 85 - happy face
    -- 133 - envelope
    -- 159 - star
    -- 162 - question mark
    -- 163 - investigator
    -- 166 - glasses
    -- 169 - red circle
    -- 170 - gold circle
    If (p_view_icon_in IS NOT NULL) then
         ole2.Set_Property(lv_doc, '_ViewIcon', p_view_icon_in);
    End If;
    ole2.Destroy_Arglist(lv_args);
    lv_args := ole2.Create_Arglist;
    ole2.Add_Arg(lv_args, 0);
    ole2.Invoke(lv_doc, 'Send', lv_args);
    ole2.Destroy_Arglist(lv_args);
    ole2.Release_Obj(lv_session);
    ole2.Release_Obj(lv_db);
    ole2.Release_Obj(lv_doc);
    EXCEPTION
         WHEN OTHERS THEN
         lv_sqlerrm := substr(sqlerrm,1,255);
         Message('Unable to send mail to ' || p_recipient_in);
         Message('Unable to send mail to ' || p_recipient_in);
         Message('Error is : '||lv_sqlerrm);
         Message('Error is : '||lv_sqlerrm);
         Set_Application_Property(CURSOR_STYLE, 'DEFAULT');
         RAISE;
    END;

  • Sending mail to LOTUS NOTES inbox.

    Hi all,
    I am working on WORKFLOWS and i need to send a mail to lotus notes inbox. I have got the function module to send the mail.I Created a method for sending the mail. But Where and how to impletement this method in the work flow.
    Please through some light on this.
    Regards,
    Gautham

    As Thomas pointed out, you can use regular SMTP mail to send the contents to Lotus Notes. You can use the function module SO_OBJECT_SEND or any of the SAP Office function modules to do this.
    Only thing to remember is that the SMTP may have been disabled by your basis team due to security risks involved. An alternative could be a lotus notes connector available from IBM.
    Srinivas

  • Mail to lotus notes using java

    mail to lotus notes using java
    -sun_jothi

    And as others have said--it doesn't matterwhether
    the recipient uses Lotus notes or Outlook or elmor
    pine or a webmail client to read his mail. Youdon't
    care what client you're mailing to.Of course jverd uses posh MUAs like elm and pine
    'cause he's so arrogant.
    Real programmers on the other hand, use mail.
    ;)I don't read email. There's nobody on this planet
    that has anything interesting enough to say to make
    it worth my time.<Marvin>
    Here I am, brain the size of a planet...
    </Marvin>

  • Can JavaMail send mail to Lotus Notes?

    Can JavaMail send e-mail to Lotus Notes?
    If I can't, is there any alternative method?
    I need it for my J2EE project.
    Thanks!!
    Dan. :)

    Cann you explain how?
    Can you put an example?
    Thanks in advance.

  • How to send a mail to Lotus Notes R5 from Report Builder 3.0.5.8.0 ?

    Dear sir,
    I try to send a mail via Report Builder, and I got the following error message:
    REP-4201:Error occured while initialzing the mail subsystem.
    REP-4202:There is the problem with
    the mail System.
    We use the Lotus Notes R5 mail, not Microsoft Outlook or exchange. Could the Report Builder support it?
    Thanks.
    Lisa

    Hi!
    1. Make sure no one else has opened the same file.
    2. Dont put image on your report.
    later
    Mircea Paciu (guest) wrote:
    : In Report builder 3.0.5.8.0 I can't open some of my *.rdf
    files.
    : When trying to open no error message is generated and the "open
    : dialog" reappears.
    : Some other files can be normally open.
    : Does anyone know how to solve this?
    null

  • SAPCONNECT Send mail to Lotus Notes

    Hi,
    I would like to know if is possible send mails from SAP to Lotus Notes.
    When I send a mail to other destination by SMTP Node, the process works successfully.
    But if the destination is a Lotus Notes address this process fails.
    Could you help me with this issue?
    Thank you very much in advance.
    Best regards.
    Emilio Dorado.

    Hi Alfredo,
    Yes its posible, please install Lotus Notes Domino MTA.
    And configure the notes.ini
    $SapDestination=MAIL_GATEWAY_CRMXXX
    $SapClient=XXX
    $SapUsername=MAIL
    $SapLanguage=E
    $ObjServerSearchChars="_"
    $ObjServerReplaceChars=" "
    $ObjClientSearchChars="@ "
    $ObjClientReplaceChars="&_"
    $ObjServerDontAttachBody=0
    $ObjServerAddressIsInternet=1
    $ObjServerMinConfirmation=6
    $ObjServerChangeRAWtoTXT=1
    Regards,
    Fendi Suyanto

  • I use web mail from lotus notes and need Firefox to connect with my MacBook Pro. Since updating to version four I no longer have the ability to see or open attachements. What I am doing wrong?

    I updated my MacBook Pro with version 4 yesterday. I access my company's lotus notes with this browser. I can access the web site, but cannot open attachments. The message I received is that I have removed the attachment. I haven't. The text that states the name of the attachment is there. I can click on it but it won't open and there is nothing in the attachment box in Web Mail.

    Try the "light mode". Surprise :)

  • Using Java Mail with lotus notes

    we are using lotus notes as default mail client and lotus notes server , there is no pop3 or smtp server as far as the intranet mailing goes,
    i am developing an application in which i have a form which the users will fill in if they forget their logging in passwords, as soon as they submit the form they will get an autogenerated email which will send them their passwords. considering the above scenario can i use java mail api for this

    No. If you aren't running the pop3 or smtp services then the Java mail API won't help you at all, unless there is a SMTP server somewhere that you can use to deliver mail to your Notes server. If you use Notes for external emails there must be a server somewhere!!??
    You can use the Notes Java API to create and send a document if you have the DIIOP service running on the Notes server.
    SH

  • Send mails via Lotus Notes using VFP

    Hi all,
    I have an VFP application which is allowing send emails from Lotus Notes. Currently it sends mails from the default account in Lotus notes. But now there is a requirement as follows.
    An email address can be defined from our application. Say
    [email protected] Lotus notes has been configured with two mail accounts such as
    [email protected] and [email protected] and the default email is
    [email protected] Now we have to send emails from our application with
    [email protected] email address. Not the default email address.
    To do this we have to read all email accounts configured in Lotus Notes using VFP. And look for the email address
    [email protected] and mail should be sent with that account. Can anybody guide me how to do this using VFP? Thanks.
    Best Regards,

    This is actually a Notes question. You need to find out whether the Notes automation server provides what you need and how to do it.
    Tamar

  • Mail Through Lotus Notes using D2k

    Hi
    I want to use OLE2 for mailing utility through application. for the validation purpose i want to trace password for current session of Lotus notes, Is it possible to get password of lotus notes since it is third party software.
    Thanks in advance
    Vishal

    How do you get the lotus notes password for any other appln other than forms
    For eg if you want to take the notes password for a java appln how do you do that?

  • Cannot send outgoing mail via Lotus Notes

    Just installed Lotus Notes 6.5 on my PC (Win XP Pro SP3).  Have no problems receiving email ... just cannot send.  I keep getting same error msg:
    "SMTP Protocol returned a permanent error.  Failed with outgoing.verizon.net"
    Does anyone have a solution?
    Solved!
    Go to Solution.

    Make sure that you have the outgoing server, outgoing.verizon.net as an authenticated server.  You will need your Verizon Online username and password.  The Verizon Online username/password is set up differently than FiOS - I didn't get one of these accounts until I called and requested one.
    http://www22.verizon.com/ResidentialHelp/FiOSInternet/Email/Troubleshooting/QuestionsOne/85681.htm

  • When trying to send mail via Lotus Notes webmail, mail does not get send

    Firefox 4.01, XUL-manager installed.
    Logged in to corporate webmail, can see mails etc. I can create a mail (new, reply, etc.) but when I hit the send button, I get a popup asking if a copy needs to be archived. no matter if I say yes or no, the mail does not get send. Also saving as draft does not work.

    Hi,
    yes smtp is a standard and I think you could use this with almost every smtp server.
    If your smtp server doesn't require authentication you can access it without an authenticator
    I think...
    Best regards,
    Jens

Maybe you are looking for

  • Error in Report Using XMLP without report builder

    Hi, Recently I came to know about the building the report using the XMLPublisher instead of Report Builder. So i tried it But ended with error Please help me where I went wrong. I have Created the Concurrent program with the Executable Type as 'XDODT

  • XML parsing problems with Oracle XML parser for PL/SQL

    I am using the Oracle XML parser for PL/SQL to transform XML into HTML usign XSL. The parser gives me sporadic errors trying to parse various XML documents. For the same XML source, the XMLPARSER will parse without errors one day and the next day wil

  • How to add image in jtable header using 'Default table model'

    Hi, I created a table using "DefaultTableModel". im able to add images in table cells but not in 'table header'. i added inages in table by overriding "getColumnClass" of the DefaultTableModel. But what to do for headers? please help. Thanks in advan

  • The app arrangement  pane is blank

    Just recently I have encountered issues when synching my iPhone and iPad. On the apps page, I have the list of apps that I can install but the layout pane where I should be able to arrange the apps is blank: I'm running Windows 7 with iTunes 11.1.5.5

  • Can't get safari to open with home page

    I have set google as my homepage in Preferences, but Safari invariably opens with the last page I had used before quitting.  I've tried both "Set as Current Page" (being on google, of course), as well as typing in google's URL. Any suggestions? Thank