Attach page content as pdf in email
Thanks for all who answer this thread.
I am using this syntax to send email from a web page....
<cfset subject = "Application Name">
<a
href="mailto:?subject=#urlEncodedFormat(e_subject)#">Email
page</a>
i know, how to create page content in pdf...
How can i attach page content pdf to this mail? is that
possible?.
OR
what is best way to send page content PDF as email.....
user want to type some info in body of email.....
thanks
Use cfsavecontent to generate your page content.
Use cfdocument to create the pdf file
Use cfmail and cfmailparam to send it as an email
attachment.
Similar Messages
-
Getting the page content as pdf file
Hi All,
I have a use case like i need to get the page content as pdf file.
For this i found xsl file and it's config under the following locations
/libs/cq/config/rewriter/pdf/transformer-xslt --config of source
/libs/wcm/core/content/pdf/page2fo.xsl -- xsl file location
For custamising this functionality i copied both confing node and xsl file under "/apps" .In the Config file i changed source to refer xsl file under /apps.But it's not taking config changes.
I have looked into http://cqblueprints.com/xwiki/bin/view/CQ+FAQ/How+can+I+configure+the+ PDF+rewriter
there it's saying like we need to modify the com.day.cq.rewriter.xml.XSLTTransformer class. i am not getting how to modify it.
I need this urgently
Thanks,
Chinna Yadlapalli.This script:
http://indesignsecrets.com/zanelli-releases-multipageimporter-for-importing-both -pdf-and-indd-files.php
answers all your questions.
Peter -
Scanned pdf email attachment - converted to text pdf - file then renamed to specific contents
Hi All,
Im new to the world of programming, So forgive me if this is a stupid request.
I'm wanting to use a mail rule in outlook to call a vba script, to save all attachments from a certain email address. I have successfully done this part. Using the below code:
Public Sub saveAttachtoDisk(itm As Outlook.MailItem)
Dim objAtt As Outlook.Attachment
Dim saveFolder As String
saveFolder = "c:\temp\"
For Each objAtt In itm.Attachments
objAtt.SaveAsFile saveFolder & "\" & objAtt.DisplayName
Set objAtt = Nothing
Next
End Sub
Now my problem is the saved attachment is a scanned pdf (non readable). I'm wanting to convert this into a readable text pdf, then extract certain data from the now readable PDF and use this data to rename the pdf.
Now i've done some reasearch on the subject and I believe adobe SDK has a function to allow this, I was wondering if anyone could give me any pointers or code to achieve what im trying to do here.
Im using windows xp
Adobe Acrobat 6.0 ( I know it's old but its the only licence we own)
Microsoft Outlook 2007
Any help would be GREATLY appreciated.
NickHi Thanks for your reply, please can you confirm which version of adobe acrobat I would need that will work with outlook 2007? Also could you please supply me with pointers and/or the code to make this work with the correct version.
Many Thanks -
Sharing PDF via email in Pages 09
This has not been a problem. However I just upgraded to Yosemite and now I cannot share as PDF via email; no problem with word or pages but this function seems to be lost
Since Apple has retired all Pages applications prior to v5, they have no concern about backwards compatibility, or the effect of new operating systems, or newer applications on those retired applications. There is no guarantee that any point release to Yosemite, or subsequent OS X release would enable Pages ’09 functional continuity. It simply is not an Apple agenda item.
For those who remain attached to Pages ’09, and do not have their documents duplicated in MS Word documents — and backed up — a sudden failure of Pages ’09 would mean opening those Pages ’09 documents in Pages v5, and risk loss of content due to unsupported features. -
Trouble attaching pdf to email
Hi,
I have a pdf file I want to attach to an email. When I try to attach it I get an out of bounds exception. It emails the file but I get an error and the pdf is actually empty. I'm guessing it's not actually adding the pdf, it's just attaching a blank file. Am I right in that I need to use the ByteArrayInputStream to read the file in for attaching? I'm not sure what I'm doing wrong or how to fix the dang thing. Any help would be greatly appreciated!
MimeBodyPart file_part2 = null;
String pdf2Name = "dmtpage2.pdf";
String pdf2Dir = "C:\\\\lib";
System.out.println("Getting page 2: " + pdf2Name);
FileInputStream inFile = new FileInputStream(pdf2Dir + "\\\\" + pdf2Name);
System.out.println("set file to stream");
DataInputStream pdfFile = new DataInputStream (inFile);
System.out.println("set file to stream");
byte[] streamInfo = new byte[pdfFile.available()];
pdfFile.read(streamInfo);
ByteArrayInputStream inputStream = new ByteArrayInputStream(streamInfo);
file_part2 = new MimeBodyPart(new InternetHeaders(), streamInfo);
System.out.println("Size of attachment is: " + streamInfo.length);
file_part2.setDisposition(Part.ATTACHMENT);
file_part2.setHeader("Content-Transfer-Encoding", contentEncoding);
attachmentName = pdf2Name;
if (attachmentName != null) {
file_part2.setFileName(attachmentName);
System.out.println("File name is " + attachmentName);
file_part2.setDescription(attachmentName);
System.out.println("Set description");
mp.addBodyPart(file_part2);
System.out.println("Added page 2");
}Sorry about not formatting the code. I'll re-insert. Thank you so much for replying so quickly :)
It's not throwing an exception now. No errors. It attaches the file but when you try to open it, adobe says it cannot open the file because "the file has been corrupted (for example, it was sent as an email attachment and wasn't properly decoded)".
Why do I even have to open the file? I don't understand why I cannot just point to the file and attach it. From the output it seems like it is getting the file as the attach size isn't 0.
Oh, DrClap I get a compile error if I don't put the 4 slashes.
This is the the server output:
Getting page 2: dmtpage2.pdf
set file to stream
set file to stream
Size of attachment is: 407835
File name is dmtpage2.pdf
Set description
Added page 2
here's the code again
MimeBodyPart file_part2 = null;
String pdf2Name = "dmtpage2.pdf";
String pdf2Dir = "C:\\\\usco-dir\\\\lib";
System.out.println("Getting page 2: " + pdf2Name);
FileInputStream inFile = new FileInputStream(pdf2Dir + "\\\\" + pdf2Name);
System.out.println("set file to stream");
DataInputStream pdfFile = new DataInputStream (inFile);
System.out.println("set file to stream");
byte[] streamInfo = new byte[pdfFile.available()];
pdfFile.read(streamInfo);
ByteArrayInputStream inputStream = new ByteArrayInputStream(streamInfo);
file_part2 = new MimeBodyPart(new InternetHeaders(), streamInfo);
System.out.println("Size of attachment is: " + streamInfo.length);
file_part2.setDisposition(Part.ATTACHMENT);
file_part2.setHeader("Content-Transfer-Encoding", contentEncoding);
attachmentName = pdf2Name;
if (attachmentName != null) {
file_part2.setFileName(attachmentName);
System.out.println("File name is " + attachmentName);
file_part2.setDescription(attachmentName);
System.out.println("Set description");
mp.addBodyPart(file_part2);
System.out.println("Added page 2");
} -
Is there a way to create a PDF from outlook e-mail that does not embed the attachment? better, is there a way to convert the e-mail with attachement (not embeded) as pdf pages?
- Problem: I have 1400 e-mails with attachments that need to be converted into pdf and the attachments cannot be embeded.
System: PC Windows 7 using Acrobat X Prof. - Thank you!Hi ,
There is an option of embedding index for faster search while converting email to a PDF .
However I am not sure that will serve your purpose or not .
I would recommend you to get in touch with Microsoft support as well .
Meanwhile I'll work on it and get back to you in case I get a desired solution .
Regards
Sukrit Dhingra -
AR Invoice XMLP Report does not show as pdf in email Attachment
Hi,
I have developed a AR Invoice Report using XMLP. My requirement is to generate the output in pdf and also send the file as an attachment
to the recipient email address with specified subject and body.
I have developed the xmlp report rtf template and the report.rdf such that
After report in report.rdf :
function AfterReport return boolean is
v_conc_request_id NUMBER;
p_email_address VARCHAR2(100);
v_set_layout_option boolean;
BEGIN
v_set_layout_option := fnd_request.add_layout('APPLN SHORT NAME','PROG_SHORT_NAME for report file','EN','US','PDF');
IF (NOT v_set_layout_option) THEN
srw.message( 10001,'Unable to apply template');
ELSE
srw.message( 10001,'template applied');
v_conc_request_id := FND_REQUEST.SUBMIT_REQUEST( application => 'APPLN SHORT NAME',
program => 'PROG_SHORT_NAME for prog file',
description => NULL,
start_time => TO_CHAR(SYSDATE, 'DD-MON-YY HH:MI:SS'),
sub_request => FALSE,
argument1 => :p_email_address,
argument2 => :P_CONC_REQUEST_ID,
argument3 => NULL,
argument4 => NULL .... upto argument100 );
END IF;
commit;
return (TRUE);
SRW.MESSAGE (10001,'CONC REQ ID:' ||v_conc_request_id );
SRW.MESSAGE (10001,'Email Address:' ||p_email_address );
srw.user_exit( 'FND SRWEXIT' );
end;
The FND_REQUEST.SUBMIT_REQUEST will call another Host program which will send an email with the specified Body and Subject.
The report pdf output will be an attachment along with the email.
Issues faced
When I click on the Report Concurrent Program output, I can see the XMLP pdf output, but when the pdf file comes to my email address, it does not open,
because, it is actually an xml file with the extension of pdf.
I am actually picking up the file output from fnd_concurrent_requests. When I check the file it is xml, but in the conc manager it opens as a pdf,
Is there a way by which I can pick up the pdf file and not the xml file. Is there any other location where this pdf file gets stored, which I see in the Conc manager output window, but not in the fnd_concurrent_requests table.
I also notice that the pdf file gets generated in the Conc manager output window, irrespective of whether or not I use the code for
fnd_request.add_layout.
But when I use : fnd_request.add_layout, the Host program ends with a Warning, whereas if I don''t use it, then it completes successfully.
But still the problem of the attachment persists.
Warning
------------- 1) PUBLISH -------------
Beginning post-processing of request 435302 on node NACRTCDELL005 at 31-OCT-2008 11:37:12.
Post-processing of request 435302 failed at 31-OCT-2008 11:37:12 with the error message:
One or more post-processing actions failed. Consult the OPP service log for details.
------------- 2) PRINT -------------
Not printing the output of this request because post-processing failed.
Finished executing request completion options.
Concurrent request completed
Current system time is 31-OCT-2008 11:37:12
Can someone please respond to this issue asap, the requirement is very critical.
Thanks to all1. Bursting: You need to call the standard bursting program in the after report trigger, request id is the parameter,
function AfterReport return boolean is
G_REQUEST_ID number;
begin
G_REQUEST_ID := fnd_request.submit_request('XDO',
'XDOBURSTREP',
'XML Publisher Report Bursting Program',
SYSDATE,
FALSE,
:P_CONC_REQUEST_ID,
NULL,
Null,
Null,
Null,
NULL,
NULL,
NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
COMMIT;
SRW.USER_EXIT('FND SRWEXIT');
return (TRUE);
Exception
when others then return true;
end;
You need to create Bursting control file (.xml) and upload in the data definitions. If you want only one file as attachment, (<xapi:request select="/MODULE1/LIST_G_EMPNO/G_EMPNO"> here reduce the tree length) so only one file will be send as an email.
<?xml version="1.0" encoding="UTF-8"?>
<xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi" type ="bursting">
<xapi:request select="/MODULE1/LIST_G_EMPNO/G_EMPNO">
<xapi:delivery>
<xapi:email id ="123" server="smtp_serverl.net" port="25"
from="[email protected]" reply-to="[email protected]">
<xapi:message id="123" to="[email protected]" cc="" attachment="true"
content-type="text/html" subject="Purchase Order Number: ${EMPNO}">Please
see attached Purchase Order File: ${EMPNO}</xapi:message>
</xapi:email>
</xapi:delivery>
<xapi:document output="PO_${EMPNO}" output-type="pdf" delivery="123">
<xapi:template type="rtf" location="xdo://CUS.TEST_BURST_1.en.US/?getSource=true"
filter=""></xapi:template>
</xapi:document>
</xapi:request>
</xapi:requestset>
2. another way is,
in your after report trigger, call another program. In that program, wait until your original program completes. After it is done, get the path and PDF file name, call your host program, passing the PDF file name as parameter. You need to modify your host program, a bit. -
I have created a email in Fireworks and wanted to make a line of text a hyperlink that would take the viewer to a page on my website. I want to attach the final document to my email and sending it out.
1) design for no wider than 600px (otherwise it may not fit in email clients).
2) Slice up your newsletter design in segments for images and html areas with the slice tool.
3) add the <a href="http://www.yourwebsite.com">my website</a> link in one of the html areas.
4) export as generic html 4 code, and put the images in a separate folder.
5) upload all the images to your website's server in a folder (you cannot embed images in an email newsletter - they must link to externally hosted images).
6) change all the links in your html page to the ones that were loaded up on your server. For example, an image's source link would work out similar to this: <img src="http://www.yourwebsite.com/newsletter/image1.jpg" alt="alternate description of your image">
7) open the newsletter with working external images in Chrome or Firefox. Select the entire page content (ctrl-a), and copy it (ctrl-c).
8) create a new email in your mail client. Place the cursor in the body. Paste the newsletter (ctrl-v).
9) send your newsletter to hundreds of recipients, and get blacklisted by several email servers. Receive warning messages from your own hosting provider not to spam other users' email accounts.
10) realize this is too much of a hassle, and instead opt for a service such as MailChimp.
(The result in (9) depends on whether you sent out your newletter only to acquaintances, or not. But even then you might be warned off.)
Btw, many email clients turn off images in an email by default. You must provide the most important content as html, not as images. -
Unable to attach PDF to email (Outlook for Mac 2011)
We are pushing out software upgrades for CS5 and MS Office 2011 for Mac. We've discoverd that we can't use the Attach to email feature in Acrobat. The spinning rainbow wheel pops up for about a minute, and then Acrobat is non-responsive and we have to force quit. We can still drag and drop an attachment so we have a viable workaround but obviously we'd like to be able to use the automated feature.
All software is up-to-date.
In the preferences panel of Outlook, we have selected Outlook to be the default mail application.
As a sidenote, this feature doesn't work with Acobat X beta either. However, in the beta version of Acrobat X, if we declare Apple's mail application to be the default, it works fine. Unfortunately we use the Office suite as part of our enterprise system, so that's what we need to work with.
Has anyone else experienced this? I've logged a ticket with Adobe but I haven't heard back from them yet.
Thanks for any advise.Take the bhama way
figured out how to make it work. I am using Adobe Acrobat X Pro (mac)
and MS Outlook for Mac 2011.
For those who are interested, this is what I did:
1. Create a folder on desktop to save your pdf¹s files you want to email
to. Mine is named, "PDF to Email"
2. Open Automator, create a "Folder Action"
3. At the top, "Choose Folder", choose your newly created folder on the
desktop
4. Choose the "Rename Finder Items" action from the action list. I chose,
"Don¹t Add" on the add a Copy Finder Items Action menu.
5. On the "Add Date or Time to Finder Item Names" I chose, "Name Single
Item" from the first drop down menu.
6. Click on "Options" at the bottom of that window to select the "Show
this action when the workflow runs" so you can rename your file
something other than the Acrobat default.
7. Choose the "Create New Outlook Mail Message" from the action list and
add it below the "Name Single Item in Finder Item Names"
8. Choose "File>Save As" and give your file a name. Mine is, "PDF to
Email".
9. Close Automator
10. Open Acrobat X Pro.
11. Go to "File>Action Wizard>Create New Action"
12. Here you choose, "Save to>A Folder on my computer"
13. Choose the folder on the desktop that we saved earlier
14. Save the file, with the action name you will remember.
Now when you are in Acrobat X Pro and you want to send that .pdf file via
Outlook for Mac 2011, follow the steps below.
With the file you want to email open, go to "File>Action Wizard>(Action
you created) Mine is "PDF to Email". It will take a few seconds, but you
will get an "Action Completed". You will get a pop up that allows you to
name/rename the file. Then it should open your Outlook with your .pdf
attached and ready for sending.
You might need to tweak the actions to suit your needs, but this should
work for you.
De: DaveGrif <[email protected]>
Responder a: <[email protected]>
Fecha: Mon, 05 Dec 2011 15:56:02 -0700
Para: Eugenio Soberon <[email protected]>
Asunto: unable to attach PDF to email (Outlook for Mac
2011)
Re: unable to attach PDF to email (Outlook for Mac 2011)
created by DaveGrif <http://forums.adobe.com/people/DaveGrif> in Acrobat
Macintosh - View the full discussion
<http://forums.adobe.com/message/4065409#4065409>
It's supposed to work now? I've made sure I'm on latest (check for update)
and it says I am. Still get an error. It does bring Outlook to the
forground, but same error when I hide Outlook - An error occurred while
trying to create a mail document. Suggestions?
Replies to this message go to everyone subscribed to this thread, not
directly to the person who posted the message. To post a reply, either reply
to this email or visit the message page:
http://forums.adobe.com/message/4065409#4065409 To unsubscribe from this
thread, please visit the message page at
http://forums.adobe.com/message/4065409#4065409. In the Actions box on the
right, click the Stop Email Notifications link. Start a new discussion in
Acrobat Macintosh by email
<mailto:[email protected].co
m> or at Adobe Forums
<http://forums.adobe.com/choose-container!input.jspa?contentType=1&container
Type=14&container=3399> For more information about maintaining your forum
email notifications please go to
http://forums.adobe.com/message/2936746#2936746. -
Use PHP to convert html page to a pdf file for email
I want to use my php scripts to send an email (with a pdf attachment) of the web page that is being viewed.
My problem I have no way to convert the html page to a pdf file without the end user being prompted to (1) naming the file (2) saving it
Is there a program or a way i can save the html as "auto_name.pdf" file on the server without user input?
I have Adobe Acrobat 6.0 Professional on serverThere are lots of good Html to Pdf conversion tools for developers, both free and paid. I'd suggest to take a look at PD4ML Html to Pdf converter - it has lots of features (CSS support, page layout presets, etc.) and can be obtained for free for non commercial usage. There is also a topic at Stackoverflow with a list of such converters.
-
When I try to email a Safari web page with Mavericks, some times it does not allow me to send the actual page and its contents. Instead it offers
you to email as a web page, link or PDF file. However, when you send the page, the images do not show up in the email.Hi,
You can try to right-click on the page and '''Send Link'''.
You can also install [https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/?src=search Addon Compatibility Reporter] and try to '''Enable''' the said extension in '''Tools''' ('''Alt''' + '''T''') > '''Addons'''. Hopefully this will restore at least partial functionality. You may also be able to find alternatives via the search box on the top right of the Addons page, or [https://addons.mozilla.org/ AMO]. -
Send SharePoint Page content as Email
Hi All,
I have create the SharePoint Page with content editor webpart.
I add some tables with contents. And I want to send the content of this page to participant's email. (the page content not the url of the page)
Is there any way to serve this requirements?
Best Regards,
AndyWhy dont you save it as PDF and send it accross
http://social.technet.microsoft.com/Forums/en-US/5f1c6fa1-5829-4ee5-a488-53e307e6f298/save-sharepoint-aspx-page-into-pdf?forum=sharepointdevelopmentprevious
http://sharepoint.stackexchange.com/questions/81363/how-to-save-the-webpage-data-as-pdf-using-javascript
You can create an user control with three button images (for Pdf, Print and Mail). On the click event of the button image (pdf) you can write the following code to read html stream of the page, convert it into open XML and then use the following snippet
to convert OpenXml it into pdf files
//Variables used by the sample code.
ConversionJobSettings jobSettings;
ConversionJob pdfConversion;
string wordFile;
string pdfFile;
// Initialize the conversion settings.
jobSettings = new ConversionJobSettings();
jobSettings.OutputFormat = SaveFormat.PDF;
// Create the conversion job using the settings.
pdfConversion =
new ConversionJob("Word Automation Services", jobSettings);
// Set the credentials to use when running the conversion job.
pdfConversion.UserToken = properties.Web.CurrentUser.UserToken; -
Can JSF page content convert to PDF?
I want to develop a jsf page that when user click a button can display a pdf file that contain the jsf page content. I know using iText can generate pdf but what i read the example in the iText homepage all is like adding the line by line using document.add() or paragragh , anyway can do it ?
I adding this code in a servlet
Document document = new Document();
document.setPageSize(PageSize.A4.rotate());
OutputStream out1 = response.getOutputStream();
response.addHeader("Content-Type", "application/pdf");
response.addHeader("Content-Disposition", "attachment; filename=\"Test.pdf\"");
try {
URL yahoo = new URL("http://localhost:8080/Test/HelloWorld.faces");
URLConnection yc = yahoo.openConnection();
BufferedReader in = new BufferedReader(
new InputStreamReader(
yc.getInputStream()));
PdfWriter.getInstance(document, out1);
HtmlParser.parse(document, yc.getInputStream());
catch (Exception e) {
System.out.println("error="+e);
e.printStackTrace();
But i save the file, the file canot open the error message is either not a supported file or file damaged -
When I attach certain PDF files to an email, sometimes the first page is viewable in the email. How do I eliminate this?
You can't. That is a preference for the users email.
You CAN Zip the file first if it's really that much of a concern. -
Problem with pdf as email attachment
Hi All,
when i am opening the pdf file(email attachment), getting the error "file type not support or content conversion....."
the peice of code is as followed...
IF p_email = 'X'.
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
EXPORTING
rqident = mi_rqident (spool number)
TABLES
buffer = l_contents.
IF l_contents IS NOT INITIAL.
CALL FUNCTION 'SO_SOLITAB_TO_SOLIXTAB'
EXPORTING
ip_solitab = l_contents
IMPORTING
ep_solixtab = contents_hex.
Create the send request
TRY.
l_send_request = cl_bcs=>create_persistent( ).
Create the main document
l_doc = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = l_text
i_subject = p_sub ).
Add attachment to document
l_doc->add_attachment( i_attachment_type = 'PDF'
i_attachment_subject = p_doc
i_att_content_text = contents_text ).
i_att_content_hex = contents_hex ).
Add document to send request
l_send_request->set_document( l_doc ).
Add recipients to send request
l_recipient = cl_cam_address_bcs=>create_internet_address(
p_email1-low ).
l_send_request->add_recipient( i_recipient = l_recipient ).
Send email
l_sent_all = l_send_request->send( ).
and other way also i tried, please let me know the solution.
thanks in advancetry this code ..
For mailing(converting data to char 255)
IF ch2 EQ 'X'.
DATA sub TYPE string.
CALL FUNCTION 'QCE1_CONVERT'
TABLES
t_source_tab = i_tline
t_target_tab = so_ali[]
EXCEPTIONS
convert_not_possible = 1
OTHERS = 2.
Mail Contents
refresh objtxt[].
objtxt = space.
APPEND objtxt.
objtxt = 'Dear Sir/Madam,'.
APPEND objtxt.
objtxt = space.
APPEND objtxt.
CLEAR : sub.
CONCATENATE 'Sub: Dispatch Details - Invoice Number :' invno '.' INTO sub SEPARATED BY space.
objtxt = sub.
APPEND objtxt.
objtxt = space.
APPEND objtxt.
objtxt = 'We have dispatched the subject consignment from our factory, and'.
APPEND objtxt.
objtxt = 'enclose the Invoice(pdf file) for your kind reference.'.
APPEND objtxt.
objtxt = space.
APPEND objtxt.
objtxt = space.
APPEND objtxt.
objtxt = 'Note: Please cover insurance on all risks in case INCO TERMS as "EXW, FCA, FOB, CFR"'.
APPEND objtxt.
objtxt = 'in the subject consignment.'.
APPEND objtxt.
objtxt = space.
APPEND objtxt.
objtxt = space.
APPEND objtxt.
objtxt = 'For Delivery Management - International,'.
APPEND objtxt.
objtxt = 'Pricol Limited,'.
APPEND objtxt.
objtxt = 'Coimbatore. India.'.
APPEND objtxt.
objtxt = space.
APPEND objtxt.
objtxt = space.
APPEND objtxt.
Determining the Email Ids of Mail Receivers
PERFORM fetch_mailids.
objtxt = 'Copy to :'.
APPEND objtxt.
LOOP AT reclist.
objtxt = reclist-receiver.
APPEND objtxt.
ENDLOOP.
objtxt = space.
APPEND objtxt.
objtxt = '<This is system generated message>.'.
APPEND objtxt.
objtxt = space.
APPEND objtxt.
Mail Body of message over.
DESCRIBE TABLE objtxt[] LINES v_lines_txt.
CONCATENATE 'Inv.' invno INTO sub SEPARATED BY space.
doc_chng-obj_name = sub.
doc_chng-expiry_dat = sy-datum + 10.
Mail Subject
refresh objpack[].
CONCATENATE 'Pricol Dispatch - Invoice' invno '- Reg.' INTO sub SEPARATED BY space.
doc_chng-obj_descr = sub.
doc_chng-sensitivty = 'F'.
doc_chng-doc_size = v_lines_txt * 255.
objpack-transf_bin = ' '.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = v_lines_txt.
objpack-doc_type = 'RAW'.
APPEND objpack.
*PDF Attachment
DESCRIBE TABLE so_ali[] LINES lineno.
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 1.
objpack-body_start = 1.
objpack-doc_size = lineno * 255 .
objpack-body_num = lineno.
objpack-doc_type = 'PDF'.
objpack-obj_name = 'INVOICE'.
objpack-obj_descr = 'Invoice'.
objpack-obj_langu = 'E'.
APPEND objpack.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = doc_chng
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = objpack
contents_txt = objtxt[]
contents_bin = so_ali[]
*contents_hex = so_ali[]
receivers = reclist[]
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.
PERFORM mail.
MESSAGE 'Mail sent successfully' TYPE 'S'.
*SUBMIT RSCONN01 WITH MODE = MODE.
ENDIF.
ENDIF.
ENDLOOP.
Maybe you are looking for
-
Calling adobe form from Web Dynpro ABAP
Hi Friends, This is the following error, which i got when i tested my application. Calling adobe form from Web Dynpro ABAP. WebDynpro Exception: ADS: Request start time: Tue Nov 16 14:00:22 YEKT 2010(200,101).
-
Please show me how to make a java box pop up and display information!
Hey people, Im trying to design an organiser in java using netbeans for a project. Iv made the initial GUI which is a box that loads up and it has my logo on it and below that a lable saying Personal Information. It has a View button next to it (iv n
-
Login screen not animating properly
Hi. On the start-up screen (log-in) when the apple logo moves up to reveal the log-in account, the animation is stuttering and leaving parts of the logo as it moves... then when you click on the account and it moves to the centre, the same thing happ
-
RADIO APPLICATION compatible with on BB (BES)
Dear, Regarding : RADIO APP (to listen to FM radio stations) compatible with on BB (BES) I would like to download and make use of a compatible RADIO (to listen to the radio) application on BlackBerry curve that is compatible with BlackBerry Enterpris
-
Sort Key In Vendor Master not working
Hi, I have selected the sort key 010 (Purchase Order No.) in vendor master but the PO no is not getting updating in Assignment field in Vendor line itmes. When check vendor line itmes in FBL1N Assignment filed shows as blank only. Can any one advice