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.

Similar Messages

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

  • 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

  • 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

  • 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

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

  • Send Emails Through Lotus Notes

    Dear Experts..,
    I am developing an object in which I have to send mails to the Users through Lotus Notes.
    The scenario is that..
    1. Smartforms has to me created for different cases.
    2. The corresponding Smartform has to be called based on the Case and it has to be populated with values.
    3. Then the Smartform output has to be converted to HTML Format.
    4. It has to be sent to Lotus notes along with "mail id" and "relevant Subject".
    5. Then I have to receive a acknowledgement from Lotus Notes about the successful delivery of the mail.
    Please explain me how to send the converted Smartform to the users email id (this mail id is a external mail id) through Lotus Notes.
    Thanks in advance.
    Regards,
    Naveen Kumar G

    Dear Experts..,
    I am able to do up to the conversion of the Smartform.
    The remaining is where I got messed.
    I am using a FM 'SO_NEW_DOCUMENT_ATT_SEND_API1'...., but this will send a mail directly.. not through Lotus Notes.
    But I was given a requirement like, I have to use Lotus Notes.
    Please help me in this regard.
    Thank you,
    Naveen Kumar G

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

  • 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 an email from Lotus Notes release 5.0.4a

    I need to write java code for sending an email from Lotus Notes release 5.0.4a.
    Initially, I tried using Lotus Domino Toolkit for java, but the current release, "Lotus Domino ToolKit for Java/Corba release 5.0.8" is not compatible with the notes client/server we are using(5.0.4a).
    Now, I am trying to use "Lotus Domino Toolkit 2.1" which supports notes version 5.0.3 and higher, but I couldnot find out how to use it to send email.
    Is there are other way in which we can connect to Lotus Notes for sending email. I cannot use SMTP as the Lotus Notes administrator is afraid of security issues so there is no possibility that I can connect to Domino server using java mail API by enabling SMTP on the Domino server.
    I would be thankful if somebody can help me to do this.

    First off - This is very "off topic"
    The Domino SMTP server is not hard to lock down. Any Notes Admin worth his/her salt should know how to do it. Try to persuade them to run the SMTP stuff using name and password authentication only, or restrict access to an IP address range. This is all easy stuff.
    Otherwise DIIOP/CORBA is one way to go. If your toolkit jar files don't work with the server then try using the ones on the server. Look in %noteshome%\data\domino\java for the ncso.jar file.
    This works for me on an AS/400 java VM to WinNT/Linux Domino servers of various versions.
    How to create an email using this method is again not difficult. All you really need is a blank database template. You have to create a document with certain fields in it (all documented) and then save it. That's all there is to it.
    Word of warning DIIOP is not very rapid and careless coding can create problems. Ensure that once you have finished a session you make sure you close it else you will have continual connection problems.
    Try searching around the domino/notes groups on how to actually do this.
    SH

  • How to send Html Mail through navigateToUrl() with contentType "text/html" for Android ?

    Isn't it possible to send Html Mail through navigateToUrl() with contentType "text/html" for Android ? please suggest any workaround
    Thanks

    AHHHH
    What you can do to make HTML for Apple Mail is to make it in an HTML editor, open it with Safari use CMD+i - a new mail message will appear in a moment with the web page in the email body.
    You can't do any major editing in Mail, you'll have to go back to the HTML file. But it works.
    You can also use Copy (from a web page) and then (Edit) Paste as HTML (that what Paste as HTML is for, not for creating HTML email). You can also user Paste as HTML to copy/paste a HTML email you receive or part of a HTML email.

  • Suddenly Cannot send e-mail through g-mail account

    I have had no problems with sending/receiving mail until suddenly 4 days ago - can receive, but cannot send e-mail through a g-mail account.  Do not know how to rectify, nor whom to reach out to...
    Any help would be greatly appreciated.

    Hello PBriestner,
    Thank you for using Apple Support Communities.
    The following article should be useful to you in troubleshooting email on your computer:
    OS X Mail: Troubleshooting sending and receiving email messages
    Regards,
    Jeff D. 

  • Sending HTML email to Lotus Notes

    Guys,
    We have to send en email to our customers in an intra net site. And our SMTP server is Lotus Notes. When ever I send html email, it is sent as attachment. Here is why that happens with html email:
    http://www-1.ibm.com/support/docview.wss?rs=899&uid=swg21088385
    Now I am looking for alternative ways to send html email using Java Mail to Lotus Notes client. My last option is RTF or plain text. But still how do I manager the URL links.
    Thanks

    Well, It sounds like you already answered your own question.
    Answer
    In Domino� 6.x and later, the following notes.ini settings are enabled by default for any user that has a setting of
    "Prefers Notes Rich Text" in the "Format preference for incoming mail" field in the user's Person document:
    MIME_Convert_HTML_To_Attachment=1
    MIME_Convert_Alternates=0No matter what you code on your side. If you send your messages as HTML the Lotus Notes Mail Server will convert the the HTML to Attachments.

Maybe you are looking for

  • Ipod touch 1st generation 3.1.3 update

    Where can I find a link to update my ipod touch 1st generation with the 3.1.3 update?

  • Itunes will not open after installing lion and software updates

    I just installed lion and completed the most recent software updates for my computer, now i cannot get iTunes to open without it "unexpectedly quitting" on me. Has anyone else had this problem or knows what to do?

  • Setting up a new raid and preserving disk contents

    I have a Maxtor 250GB drive full of data. I just purchased a Maxtor 300GB drive that I am going to use as a RAID 1. Is it possible to set up the raid without formatting the 250GB and immediately have it mirrored to the 300? If so, what steps would I

  • How to get substring from string starting from the end of string

    Hi How to cut from string: $A=C:\ClusterStorage\Volume1\WXP-plwropc300\Virtual Hard Disks\WXP-PLWROPC300_EE20E00F-315E-4781-A6DE-68497D4189B8.avhdx this substring (name of VHD file): WXP-PLWROPC300_EE20E00F-315E-4781-A6DE-68497D4189B8.avhdx This scri

  • Workflow variant for payment release

    Hello ,   I have done the configuration of workflow variant for payment release but still the invoice is not getting blocked when we are paying it . Find below the configuration done for it . SPRO-Accounts Receivable and Payable-Business Transactions