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>
Similar Messages
-
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 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
VishalHow 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? -
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,
GauthamAs 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 -
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.
LakmalFainaly 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; -
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,
LeneAs 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 -
How to create a mail user agent by using JAVA...
my lecturer has asked me to create a mail user agent by using JAVA , i have no idea how to start this assignment......
What part are you stuck on? Creating a GUI (look at the Swing tutorials), or writing the talk-to-mail-server bit? Look at Java Mail, or the email RFCs.
-
How to check whether a Document in KM is classified or not using JAVA API
Hello Everyone,
Can anyone tell me, How to check whether a Document in KM is classified or not, using JAVA API's??
Thanks & Regards,
Adren D'SouzaHi,
The code is as follows:
IIndexService indexService = null;
try {
indexService = (IIndexService) ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.INDEX_SERVICE);
} catch (ResourceException e) {
if (indexService == null) {
log.errorT("Error on instanciating the index service");
return this.renderMessage(this.getBundleString(RES_NO_INDEX_SERVICE), StatusType.ERROR);
// get index
IIndex index = null;
try {
index = indexService.getIndex("YourIndexID");
} catch (WcmException e1) {
log.errorT("Error when trying to get the index");
return this.renderMessage(this.getBundleString(RES_NO_INDEX), StatusType.ERROR);
// check if the index is a instance of AbstractClassificationIndex
AbstractClassificationIndex classiIndex = null;
if (index instanceof AbstractClassificationIndex) {
classiIndex = (AbstractClassificationIndex) index;
} else {
log.errorT("The index " + index.getIndexName() + " is no classification index");
return this.renderMessage(this.getBundleString(RES_NO_CLASSIFICATION_INDEX), StatusType.WARNING);
//give your KM Resource here for which you want to know if it is classified or not
boolean classified = classiIndex.isDocClassifiedInAnyTax(resource);
Regards,
Praveen Gudapati -
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. -
I can not get ny updates and therefore not use Java, as it only run updates for MAC 10.7. and later. How do i get the updates to install and use JAVA ?
In Snow Leopard you update Java from Software Update (in the Apple menu). You can check your version by opening Terminal and typing
java -version
(don't get creative and type anything else)
The latest version is 1.6.0_65. -
This is a discussion I would really like to hear some other opinions about. I know some people who keep thinking Java sucks and when they try to use it, they use it for completely the wrong tasks. Now I was thinking, in what situations should you avoid it altogether? This could become a nice reference thread to point those idiots to :)
I would avoid Java for:
- performance critical solutions (perfect timing, per frame graphics analyzers, etc.)
- general public applications. You have to install java first to run your software, which a lot of users will screw up or simply won't do. Java also eats up a lot of memory.
- platform dependend problems. Generally if your problem description includes the word "Microsoft", you should NOT use Java to try and fix it. You should be using Visual Basic or C#.
These are really common examples that I see on this forum almost every day. Are there any other examples that are worth mentioning?Q>>Now I was thinking, in what situations should you avoid it altogether?
A>>When they use it for completely the wrong tasks.
You answered your own question.
I would avoid Java for:The stuff you say you would avoid java for, pretty much , well to me, says you won't use java.
- performance critical solutions (perfect timing, per frame graphics analyzers, etc.)Why not, all depends on your algorithms.
- general public applications. You have to install java first to run your software, which a lot of users will screw up or simply won't do. Latest Linux Distros, like JDS, come already packaged with JRE, so this isn't 100% true.
Java also eats up a lot of memory. So does windoz OS. I guess I'll avoid it.
- platform dependend problems. How so??? again see your original Question (Q above).
Java was created for platform independance.
When you create a program that considers Solaris, Linux, and cough windoz, Oh , don't forget MAC, you program each case, no big deal. -
Hi I purchased iphone5 in uk..Now am in India before coming I unlocked my iphone using my mail id.but now its not activating they telling now this mail id is not used to unlock this iphone.what can i do now?please anyone tel me the answers
Only the Carrier it is Locked to can Unlock it.
Contact the Carrier. -
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 thisNo. 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 -
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 :)
Maybe you are looking for
-
Removing header and Footer in IE
Hi i am generating a html document if i try to take print out the the URL is appearing at the bottom and the page name at the top of the resulting print page. any one can help how we can remove the header and footer data (which is in page setup) usin
-
My iPhone 4s is not switching on, I connected it to itunes thru my Windows 7 laptop and it says phone needs to be restored. I clicked okay and it started the process however the progress bar with the apple logo is on the screen, progress in the bar d
-
Windows 7 and classpnp.sys safe mode loop.
Hello, First of all this is an outline to the system I am running. Acer Aspire X1800 Brought as a Windows Vista Home Premium 32bit, has now been upgraded to the equivalent in Windows 7. Intel® Core™2 Quad processor NVIDIA® GeForce® 7100 and nForce® 6
-
We have the following error while importing the data file on one location. The script is sitting on the Account Like mapping. It was working fine on 9.3.1 but not working on 11.1.2.1. Even after I removed the Case statement (so just leave the Ifxxxxx
-
ORA-27047: unable to read the header block of file
My Windows 2003 crashed which was running Oracle XE. I installed Oracle XE on Windows XP on another machine. I coped my D:\oracle\XE10g\oradata folder of Win2003 to the same location in WinXP machine. When I start the database in WinXP using SQLPLUS