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;

Similar Messages

  • 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

  • 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

  • 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

  • Sending email via Lotus Notes

    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.
    Jeff

    A simple way is the host-command.
    The command-string is "start mailto:address?body='Text'&subject='Text"
    The length of host-string is limited.
    Text_io can help: Create the cmd-file and then start it thru the host-command.
    Also simple: Create a html-file x.html and start this via host(Start x.html')
    I am interested und this topic, too, because I can't attach files with this simple methods.
    Wolfram

  • 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

  • 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.

  • 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

  • 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

  • Send mail via WLAN not possible

    Whenever I try to send mails while being connected via WLAN, Apple Mail tells me that it cannot connect to the relevant smtp server opening a window to choose another one.
    This is NOT happening when I am connected to the web to the SAME NETWORK or any other network but just via cable.
    When I try to send mails while being connected to the web using my Vodafone UMTS card the same happens.
    I always use the same mail accounts and settings thererof.
    Receiving mails is no problem, browsing the web no problem.
    Any idea

    Most if not all ISPs used for connecting to the internet block the use of SMTP servers that are outside of their network (or not provided by the ISP) on Port 25 which is the most common and default port used for all SMTP servers.
    Some ISPs allow the use of an authenticated SMTP server only (such as the .Mac and AOL SMTP servers) on Port 25 but some block its use regardless.
    This is entirely left up to an controlled by the ISP used for connecting to the internet at the time.
    Go to Mail > Preferences > Accounts and under the Account Information tab for your .Mac account preferences at the SMTP server selection, select the Server Settings button below for the .Mac SMTP server.
    Enter 587 in place of 25 in the Server Port field and when finished, select OK to save the changed settings.
    Test if this resolves the problem which it should since you are able to send messages with your AOL account and authenticated SMTP server which also used Port 587 for the Server Port.
    Go to Mail > Preferences > Accounts and under the Account Information tab for your AOL account preferences at the SMTP server selection, select the Server Settings button below to confirm the AOL authenticated SMTP server is using 587 for the Server Port.

  • 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.

  • Surname not recognized when sending mail via FM

    Hi SDN,
    I am on WAS 6.20. SRM System.
    I have a BSP, which sends mail via FM SO_NEW_DOCUMENT_ATT_SEND_API1.
    when putting a normal dialog user in the ICF Service of the BSP I get a mail in my email client, which shows as sender the forename, surname of the corresponding SU01 SAP User. When putting service user in the ICF service the sender, which shows up in my email-client is always 'www' even though I changed fore- and surname of this service user. Why is that?
    regards, matthias
    Message was edited by: Matthias Kasig
    Message was edited by: Matthias Kasig

    I am with you. I think they still have a dud server in their farm and when you get it you get the error message. How to get to level two support is the trick I think.

  • App tries to send mail via Thunderbird, "PostMail error# 2" is shown. All my collegues with the same installation do not have this problem. Thanks for your time

    When a external application tries to send an email via Thunderbird i get an error message, roughly translated it says: "Something went wrong with PostMail, error number 2"
    My collegues have the same setup, they have no problem what so ever when sending mail via this way. Any tips would be most welcome. Thanks for your time.

    Continue at your other thread.
    https://support.mozilla.org/en-US/questions/1053959

  • Offline Approvals via Lotus Notes

    We are currently implementing SRM 7.0.
    We have configured off line approvals and the email content is sent correctly to Lotus Notes.
    When the user clicks "Approve" in Lotus Notes, the approval email is not automatically sent to SRM.  The user is presented with a second screen that requires them to press the "Send" button in Lotus Notes.
    We have a few questions:
    Is this the standard function? If yes, can this behavior be changed? 
    If this behaior cannot be changed, can we edit/add text to the blank Lotus Notes email?
    Thanks!

    Hi,
    It depends on how email client handles the mailto action in HTML form.
    Outlook shows dialog box. I think this is related with some security setting in email client side.
    This is received HTML email.
    <FORM name=post_decision accept-charset=UTF-16
    action=mailto:WF-Batch#EBP_GEN_REPLY# method=post encType=text/plain>
    <TABLE>
      <TBODY>
      <TR>
        <TD>
          <!#EBP_GEN_MAILTO_BEGIN#>
          To approve or reject directly from this
          e-mail, click on one of the following buttons (allow program to send e-mail in background):
          <INPUT type=hidden value=00F3D1395134D34D34D3BE3BE38E01512DB5DB5FBE name=TECH_INFO_A>
          <INPUT  type=submit value="Approve by e-mail" name=submit>  
          <INPUT  type=submit value="Reject by e-mail" name=submit>
          <INPUT type=hidden value=444244093D34D34D34EF8EF8E380544B6D76D7 name=TECH_INFO_R>
          <!#EBP_GEN_MAILTO_END#>
        </TD>
      </TR>
      </TBODY>
    </TABLE>
    </FORM>
    Regards,
    Masa

  • 3GS 3.0.1 - Cannot send mail, You did not specify any recipient

    Whenever I send a message from iPhone with MobileMe account and then resync the account with server (Push is off), the very same message, already sent with success, appears in Outgoing folder and error pops up saying:
    *Cannot send mail, You did not specify any recipient*
    See the picture below:
    http://gitarzysta.com/iphone/error1.jpg
    It cannot be deleted, either - error message pops up saying: *Unable to move message*
    http://gitarzysta.com/iphone/error2.jpg
    Important: it was sent and received successfully. It is just either iPhone, MobileMe or both that have problems to sync correctly.
    On my Mac that I sync with this MobileMe account all is fine.
    What can be wrong? There was an old topic here, from 2008, where several users of 3G had exactly the same issue, but no root cause or solution was provided.
    Thanks!
    Message was edited by: gitarzysta

    Try deleting and manually recreating the account on your iPhone.
    If you transferred the account settings from your Mac via the iTunes sync process - selected under the Info tab for your iPhone sync preferences with iTunes, deselect this for your iPhone sync preferences followed by selecting Apply before doing so.

Maybe you are looking for