How to send 1st e-mail attachment
When trying to send 1st e-mail attachment I am given a form to put e-mail address. I put my own e-mail and get message that code is not correct
I have never done this but you can try
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_mail.htm#i1001532
Send emails with pdf
Send emails with pdf
UTL_SMTP to send attachment
Re: UTL_SMTP Mail Attachment
how to send mail with attachment
Similar Messages
-
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 -
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 -
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? -
How to send SMARTFORMS output as attachment through?
how to send SMARTFORMS output as attachment through e-mail?
after executing SMARTFORMS how to send that output via e-mail.
Help me.
thanks
surya.
Moderator Message: Please search for available information first
Edited by: kishan P on Nov 7, 2010 7:19 PMhi Vinod,
Can you please tell me how you have zipped the file.
I am having a text file in application server. I need to zip that file. Then the middleware moves it to Legacy system.
I used the following code. With this I am having the data in Binary format which my midleware cannot understand.
What I need on the whole is just to reduce the size of the file.
form ZIP_FILE .
DATA: lt_data TYPE TABLE OF x255,
lt_textdata TYPE TABLE OF x255.
DATA: ls_data LIKE LINE OF lt_data.
DATA: lv_dsn1(100) VALUE '/ECD/120/GIS/FTP/IB/DNBPAYDEX.TXT'.
DATA: lv_dsn3(100) VALUE '/ECD/120/GIS/FTP/IB/DNBPAYDEXZIP.zip'.
*DATA: lv_dsn3(100) VALUE '/interfaces/SM5/test.zip'. " Contains sample1.xls and sample2.xls
DATA: lv_file_length TYPE i.
DATA: lv_content TYPE xstring.
DATA: lo_zip TYPE REF TO cl_abap_zip.
CREATE OBJECT lo_zip.
Read the data as a string
clear lv_content .
OPEN DATASET lv_dsn1 FOR INPUT IN BINARY MODE.
READ DATASET lv_dsn1 INTO lv_content .
CLOSE DATASET lv_dsn1.
lo_zip->add( name = 'sample.TXT' content = lv_content ).
lv_content = lo_zip->save( ).
*clear lv_content .
Conver the xstring content to binary
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = lv_content
IMPORTING
output_length = lv_file_length
TABLES
binary_tab = lt_data.
OPEN DATASET lv_dsn3 FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
LOOP AT lt_textdata INTO ls_data.
TRANSFER ls_data TO lv_dsn3.
ENDLOOP.
CLOSE DATASET lv_dsn3.
IF sy-subrc EQ '0'.
MESSAGE s999(zfi_ap_gl) WITH text-t10.
ENDIF.
Can you please help.
Thanks Aravind -
How to send more than 1 attachment thru email
Hi All,
Need to know how to send more than one attachment through email. I need the coding part of it.
Thanks in Advance.
BalajiHi Balaji,
Check this thread
Sending mail with 2 attachments
Regards,
Santosh -
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 -
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 txt file as attachement in email
Hi Experts ,
How to send txt file as attachement in email .
which function module i useHi,
Try to use this one
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
Hope it can solve your problem!
Good luck!
Tao -
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. -
Sending PO in mail attachment with pdf format
Hello,
We are sending PO to vendor in a pdf attachment. The configuration is in place and as soon as the PO(ME22N) is saved the pdf mail is sent to vendor external mail address.
The requirement however is to add some text to this mail body ( in addition to the existing PDF attachment ).
The NACE config is using SAPFM06P program with entry_neu form and a custom sap script.
can somebody help as where is this mail functionality added in this standard program so that I may try to customize the same for the above requirement.
All I can see is 2 FM used in this ENTRY_NEU Form. Of which I guess ME_PRINT_PO is sending the mail ( I may be wrong here ) but where ?
I will be thankful for any kind of hint to help solve this issue.In general you will have to do the following:
1) Set NAST-NACHA = 8 (Special function)
2) Before OPEN_FORM (maybe in In enhancement spot) if NAST-NACHA = 8, then set itcpo-tdgetotf = 'X' (to get OTF back from CLOSE_FORM!)
3) During CLOSE_FORM, if NAST-NACHA = '8', get OTF output from TABLES parameter OTFDATA
4) Convert this OTF output to PDF using following sample code:
data: I_PDF STRUCTURE TLINE occurs 0,
I_OTF i_otf LIKE itcoo OCCURS 0.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 134
IMPORTING
bin_filesize = w_bytes
TABLES
otf = i_otf
lines = i_pdf
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4.
5) Send email with PDF attachment using the method(s) mentioned in one of these excellent blogs:
/people/thomas.jung3/blog/2004/09/07/sending-e-mail-from-abap--version-46d-and-lower--api-interface
/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
or you can follow below procedure as well:
I suggest you make yourself very familiar with the SAP code that does this automatically. Once you understand the processing sequence SAP uses, it is much easier to add your customization and insert your enhancements. To debug it and step through the code, but a breakpoint in ENTRY_NEU, and process a PO. If you're sending your messages using a scheduled job, you'll hit the breakpoint when you process the message using RSNAST00. That's how I did it. I can tell you what I did to meet my requirements. You can change to meet your needs. It required a custom program, to use instead if ENTRY_NEU, and 3 enhancements to SAP code using the Enhancement Framework. You need to know how to use the framework. 1. configure your output type ZNE2 to to run a new program ZMRP_OUTCTRL, to run form routine ENTRY_ZNE2, to create form Z_PURCHASE_ORDER. 2. In ZMRP_OUTCTRL, call standard function modules, ME_READ_PO_FOR_PRINT and ME_PRINT_PO. 3. Drill down into ME_PRINT_PO to PREPARE_FORMULAR function module. Create new enhancement, and if NAST-KSCHL = ZNE2, then lookup the recipient's email address. Pass it as parameter to ADDR_GET_NEXT_COMM_TYPE. 4. Still in ME_PRINT_PO, PREPARE_FORMULAR, add another enhancement to set the value of itcpo-getotf to u2018Xu2019, to enable CLOSE_FORM to capture OTF data for PDF. Only set this OTF flag when the output is being run by RSNAST00, not when a user is simply previewing the printout. Sy-ucomm will be blank when RSNAST00 is running. 5. In ME_PRINT_PO, drill down to ENDE, and add an enhancement to check for NAST-KSCHL = ZNE2, and if so, call standard SAP function modules to END_FORM, START_FORM, WRITE_FORM, and END_FORM. Next call the function CLOSE_FORM, and set table parameter to capture the OTF_DATA as a table parameter OTF_DATA. 6. If OTF_DATA is found, then: If nast-kschl = 'ZNE2'. if NOT otf_data[] is initial. gs_OTF[] = otf_data[]. CALL FUNCTION 'CONVERT_OTF' EXPORTING format = 'PDF' IMPORTING bin_filesize = v_len_in TABLES otf = gs_otf lines = gt_pdf EXCEPTIONS err_max_linewidth = 1 err_format = 2 err_conv_not_possible = 3 OTHERS = 4. IF SY-SUBRC 0. p_retco = '1'. PERFORM protocol_update USING '303' 'OTF Conversion failed.' 'Output Message Cancelled.' space space. IF 1 = 2. MESSAGE S303(me) with 'OTF Conversion failed.'. ENDIF. EXIT. ENDIF. CALL FUNCTION 'QCE1_CONVERT' TABLES T_SOURCE_TAB = gt_pdf T_TARGET_TAB = outbin. IF SY-SUBRC 0. p_retco = '1'. PERFORM protocol_update USING '303' 'PDF Conversion failed.' 'Output Message Cancelled.' space space. IF 1 = 2. MESSAGE S303(me) with 'PDF Conversion failed.'. ENDIF. EXIT. ENDIF. *get email recipients (this is specific to my requirements) select single banfn ernam zuname1 into (lv_banfn, lv_ernam, lv_zuname ) from eban where ebeln = nast-objky. IF SY-SUBRC 0. p_retco = '1'. PERFORM protocol_update USING '303' 'Requisition Data not found.' 'Output Message Cancelled.' space space. IF 1 = 2. MESSAGE S303(me) with 'Requisition Data not found.'. ENDIF. EXIT. ENDIF. 8. Build your OBJPACK and OBJBIN parameters: describe table mail_content lines lin. read table mail_content index lin. mail_data-doc_size = ( lin - 1 ) * 255 + STRLEN( mail_content ). clear objpack-transf_bin. objpack-head_start = 1. objpack-head_num = 0. objpack-body_start = 1. objpack-body_num = lin. objpack-doc_type = 'TXT'. APPEND objpack. describe table outbin lines lin. read table outbin index lin. objpack-doc_size = ( lin - 1 ) * 255 + strlen( outbin ). objpack-transf_bin = 'X'. objpack-head_start = 1. objpack-head_num = 0. objpack-body_start = 1. objpack-body_num = lin. objpack-doc_type = 'PDF'. objpack-obj_name = 'ATTACHMENT'. objpack-obj_descr = l_descr. APPEND objpack. CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1' EXPORTING DOCUMENT_DATA = mail_data PUT_IN_OUTBOX = 'X' TABLES PACKING_LIST = objpack CONTENTS_BIN = outbin CONTENTS_TXT = mail_content RECEIVERS = receivers EXCEPTIONS TOO_MANY_RECEIVERS = 1 DOCUMENT_NOT_SENT = 2 DOCUMENT_TYPE_NOT_EXIST = 3 OPERATION_NO_AUTHORIZATION = 4 PARAMETER_ERROR = 5 X_ERROR = 6 ENQUEUE_ERROR = 7 OTHERS = 8. IF SY-SUBRC 0. p_retco = '1'. PERFORM protocol_update USING '303' 'Send Email function failed.' 'Output Message Cancelled.' space space. IF 1 = 2. MESSAGE S303(me) with 'Send Email function failed.'. ENDIF. EXIT. ENDIF. 9. Call function CLOSE_FORM, and end enhancement
Edited by: Devireddy omkar on Aug 2, 2011 11:15 AM
Edited by: Devireddy omkar on Aug 2, 2011 11:17 AM -
How to send word file as attachment in an email
Hi All,
I have a scenario where the a word document is sent using a file adapter and mail adapter puts it as an attachment and sends it to designated email group.
Now the issue is the attachment that I am getting is text file, but i want it to be a word format file.
Pls advice..
XierHi,
Just give this a shot.
In the file adapter.
Set Additional File(s) .
and follow this document how to send additional file, rules and naming conventions and parameters.
http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm
Itz simple.
<b>Cheers,
*RAJ*</b>
I -
Send the auto mail Attachment using client machine outlook application
Hi all,
we are using the following EBS & Database
Database Server
RDBMS : 11.2.0.3.0
Oracle Applications : 12.1.2
i would like to send the file as a attachment using client machine outlook application.
the(.TXT) file has generated by the concurrent program and stored in the oracle server in specific oracle DB directory path. now my requirement is after generating the file then same file has to send mail to specific mail id using client machine outlook application.can anybody suggest me how to do this
(i tried to send mail using UTL_SMTP.DATA but this standard procedure is allowing the file attachment size up to KB only.)
Thanks in advance.kknr wrote:
Hi all,
we are using the following EBS & Database
Database Server
RDBMS : 11.2.0.3.0
Oracle Applications : 12.1.2
i would like to send the file as a attachment using client machine outlook application.
the(.TXT) file has generated by the concurrent program and stored in the oracle server in specific oracle DB directory path. now my requirement is after generating the file then same file has to send mail to specific mail id using client machine outlook application.can anybody suggest me how to do this
(i tried to send mail using UTL_SMTP.DATA but this standard procedure is allowing the file attachment size up to KB only.)
Thanks in advance.Please see old threads for the same topic/discussion.
https://forums.oracle.com/forums/search.jspa?threadID=&q=Send+AND+Email+AND+Attachment+AND+Concurrent&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
https://forums.oracle.com/forums/search.jspa?threadID=&q=Send+AND+Email+AND+Output+AND+Concurrent&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Thanks,
Hussein -
A user fills out a form, on the action page the values are
inserted into a database. Now I want to send a pdf of the values
that was just submitted as a mail attachment to someone everytime
someone fills out the form, automated of course. I just do not know
how to proceed with creating the mail attachment.
Anyone??I will try this tonight,
thanks
anthony -
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.
Maybe you are looking for
-
Using a hierarchy but also showing work orders that are not in hierarchy
good morning bi people, i have a requirement to show data from a hierarchy which includes Operation and Maintenance information. for example it has an account broken into labour/material/trucking and below this is the pm acivity type and secondary co
-
I have read through threads on changing dpi through batch process, but I can not find answer I am looking for. I have about 200 images I have to convert to 72dpi 1024x768 JPG's from TIF's. I understand that the resolution of 72dpi is not necessary fo
-
when i type any word in address bar, it is search by "speedbit", How i can to change it into google searching ?
-
Please help! All other colors work when I'm using them but nothing happens when I switch to black.
-
Unable to paste any file on External Hard Disk in OS ver 10.9.5
I'm using iMac 2011 model with OS Ver 10.9.5. The sharing and permissions option in the get info in External Hard disk shows "you can only read". Kind suggest how to change it to read & write.