How to send "Blob" in mail Attacthemnt with Javamail
Hi,
I need send a mail with attach file that is stored in bd. The column is a BLOB (any file) , and i need send directly with JavaMail..
Any idea or sample???
Thanks
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:255615160805
Similar Messages
-
How to send smartforms as pdf attachments with e mail
hi experts,
how to send smartforms as pdf attachments with e mail???
nitinHi
In the FORM Interface put proper parameter. Hope this helps. -
How to Send Appointment via mail adapter
Hi Guys,
I need to send the appointment and vTodo via mail adapter, any way i need to develop a mail adapter module. Till now i have finished this part,and i can send normal mail even normal mail with attachment. But i don't know how to send appointment via mail adapter.
This is payload content of appointment which got from Exchange server to gmail:
_=_NextPart_001_01C71EC0.97A011C6
Content-Type: text/plain;
charset="GB2312"
Content-Transfer-Encoding: quoted-printable
When: 2007=C4=EA6=D4=C227=C8=D5=D0=C7=C6=DA=C8=FD 3:30 =CF=C2=CE=E7-4:00 = =CF=C2=CE=E7 (GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi.
Where: China
~*~*~**
This is calendar content
_=_NextPart_001_01C71EC0.97A011C6
Content-class: urn:content-classes:calendarmessage
Content-Type: text/calendar;
method=REQUEST;
name="meeting.ics"
Content-Transfer-Encoding: 8bit
BEGIN:VCALENDAR
METHOD:REQUEST
PRODID:Microsoft CDO for Microsoft Exchange
VERSION:2.0
BEGIN:VTIMEZONE
TZID:(GMT+01.00) Sarajevo/Warsaw/Zagreb
X-MICROSOFT-CDO-TZID:21
BEGIN:STANDARD
DTSTART:20070112T140000
TZOFFSETFROM:+0100
TZOFFSETTO:+0100
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:20070112T140000
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
DTSTAMP:20061213T141132Z
DTSTART;TZID="(GMT+01.00) Sarajevo/Warsaw/Zagreb":20070112T140000
SUMMARY:This is calendar test
UID:040000008200E00074C5B7101A82E0080000000030D51864C81EC701000000000000000
010000000CA9F127EA8947844BC4DD47F269BDEA9
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN="Xu, Rocky":MAILTO:rocky@***.com
ORGANIZER;CN="Xu":MAILTO:rocky@**.com;roc*@gmail.com
LOCATION:Shanghai
DTEND;TZID="(GMT+01.00) Sarajevo/Warsaw/Zagreb":20070112T160000
DESCRIPTION:This is calendar content\N
SEQUENCE:0
PRIORITY:5
CLASS:
CREATED:20061213T141132Z
LAST-MODIFIED:20061213T141133Z
STATUS:CONFIRMED
TRANSP:OPAQUE
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
X-MICROSOFT-CDO-INSTTYPE:0
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
X-MICROSOFT-CDO-IMPORTANCE:1
X-MICROSOFT-CDO-OWNERAPPTID:367904726
X-MICROSOFT-CDO-APPT-SEQUENCE:0
X-MICROSOFT-CDO-ATTENDEE-CRITICAL-CHANGE:20061213T141132Z
X-MICROSOFT-CDO-OWNER-CRITICAL-CHANGE:20061213T141132Z
END:VEVENT
END:VCALENDAR
_=_NextPart_001_01C71EC0.97A011C6--
My question is
1. How to generate this kind of payload in mail adapter module?
2. It is possible to send appointment via mail adapter?
Following i can get from other system, even using mail package check or not using mail package check.
BEGIN:VCALENDAR
METHOD:REQUEST
PRODID:Microsoft CDO for Microsoft Exchange
VERSION:2.0
BEGIN:VTIMEZONE
TZID:(GMT+08.00) Kuala Lumpur/Singapore
X-MICROSOFT-CDO-TZID:21
BEGIN:STANDARD
DTSTART:16010101T000000
TZOFFSETFROM:+0800
TZOFFSETTO:+0800
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16010101T000000
TZOFFSETFROM:+0800
TZOFFSETTO:+0800
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
DTSTAMP:20070608T025852Z
DTSTART;TZID="(GMT+08.00) Kuala Lumpur/Singapore":20070608T110000
SUMMARY:This is meeting request with attachment
UID:040000008200E00074C5B7101A82E0080000000000A9BD0BA7A9C701000000000000000
010000000C5E16D144D1612498C0EF7E2115EFEC4
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN="Xu, Rocky
":MAILTO:roc*@**
ORGANIZER;CN="Xu,y":MAILTO:roc*@**
LOCATION:India labs
DTEND;TZID="(GMT+08.00) Kuala Lumpur/Singapore":20070608T113000
DESCRIPTION:This is content! <<shanghai.txt>> \N
SEQUENCE:0
PRIORITY:5
CLASS:
CREATED:20070608T025925Z
LAST-MODIFIED:20070618T033505Z
STATUS:CONFIRMED
TRANSP:OPAQUE
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
X-MICROSOFT-CDO-INSTTYPE:0
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
X-MICROSOFT-CDO-IMPORTANCE:1
ATTACH:CID:008501c7b159$a9d41d3b$_CDOEX
X-MICROSOFT-CDO-OWNERAPPTID:1468557271
X-MICROSOFT-CDO-APPT-SEQUENCE:0
X-MICROSOFT-CDO-ATTENDEE-CRITICAL-CHANGE:20070608T025852Z
X-MICROSOFT-CDO-OWNER-CRITICAL-CHANGE:20070608T025852Z
END:VEVENT
END:VCALENDAR
Thanks & regards
RockyHi
have a look at this
You can use Java/ABAP proxies to do this job for you..
Java Proxy >> will read the mail(with the attachments) with the help of Java APIs and send the message into XI ABAP Proxy >> for this you will have to first convert the attachment into a message and then you can proceed in the regular fashion.
Not all adapters can process attachments, I'm not sure why you are having trouble with using module processor in the mail adapter. Just check if the service pack that you are using supports this feature.
If you are on WAS 6.10 and above you can achieve this and there is an excellent weblog by Thomas Jung on this topic at
/people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816
reading Pdf Through mail easly done with Java Proxy, which will read the mail(with the attachments) with Java APIs and send the message into XI and then map with the Target ABAP proxy structure .
Thanks -
How to send birthday wish mail to Employees on daily basis
Hi ,
How to send birthday wish mail to employee with greeting card as background image in Mail Content area.
Is there any Standard program available in SAP.
_Requirement:_
Normal , Birthday Wish mail can be done through function module SO_NEW_DOCUMENT_SEND_API1.
How to write program for getting , Greeting card as background image in Mail Content area.
Is there solution in SAP .
Regards
SurendarHi,
Check this for embedding image in your email : Using CL_BCS to send email from ABAP
And this about image as background and other related stuff : http://www.reachcustomersonline.com/2010/01/23/09.27.00/#faqs
Best regards,
Guillaume -
How to send Deadline Monitoring mails to an external mail (LOTUS NOTES)?
Hi all,
1. I know how to send Deadline Monitoring mail to an SAP INBOX. But i need to send the deadline monitoring mail to an external email address (LOTUS NOTES or any other email id).
2. If i am able to send Deadline monitoring mail to the external email address. It will send mail only once but, How to send these deadline monitoring mails for every 3 days until the approver takes some action.
Please help me...
Regards,
Gautham PThe easy solution is to set up automatic forwarding for everyone by defining the system as NOT being your e-mail system. I don't know where this setting is (the Basis people did it), but with this setting SAP will forward every user's e-mail to the e-mail address in the user record.
For repeated sending I think you have to use modelled deadlines. Send the deadline message using a normal mail sending step and loop after calculating the new deadline. (i.e. you need to store the deadline in the container and refer to the container elements in your deadline specification.) The deadline calculation can either be a separate step or you can do it as a secondary method in the mail sending step. -
How to cooperate the current mail system with Sun Java Commnication Suite 5
Dear all and Shane,
Excuse me for bothering you again.
Due to time limited, I would like to know how to cooperate the current mail system with Sun Java Commnication Suite 5. I mean I would like to use current mail system (mailscanner + postfix + courier-IMAP + clamav + spamassassin + webmail) and use the outlook connector to connect to Sun Java COMMS 5 to share the calendar, contacts only.
Right now I have done the testing by using outlook, mac mail, thunderbird to share calendar,contacts via Sun Java COMMS 5 in Centos Linux 5.
My plan is as following
1. Sun Java Communication suites 5 server ( I called it comms5 ) will be in DMZ zone and will open the necessary ports in firewall.
2. I will create more than six sub domain name in Sun Delegate server and the necessary accounts within these domain names.
3. All messages will be transmitted via Postfix and clients will retrieve from Courier-IMAP
4. All Clients included other branch offices will use different mail clients to share their calendars, contacts via COMMS5 ( But how will COMMS handle the messages such like invitation ? )
Any suggestions will appreciate.
PS: Is it possible to classify the contacts in outlook address book ?
For example, when user click the receiver, it will show like as following
GLOBAL ADDRESS BOOK
--Director
--and so on
----CN.BRANCH OFFICE
-----------CN01 EMAIL ADDRESS
-----------CN02 EMAIL ADDRESS
-----------CN03 EMAIL ADDRESS
and so on
----JP.BRANCH OFFICE
-----------JP01 EMAIL ADDRESS
-----------JP02 EMAIL ADDRESS
-----------JP03 EMAIL ADDRESS
and so on
----TW.BRANCH OFFICE
and Due to the user account is located in CN.BRANCH OFFICE, it will extend the CN.BRANCH OFFICE contacts level.
Excuse me for bad English, hope you can understand it.
Best Regards,
BruceDogz wrote:
Due to time limited, I would like to know how to cooperate the current mail system with Sun Java Commnication Suite 5.
I mean I would like to use current mail system (mailscanner + postfix + courier-IMAP + clamav + spamassassin + webmail) and use the outlook connector to connect to Sun Java COMMS 5 to share the calendar, contacts only.Getting your current mail system to 'co-operate' in this way will require more time then simply migrating the accounts of users on the current mail system to the comm-suite-5 installation and making use of UWC for Webmail access and ClamAV/SpamAssassin integration within the messaging MTA.
Also the use of Outlook Connector with a non-Sun IMAP backend isn't supported, nor is the use of a non-Sun IMAP backend possible with UWC.
Right now I have done the testing by using outlook, mac mail, thunderbird to share calendar,contacts via Sun Java COMMS 5 in Centos Linux 5. Once again I should remind you that CentOS is not a supported platform for comm-suite-5
Regards,
Shane. -
I have created a group from my iCloud contacts, but do not see how to send an e-mail message to this group.
The help topics don't go this far. Can anyone help?Thanks Winnie; but why didn't that work when I typed in the whole title of the group? Just the 1st 2 letters did the trick.
Over & out -
How to send HTML Format Mail using Java Mail in oracle 9i Forms
Dear All
could you please tell me how to send HTML Format Mail using Java Mail in oracle 9i Forms and how to implement the java mail ?
if it is possible, could you please send me the sample code? please very urgent
Thanks
P.SivaramanHello,
<p>Here is a Form sample.</p>
Francois -
Hi all,
I have an issue. How to send an encrypted mail using smartform output.
I am using the output from smartform and converting it to pdf and then sending that pdf as attachement through mail. But before sending, i have to encrypt the contents of the mail. Plz anybody know the solution for this issue?check this link...
http://help.sap.com/saphelp_nw04/helpdata/en/4e/c153426da9bd30e10000000a155106/content.htm
Encrypt.?
How to Encrypt? -
Why I can't send any e-mail messages with 6230i?
Hi mates,
I have a Nokia 6230i with a Vodafone Italian sim card in it.
I know for sure that I CAN retrieve messages form my incoming POP3 e-mail server but I can't send any e-mail messages with it.
Any time I try to do that it prompts me an information balloon saying: message failed. Why??
I mean, I properly set up my phone with all Vodafone details but it still does not seem to work.
Any help will be appreciate
Stefano.
P.S.
I can even send and receive MMS and of course SMS too
Solved!
Go to Solution.thanks mate for your reply
When you say: "Make sure your SP allows sending e-mail"
Do you mean the provider who give me the mail service?
Because I know for sure that with MS Outlook express I can send and recive e-mail with it
Bye,
Stefano. -
How to send notifications to multiple person with same role and with result
How to send notifications to multiple people with resultout as approve/reject?
We are looping the notification by attaching a cursor query to find the different emp nos to send for approval.
I cannot associate a role because these emp nos are sub-set of a role which I have created and i am getting thru the cursor query.
For FYI notification there is no problem, but for approval notification, I am not unable to send approval notifications to all the people.It stops at the first person in the loop.Pls suggest alternate way. Thanks in advance.Manju,
I would use the cursor to populate the API for creating an ad-hoc role within the workflow process as a function. Then set your notification performer as the ad-hoc role.
Here is an example function:
create or replace procedure sample_emp_fill(itemtype in varchar2,
itemkey in varchar2,
actid in number,
funcmode in varchar2,
resultout in out varchar2) as
cursor get_name is
select ename from scott.emp where mgr = 7839 and empno != 7566;
role_name varchar2(50);
names varchar2(500);
begin
if (funcmode = 'RUN') then
role_name := 'ad_hoc_role_'|| itemkey;
for row in get_name loop
names := names || row.ename || ' ';
end loop;
WF_DIRECTORY.CreateAdHocRole( role_name=>role_name,
role_display_name=>role_name,
language=>'AMERICAN',
territory=>'AMERICA',
role_description=>role_name,
notification_preference=>'QUERY',
role_users=>names,
email_address=>' ',
fax=>'',
status=>'ACTIVE',
expiration_date=>'');
resultout := wf_engine.eng_completed||':'||wf_engine.eng_null;
return;
end if;
end; -
How to send a e-mail from folio with subj and text
Hello!
I need send an e-mail from folion. I knew how to make hypperlink but a need not only subj and address. I need a text there. Can somebody explain how it's should be?
Best regardsYou can make an object have a mailto: hyperlink that has subject and body variables included.
It would look like this:
mailto:[email protected]?subject=Subject-text-goes-here&body=Body-text-goes-here
Fill in the variables with your own text, and make sure to replace spaces in your subject and body text with figure dashes. -
How to send/receive e-mails with sql or pl/sql
Hello,
I must send and receive e-mail (something like e-mail client) done with oracle database and oracle forms.
How can I receive e-mails with SQL? Is there any way?
I read threads about using utl_smtp but i could not send an e-mail. May be I need to use servers without password?
Best regards
P.S. I'm using Forms 10g R2 and database 9iHi,
try below code.
change mailhost ip to u r mail server ip.
CREATE or REPLACE PROCEDURE SimpleTextMessage IS
mailHOST VARCHAR2(64) := '192.168.0.21';
mailFROM VARCHAR2(64);
mailTO VARCHAR2(64);
mailCONN utl_smtp.connection;
mailDATE VARCHAR2(20);
vreply utl_smtp.reply;
vreplies utl_smtp.replies;
i number;
BEGIN
mailFROM := '[email protected]';
mailTO := '[email protected]';
SELECT TO_CHAR(SYSDATE,'MM/DD/YYYY HH24:MI:SS') INTO mailDATE FROM dual;
vreply := utl_smtp.open_connection(mailHOST, 25, mailCONN);
vreplies := utl_smtp.help(mailCONN, 'HELP');
for i in 1..vreplies.count loop
dbms_output.put_line( 'text = ' || vreplies(i).text );
end loop;
vreplies := utl_smtp.ehlo(mailCONN, mailHOST);
for i in 1..vreplies.count loop
dbms_output.put_line( 'text = ' || vreplies(i).text );
end loop;
vreply := utl_smtp.mail(mailCONN, mailFROM);
vreply := utl_smtp.rcpt(mailCONN, mailTO);
vreply := utl_smtp.open_data(mailCONN);
utl_smtp.write_data(mailCONN, 'Subject: '|| 'Hi' || chr(13));
utl_smtp.write_data(mailCONN, 'From: '||mailFROM || chr(13));
utl_smtp.write_data(mailCONN, 'Date: '||mailDATE || chr(13));
utl_smtp.write_data(mailCONN, 'To: '||mailTO || chr(13));
utl_smtp.write_data(mailCONN, 'CC: '||mailFROM || chr(13));
utl_smtp.write_data(mailCONN, chr(13));
utl_smtp.write_data(mailCONN, 'Hello Friend how r u.' || chr(13));
vreply := utl_smtp.close_data(mailCONN);
END;
/ -
How to: Send out e-mails through a 3rd party mail host?
Hi,
We would like to send out e-mail campaign from our CRM system.
But we would not like to risc being blacklisted as spammer, so we would like to send out the e-mails using a 3rd party mail host provider.
Our sales department already use our CRM system for sending out their sales related e-mails.
They use our corporate exchange server for that.
So the scenario is:
I have created a smtp node in trx scot, and liked it to our domain *company.com
This node points to our corporate mail host. All our normal users use this domain.
All our campaign e-mails from CRM should be send using another mail host as described before.
According to note 455140, I don't see that I can create a new smtp node in scot.
And link this one to our new e-mail domain *company-news.com and the external mail host.
How do I send these e-mails to a specific mail host when the sender is a specific domain e.g. company-news.com?
My Exchange server guys say that they can't redirect specific mails send from our CRM system.
They can only redirect all mails that are send from our CRM system, but then all the e-mails from our sales reps are also send through a 3rd party mail host.
Does anyone have battled with this before, and how did you solve it?
best regards
Michael Wolff KnudsenWe bought a new Exchange server, version 2007 just for CRM. This Exchange version can tunnel the e-mail to our 3rd party vendor, and they can send out the e-mails so neither one of us gets spammed.
-
How to send an Email Message along with a PO PDF Attachment in Word.
I want to send an Email to a customer. The subject of the email is the PDF attachment of the Purchase order.
Then in the Body of the email, we need to put a small Mesasge in the Body of the Email: Example
Hello,
Please see attached Purchase Order.
thank you...
Does anyone have a suggestion on how to do this? Best approach?
thanks
Walter PoeHi Walter,
In NACE transaction, select Application EF , then select your P.O Message ( standard is NEU ) .
Then in "processing routing" parts check that there is an entry for medium 5 ( external send ) , if not please set it with corresponding print program, from routine and forms to use .
Then in "Mail Title and Text" parts you can define your mail title with variable and your mail body . Please find below a sample for this. To define the mail body just click on the icon for text ( it's like sapscript text ).
Mail Title : "Your P.O &EKKO-EBELN"
Mail Body : "Please find enclosed our P.O &EKKO-EBELN....."
That's all for NACE parts.
After this you have to define thru condition that the medium will be used for each P.O. For this check with functionnal consultant if everything is ok and the same that for medium 1.
Then when you create a P.O, SAP will generate a mail with supplier e-mail adress define in his masterdata . The forms will be converted according to your customizing in transaction SCOT ( node SMTP , Support address type parts) .
Of course you also have to define a job for sending the mail .
Hope this help you
Regards
Bertrand
Maybe you are looking for
-
Problems installing cs3 production premium: database corrupt
I have a new computer with windows 8. On my old computer i used Premiere Pro CS3, now i tried Premiere Elements 11. I´m not happy with it so i deinstalled it and tried to install the CS3 production premium on the new Computer. When I insert the disk
-
How can I work lsmw with table control using mm01 appl?
Hi How can I work lsmw with table control using mm01 appl? Is it difefrent the way we handle table control in BDC? Thank You
-
Two of each template in the chooser how to remove extras?
Hello all, since installing leopard I have two of each template in the chooser. Only for the template that I purchased from Keynote user site or from another site. How can I remove the extra one? Thank you for your help Mireille
-
Nokia Video Manager 1.5 does not install!
According to the download page of Nokia Video Manager 1.5 (http://europe.nokia.com/A4370009), the program should run under Windows XP Professional x64 Edition. I have downloaded the program and give it a try on Windows XP x64, however, I get the foll
-
i have a new customer moving into my multi-tenant DC.the customer will have its own VRF but still wants further isolation within this VRF.they've got prod,dev and staging networks and will like to keep traffic strictly restricted within these areas.t