Mail attachment in jpg file requires photo paper on eprint
Hello,
I am using an HP Photosmart 7510,printer. I have just configured eprint and I tried by sending by eprint a mail with a jpg attachment. The printer requires me to put photo paper into the printer. The problem is that if the attachment is in jpg format, it is not a format but just a scan of a page...
Does somedoby know how to solve this?
Regards
Hello,
Try adding the picture into the email content (Insert > Picture) and not as an attachment.
Say thanks by clicking the Kudos thumb up in the post.
If my post resolve your problem please mark it as an Accepted Solution
Similar Messages
-
How can I attach a jpg file in a mail message as the file icon, not as an opened image in the text?
what's wrong with this picture
-
When I attach a JPG file in my email message and send it to a Windows friend they get the message "The file type being saved or retrieved has been blocked when they try to open it so that they can save it." Anyone know why and how to fix this problem?
Your Windows friend should ask in a Windows forum why his email client won't open attached jpg files. We have no idea what email client he is using or how his Windows security is configured.
-
When saving files from the internet, why doesn't Firefox 'know' to put .jpg files in "Photos" and pdf files in "Documents"? IE always saved photos in the "Photos" file and documents in the "Documents" file. Firefox makes me choose every time. Very annoying.
How about if Firefox is programmed like IE in this ONE thing...
When saving files from internet sources, if the file ends in a typical photo extension such as .jpg, .bmp, .tif etc. it defaults to save it in your PHOTOS folder.
When saving anything like a .doc, .pdf etc. it defaults to save it to your DOCUMENTS.
You could still change it to 'desktop' if that if really where you want all your photos and documents... or some other folder that you decide, but DEFAULTS to the LOGICAL folder.
I have carpal tunnel SO bad that even typing this suggestion is painful and having to make the extra click along with moving the mouse EVERY time I want to save something is painful.
ALSO, I shouldn't need a bunch of ADDONS to accomplish this. I tried downloading one and it did nothing. The problem still exists. -
why Apple doesn't provide .jpg-files for photos with date and our like Blackberry and Samsung?
I have to save photos (for medical use) on my pc and this suffix would be useful to identify them quicker.
Thankshttp://www.learn.usa.canon.com/resources/blogs/2014/20140708_winston_filenames_b log.shtml
-
Mail attachment (.csv) to File (.csv)
Hi mates,
I have a requirement where I have to pick the attachment(.csv format) of an incoming mail and store this file ( in .csv format)onto a file server using a reciever file adapter.
Please suggest how can i go about it ?Jai,
After changing the transfer mode from text to Binary.
The XI system is creating a file but the data inside that file is junk. For e.g :
" "$"#,##0.00_);[Red]("$"#,##0.00) 7 * 2 ("$"* #,##0);_("$"* (#,##0);_("$"* "-"_);_(@_) . ) ) (* #,##0);_(* (#,##0);_(* "-"_);_(@_) ? , : ("$"* #,##0.00);_("$"* (#,##0.00);_("$"* "-"??_);_(@_) 6 + 1 (* #,##0.00);_(* (#,##0.00);_(* "-"??_);_(@_)à õÿ À à õÿ ô À à õÿ ô À à õÿ ô À à õÿ ô À à õÿ ô À à õÿ ô À à õÿ ô À à õÿ ô À à õÿ ô À à õÿ ô À à õÿ ô À à
This looks like when you open a CSV file in a notepad.
Please help how can i format this data so that it lokks like normal comma seperated form. -
Java Mapping: payload as mail attachment and dynamic file name .
Hi,
I have written this piece of java code.
The code includes XPATH for fetching dynamic filename and the copysource( in, out ) to copy the content of payload as mail attchment.
The code seems to work fine, when either of the functionality is implemented.
but when both are implemented together ie parsing for xpath then again parsing to copy payload, then it doesnt executes the latter path i.e the payload is not fetched in the attachment.
public class MailPackage implements StreamTransformation {
public void setParameter(Map map) {
public void execute(InputStream in, OutputStream out)
throws StreamTransformationException {
String mailSubject = "test mail";
String mailSender = "aaaaaaaa";
String mailReceiver = "[email protected]";
String attachmentName = null;
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = null;
factory.setNamespaceAware(false);
factory.setValidating(false);
try {
builder = factory.newDocumentBuilder();
Document doc = null;
doc = builder.parse(in);
String XPATH ="/*/Invoice/InvoiceHeader/InvoiceNumber/text()";
Node fieldValueNode = org.apache.xpath.XPathAPI.selectSingleNode(doc,XPATH);
System.out.print(fieldValueNode);
attachmentName = fieldValueNode.getNodeValue() +".xml";
String boundary = "--";
String mailContent = "This is a sample file";
String CRLF = "\r\n";
// create XML structure of mail package
String output ="<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
+ "<ns:Mail xmlns:ns=\"http://sap.com/xi/XI/Mail/30\">"
+ "<Subject>" + mailSubject + "</Subject>"
+ "<From>" + mailSender + "</From>"
+ "<To>" + mailReceiver + "</To>"
+ "<Content_Type>multipart/mixed; boundary=\"" + boundary + "\"</Content_Type>"
+ "<Content>";
out.write(output.getBytes());
// create the declaration of the MIME parts
//First part
output = "--" + boundary + CRLF
+ "Content-Type: text/plain; charset=UTF-8" + CRLF
+ "Content-Disposition: inline" + CRLF + CRLF
+ mailContent + CRLF
//Second part
+ "--" + boundary + CRLF
+ "Content-Type: application/xml; name=" + attachmentName + CRLF
+ "Content-Disposition: attachment; filename=" + attachmentName + CRLF + CRLF;
out.write(output.getBytes());
//Source is taken as attachment
copySource(in, out);
out.write("</Content></ns:Mail>".getBytes());
} catch (Exception ie) {
throw new StreamTransformationException(ie.getMessage());
protected static void copySource(InputStream in, OutputStream out)throws IOException {
byte[] bbuf = new byte[in.available()];
int bblen = in.read(bbuf);
if (!(bblen < 0)) {
String sbuf = new String(bbuf);
//replace all control characters with escape sequences
sbuf = sbuf.replaceAll("&", "&");
sbuf = sbuf.replaceAll("\"", """);
sbuf = sbuf.replaceAll("'", "'");
sbuf = sbuf.replaceAll("<", "<");
sbuf = sbuf.replaceAll(">", ">");
out.write(sbuf.getBytes());
Povide your suggestions.Hi,
This is the sample o/p that I get by opening the mail attachment using notepad.
<?xml version="1.0" encoding="UTF-8"?>
<InvoiceTransmission><InvoiceTransmissionHeader><InvoiceCreationDate>2008-12-03T00:00:00</InvoiceCreationDate><Version>2.0.2</Version></InvoiceTransmissionHeader><Invoice><InvoiceHeader><CustomerEntityID>LH</CustomerEntityID><IssuingEntityID>009140559</IssuingEntityID><InvoiceNumber>913353669</InvoiceNumber><InvoiceIssueDate>2008-12-03</InvoiceIssueDate><InvoiceType InvoiceTransactionType="OR">INV</InvoiceType><InvoiceDeliveryLocation>aaa</InvoiceDeliveryLocation><TaxInvoiceNumber>Not Applicable</TaxInvoiceNumber><InvoiceCurrencyCode>USD</InvoiceCurrencyCode><InvoiceTotalAmount>517174.63</InvoiceTotalAmount><InvoiceIDDetails InvoiceIDType="BT"><InvoiceIDVATRegistrationNumber>0000000000</InvoiceIDVATRegistrationNumber><InvoiceIDName1>aaaaaaaaaaaaaaa</InvoiceIDName1><InvoiceIDName2>bbbbbbHKG</InvoiceIDName2><InvoiceIDCity>ccccccccc ccccc</InvoiceIDCity><InvoiceIDCountryCode>HK</InvoiceIDCountryCode></InvoiceIDDetails><InvoiceIDDetails InvoiceIDType="II"><InvoiceIDVATRegistrationNumber>0000000000</InvoiceIDVATRegistrationNumber><InvoiceIDName1>eeeeeeee</InvoiceIDName1><InvoiceIDName2>PAY BY WIRE TRANSFER</InvoiceIDName2><InvoiceIDCity>fffffffffffffff, NA</InvoiceIDCity><InvoiceIDCustomField ID="1"><InvoiceIDCustomFieldDescription>Company Registration Number</InvoiceIDCustomFieldDescription><InvoiceIDCustomFieldValue>0000000000</InvoiceIDCustomFieldValue></InvoiceIDCustomField></InvoiceIDDetails></InvoiceHeader><SubInvoiceHeader><InvoiceLine><ItemNumber>001</ItemNumber><ItemQuantity><ItemQuantityType>IN</ItemQuantityType><ItemQuantityFlag>GR</ItemQuantityFlag><ItemQuantityQty>28134.000</ItemQuantityQty><ItemQuantityUOM>USG</ItemQuantityUOM></ItemQuantity><ItemQuantity><ItemQuantityType>DL</ItemQuantityType><ItemQuantityFlag>GR</ItemQuantityFlag><ItemQuantityQty>106498.775</ItemQuantityQty><ItemQuantityUOM>LT</ItemQuantityUOM></ItemQuantity><ItemDeliveryReferenceValue ItemDeliveryReferenceType="DTN">590365</ItemDeliveryReferenceValue><ItemDeliveryReferenceValue ItemDeliveryReferenceType="!
ARN">DAL
CH</ItemDeliveryReferenceValue><ItemDeliveryReferenceValue ItemDeliveryReferenceType="FNO">mmmmmmmmm</ItemDeliveryReferenceValue><ItemDeliveryLocation>pppp</ItemDeliveryLocation><ItemReferenceLocalDate
If you notice the problem is, the undesired "exclamation mark" that gets added in some fields before the actual value.
In the above case.. look at "ItemDeliveryReferenceType="! ARN">DAL"
the exclamation mark before value "ARN is unwanted, which leads to improper XML formation.
Cant figure out why is this coming.
Regards,
Faria Mithani -
How can I create a mail attachment without a file suffix?
Hi,
I'm trying to create anl attachment without a suffix.
Here is my code:
TextPayload attAnlFile = msg.createTextPayload();
attAnlFile.setName("File");
attAnlFile.setContentType("");
attAnlFile.setText("Test");
msg.addAttachment(attAnlFile);
inputModuleData.setPrincipalData(msg);
I get a file named "File.bin", but i need a file, which is only named "File".
Can anyone help me?
Thanks a lot
BR
RalfHi Ralf,
Ref: Receiver Mail Adapter
The attachements are given a .bin extension by default. To change this , the procedure is available in the Mail Adapter FAQ : 856599
Q: Can I choose the name of an attachment in the mail?
A: Yes. Most mail clients use some heuristics based on some MIME headers to derive the name of an attachment. The MIME headers involved in most heuristics are Content-Type, Content-Description, and Content-Disposition. When you create an XI message, the XI payload name is automatically set in the Content-Description. If you want to change or set all of these headers, you can use the MessageTransformBean module (Note 793922) in the adapter framework.
Related questions: How can I set the file name of a mail attachment?
Q: How can I set the file name of a mail attachment?
There are several MIME headers that play a role in how the client retrieves the file name of an attachment. Unfortunately, this behavior differs among various mail clients. The reason for this inconsistent behavior comes from the fact that this mechanism has been extended incrementally. The old way is to use the name parameter in the Content-Type header as specified in RFC1341. For example, you can set the content type of an XML attachment as:
Content-Type: application/xml; name="abc.xml"
RFC1521 discourages the use of this name parameter in anticipation of the new header Content-Disposition, which is defined in RFC1806.
With this Content-Disposition header, you can set the file name as:
Content-Disposition: attachment; filename="abc.xml"
Some clients may show the Content-Description value as the file name. The Content-Description header is typically used to associate some descriptive information to an attachment (RFC1341) as in
Content-Description: my xml file
To avoid potential interpretation problems, it is recommended to combine the use of these headers.
Also, the same note contains all info you wnat on the options of the mail adapter. Take a look at it.
Regards,
Jai Shankar -
Sending mail attachment as XML file
Hi Experts,
I have a XML in an ITAB.
I want to send this data as a mail attachment, any body help, if any one have sample code please send me.
Thanks,
Regards
Venkathi
chk the sample code
REPORT ZMAIL_XLS NO STANDARD PAGE HEADING.
Data for mailing purpose
DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER
LINE.
DATA: OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER
LINE.
DATA: OBJBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER
LINE.
DATA: OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER
LINE.
DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER
LINE.
DATA: DOC_CHNG LIKE SODOCCHGI1.
DATA: TAB_LINES LIKE SY-TABIX.
Data required for preparing XLS type attachment
DATA: V_TABS TYPE X VALUE '09',
V_NEW_LINE TYPE X VALUE '0D'.
START-OF-SELECTION.
Prepare data to send
PERFORM PREPARE_DATA.
Send mail with XLS attachment
PERFORM SEND_MAIL.
*& Form send_mail
form send_mail.
Creation of the document to be sent
DOC_CHNG-OBJ_NAME = 'TEST'.
DOC_CHNG-OBJ_DESCR = 'TEST MAIL WITH XLS
ATTACHMENT'. "mail subject
OBJTXT = 'Test mail with XLS attachment'.
APPEND OBJTXT.
CLEAR OBJTXT.
APPEND OBJTXT.
APPEND OBJTXT.
OBJTXT = 'Please double click the attachment to
verify'.
APPEND OBJTXT.
DESCRIBE TABLE OBJTXT LINES TAB_LINES.
READ TABLE OBJTXT INDEX TAB_LINES.
DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 +
STRLEN( OBJTXT ).
Creation of the entry for the compressed document
CLEAR OBJPACK-TRANSF_BIN.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 0.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'RAW'.
APPEND OBJPACK.
DESCRIBE TABLE OBJBIN LINES TAB_LINES.
OBJHEAD = 'Sample XLS attachement'. "
APPEND OBJHEAD.
Creation of the entry for the compressed attachment
OBJPACK-TRANSF_BIN = 'X'.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 1.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'XLS'.
OBJPACK-OBJ_NAME = 'TEST'.
OBJPACK-OBJ_DESCR = 'Test.XLS'.
OBJPACK-DOC_SIZE = TAB_LINES * 255.
APPEND OBJPACK.
Completing the recipient list
For sending mail to Internet Address
RECLIST-RECEIVER = '[email protected]'.
RECLIST-REC_TYPE = 'U'.
For sending mail to SAP user ID
RECLIST-RECEIVER = 'fing087'.
RECLIST-REC_TYPE = 'B'.
APPEND RECLIST.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_CHNG
PUT_IN_OUTBOX = 'X'
TABLES
PACKING_LIST = OBJPACK
OBJECT_HEADER = OBJHEAD
CONTENTS_BIN = OBJBIN
CONTENTS_TXT = OBJTXT
RECEIVERS = RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
CASE SY-SUBRC.
WHEN 0.
WRITE :/ 'MAIL SENT....'.
WHEN 1.
WRITE :/ 'TOO MANY RECEIVERS'.
WHEN 2.
WRITE :/ 'DOCUMENT NOT SENT'.
WHEN 4.
WRITE :/ 'NO SEND AUTHORIZATION'.
WHEN OTHERS.
WRITE :/ 'ERROR OCCURED WHILE SENDING
MAIL'.
ENDCASE.
endform. " send_mail
*& Form PREPARE_DATA
FORM PREPARE_DATA.
CONCATENATE 'NAME'
'ADDRESS'
'PHONE'
INTO OBJBIN-LINE
SEPARATED BY V_TABS.
APPEND OBJBIN.
CLEAR OBJBIN.
CONCATENATE 'Hajira'
'MIG-2022'
'23025487'
INTO OBJBIN-LINE SEPARATED BY V_TABS.
CONCATENATE V_NEW_LINE OBJBIN-LINE INTO
OBJBIN-LINE .
APPEND OBJBIN.
CLEAR OBJBIN.
CONCATENATE 'Faiz'
'MIG-2022'
'23025487'
INTO OBJBIN-LINE SEPARATED BY V_TABS.
CONCATENATE V_NEW_LINE OBJBIN-LINE INTO
OBJBIN-LINE .
APPEND OBJBIN.
CLEAR OBJBIN.
ENDFORM. " PREPARE_DATA
**reward if helpful
regards,
madhumitha -
TS4022 Is there a way to attach a .JPG "file" as an "external" file?
Sorry, I have a question.
I am working iCloud using a web browswer (Chrome) because I have an "old" computer using Windows XP Pro (Service pack 3). I am sending some mails attaching some "objects", such as PDFs, DOCs, XLSs, etc. and there are OK. (they are attached as an Objects outside the message) but when I am traing to attache JPGs the iCloud is "embedding" the document INSIDE THE MESSAGE, not as an attachement.
Is there a way to do this attachement?
Thanks.Yes.
1) Connect an Ethernet cable from one of the LAN <--> ports on your existing wireless router to the WAN "O" port on the Time Capsule
2) Go through the standard configuration suggested by the setup "wizard"
3) Then manually turn off the wireless function using AirPort Utility -
Screen saver can't recognize .jpg files in photo folder
I just upgraded my iMac G4 (power PC) from OS X 10.1.3 to OS X 10.4.8 and am having a serious problem with my screensaver (I guess serious is a bit blown out of proportion since for me it is a fancy feature to show off family photos). I know where to look to find my own picture files. And thankfully I don't have the problem of not getting the option to choose my own file like I noticed others have had. But when I go to my pictures file in my home, the screen saver just doesn't recognize picture file formats (I've tried .jpg and .pdf). The files are there in the list, they are just listed in grey and not selectable. Thus the screensaver is black and says in white writing that there are no pictures in my file. I'm stumped. Any help would be appreciated. Thanks!
iMac G4 Mac OS X (10.4.8) recently updated from 10.1.3I know you don't select individual photo files for the screen saver, but when I pick a folder (that contains photos recognizable by preview or iphoto) that is in my "photos" file in my home, the screen saver does not recognize that there are any photo files in it. And by the way, downloading new .jpg files from my camera in my new OS X 10.4.8 did not solve the problem. The strange thing is that the "desktop" program can see the files (both old photos that were created in OS X 10.1.3 and my newly created files). Weird and annoying!
-
How can I attach a .jpg file to email? I keep getting error message.
I can attach a document file with no problem. I can attach files and pictures in a different browser. It does not even start the attachment process for a .JPG file and eventually says it failed.
what's wrong with this picture
-
Got E-mail Attachment (.xls Excel file), then import data to Database
Dear All,
I have a project need to do above mention function.
how to do that automatically ?
Database is Oracle 10g running on RH AS 4.0 Linux.
Best regards
borisDear All,
Tks for yr reply first,
My meanings is process it automatically & no need thru client to do that.
i think the solution as below : -
1) partner send e-mail to mailbox with attahcment.
2) software can get a mail then extract attachment & allocation to somewhere folder in db server
3) execute command for import data from file to database.
did u know any solution or third party software can do that ?
best regards
boris -
i am tryng to open the Attached xls file in the mail but i cant save that file in to a specified location also thats my problem please sugest a solution for that
Having the same problem. Click mail, it bounces, a quick flash, then nothing. Also as a side note, Entourage as of this morning will no longer send mail to either of my work accounts, that is why I was trying mail. Also tried several other mail programs and the same result, can receive mails, but not send.
Have reset the router, cable modem, checked that I have the latest MS and Apple software loaded and it is all good. Very strange.
Ron -
JPG files show up as REVERSED (negative) in Mail
When attaching a JPG file to a Mail message, it sometimes shows up in Mail, on my screen --- as a reverse, negative picture.
I always save photos in Photoshop (CS2) as TIF files. This happens ONLY when I did a SAVE AS and saved the photo as JPG. When I do a SAVE FOR WEB it's saved as JPG (but at 72 dpi), and that JPG will show up normal on my screen when attached in Mail.
Back in PS both JPG files will open normal. So it seems like Mail is not fond of JPGs saved in PS. In either cases, the recipient also receives the photo OK, nothing shows up in reverse.
This has been going on for a while now.....*_B I N G O !_*
Yes, it was a CMYK photo.... I loaded it to my Mail window, it looked reversed. I opened it in PS, changed the image mode to RGB, resaved it, loaded it again to my Mail window, now it shows OK....
Thanks, RandyMM! Problem solved indeed....
Maybe you are looking for
-
I recently updated my 2010 iMac 21.5 to MAVERICK. Now I have installed new versions of Pages and Keynote. I have been working on a KEYNOTE presentation that I am modifing for a new presentation at month end, and I can not insert new script. The templ
-
I need immediate help. So here's the situation: Okay so I added an RHCP (Red Hot Chili Peppers) album that is named Greatest Hits on my iPod and I also added an The Offspring album also named Greatest Hits to my iPod and both tracks of the albums gro
-
SAPbobsCOM and C# multithreading
I'm writing a web application which updates objects in SAP BO. It works perfect except it's taking forever to setup the connection to SAP and update the objects. So I thought to create a background thread to handle the update to SAP while the active
-
Problem with Tcode: PT91_ATT : SAP-HR Standard to Zprogram
Hello Experts, I have created the zreport from attendance in HR-payroll ( Tcode: PT91_ATT ). Actually I have copy the whole satandard report code (with Tcode: PT91_ATT ) to my zreport for the customized requirement. Also we have to add in selection p
-
Since upgrade to 22, Firefox hangs opening multiple tabs.
Since upgrading to 22, Firefox hangs or does not respond when loading new tabs and when trying to open toolbar items. This happened IMMEDIATELY after upgrading. Here are all the Windows 7 forced closure reports: Description A problem caused this prog