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

Similar Messages

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

  • 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

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

  • 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

  • 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

  • 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

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

  • 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

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

  • Java program to send email from lotus notes

    Hello,
    Please anyone suggest me how to send email from lotus notes using java.
    Thanks.

    I don't understand the question. Are you asking:
    1. How do I send e-mail from Lotus notes manually? Press the Send button.
    2. How do I send e-mail from Java? Look into the Java Mail API. Doesn't require Lotus Notes (or any other e-mail client, for that matter).
    3. How do I send e-mail to a Lotus Notes address? Just send e-mail to the address (see # 2 above). Nothing special required just because the recipient uses Lotus Notes. FYI: I use Lotus Notes (though I hate it) because it's our company's standard & have written Java apps that send e-mails to Notes. The only time I've had to be aware the recipient was a Notes client was when I was sending HTML formatted messages; then I had to pay attention to the limitations of Notes' brain dead HTML parser.

  • I have a problem sending mail via smtp. I use a satellite system and the average return time for a ping is 675ms. Is this a problem with mail? If so can I change Mail to accept it. The problem also exists with Lion

    I have a problem sending mail via smtp. I use a satellite system and the average return time for a ping is 675ms. Is this a problem with mail? If so can I change Mail to accept it. The problem also exists with Lion and on both my MacPro and my wife's Imac. I also see my mailboxes randomly disconnecting and reconnecting. Any other ideas of a possible cause?

    I solved it myself, after the "note" which came back from FF/Mozilla just as I finished my message, commenting on what it was that my system had , I wnnt back to check my plug-ins etc. I downloaded the latest Java, BOTH 32bit AND 64 bit versions and latest Firefox.
    Now all is working.
    Thanks,
    B.

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

Maybe you are looking for

  • How can I reduce the output size of what I want to print?

    I have an HP Touchsmart Web and recently needed to enlarge the document I was printing.  I thought I enlarged it under the Advanced tab in Printer Preferences, but now I can't find anywhere that you gives you the option to change the output size.  I

  • Customer Balances in Local currency

    Hi Gurus, Can some one explain me about TCode-  S_ALR_87012172= Customer balance in Local currency It importance ,its benefits, Thanks, Seegal

  • Unkown TIFF compression Type

    I just tried dropping a tiff from bridge into ai cs3 and got this message "Unkown TIFF compression Type". I tried resaving the file from PS as LZW and then when I tried placing it again, I got this error "Planar lzw cmyk tiff files not supported in t

  • Migrate to new computer

    I have been syncing my phone on my family iMac and now want to transfer all operations and syncing to my new Mac Book Pro. What is the best way to accomplish this.

  • Packing Instruction determination procedure

    How does the system determine Packing instruction determination procedure. For example Output procedeure in Sales order is determined based upon its assignment to Sales document type. Pricing procedure is determined based upon its assignment to corre