Email attachments content-type
Hi guys,
I have one process that starts with an email agent. When I send an email with a txt file in attachment the email agent set the content-type to "text/plain" but if i send an email with a lst extension file the email agent set the content-type to "application/octet-stream". I need that the email agent set the content-type "text/plain" to the files with lst extensions.
BPEL version 10.1.3.5.
Any idea?
regards
Rodrigo Zuchetto
Edited by: Zuchetto on Feb 11, 2010 3:45 PM
Hi,
we don't found the solution for this problem but a workaround that resolve - temporarily - our problem...
- first we source in different places how to set mimtype content. Unfortunately we don't found were BPEL/SOA take the value to attribute the mimetype of a specific file (we change the mimetype content of operation system - Windows/Linux -, JVM, SOA and others).
- we discover that MailActivationAgent convert unknown file extensions to application/octect content-type.
- with this info, we implemented into our BPEL flow a Java Embeded to re-convert the file content (using this reference: ora:readFile returns strange string
Now we are sourcing for a specific solution: this Java Embeded workaround don't accept setting a different charset. If we have different characters this cause a problem when file are re-converted. But, for now, this workaround resolve our problem.
Regs,
EduardoC
Similar Messages
-
How to add [Thunderbird] Attachments content type action to list
Thunderbird, Linux. Attachments. There is only one entry: Microsoft word documents. I want to add
other attachment types, like .jpg (open with Gwenview) and so on, but I don't know how to add anything
to the list.
When I snapped on the "Post Question" box below this, it added a "troubleshooter" which was no help whatsoever.
Please just tell me in English how to do this.
Thanx.WPQ2FormCtx.ItemContentTypeId will give the content type ID of the item in each of the forms newform.aspx, ediform.aspx and displayform.aspx. You can also use WPQ2FormCtx.ItemContentTypeName, if you want to compare name instead of Id. Here is a JQuery
code to hide fields in the forms:
<script type="text/javascript">
jQuery(document).ready(function($) {
if(WPQ2FormCtx.ItemContentTypeId == '0x010400C36D463A4788AD4AAF5F85C02DA29F8E') {
$("h3.ms-standardheader:contains('Body')").closest("tr").hide();
</script>
Note that this script assumes the JQuery is already referenced in the site. You can place above code in Script Editor web part in each of the forms.
Also, beware that this way you can hide the field from UI, but user can still open the page source and find the actual information in the hidden field.
If the requirement is to completely hide the field data then you will need to set the field properties like showInEditForm, showInDisplayForm and showInNewForm
Nadeem Yousuf -
Can I create an email message content type?
Just want to be able to select me email message from the New Document drop down in the library.
It doesn't work.
So I tried a link content type to an email message in a document library and that doesn't work either.
Has anyone got any ideas for this?
Thanks.
MelHi Cameron
I have a library that I like to put email messages into.
But I would like to create an email message that I use all the time. So, I was hoping I could add the message as a content type and have it available in the dropdown from 'New Document', just like other Word doc content types.
It doesn't seem to like this, gives me a message:
So I was hoping there was a work around somehow.
Mel
Mel -
Detecting recepient email address content type
Hello
I'm looking for a solution which will automatically detect recepient email host's content type..I mean HTML or Text. Is it possible to detect from email's domain name? If so, please let me know.
Thankshellian wrote:
Hello
I'm looking for a solution which will automatically detect recepient email host's content type..I mean HTML or Text. Is it possible to detect from email's domain name? If so, please let me know.
ThanksNo, that is impossible. You will need to ask people what kind of mail they prefer, or simply send a multipart/alternative containing both a text/plain and a text/html version of the message. -
How to set Content-Type of attachment?
Does anyone know how I can set the Content-Type of an attachment of an outgoing mail?
I use Apple Mail, and with one correspondent I have this annoying problem that he never receives any excel or word attachments that I send (and possibly other ones, too).
Our support now says that I should try to set the Content-Type
of the excel attachments to "Content-Type: application/vnd.ms-excel".
Apple Mail seems to set it to
"Content-Type: application/octet-stream"
and they think that attachments with this content-type might get blocked by the mail server of my correspondent.
Any suggestions, ideas, etc., will be appreciated.
Best regards,
Gabriel.Thanks a lot for your test.
Unfortunately, I get
Content-Type: application/octet-stream;
when I try to send an excel attachment to myself.
Below is the beginning of the email (in "source" format).
Any ideas why you get the correct mime-type, but I don't?
Regards,
Gabriel.
---------- beginning of email
Return-Path: <[email protected]>
Received: from [80.128.100.143] (account xxxxxxx HELO [192.168.2.100])
by tu-clausthal.de (CommuniGate Pro SMTP 5.2.4)
with ESMTPSA id 35503032 for [email protected]; Mon, 30 Jun 2008 21:59:05 +0200
Message-Id: <[email protected]>
From: Gabriel Zachmann <[email protected]>
To: Gabriel Zachmann <[email protected]>
Content-Type: multipart/signed; boundary=Apple-Mail-13-325543015; micalg=sha1; protocol="application/pkcs7-signature"
Mime-Version: 1.0 (Apple Message framework v924)
Subject: test
Date: Mon, 30 Jun 2008 21:59:04 +0200
X-Mailer: Apple Mail (2.924)
--Apple-Mail-13-325543015
Content-Type: multipart/mixed;
boundary=Apple-Mail-12-325542957
--Apple-Mail-12-325542957
Content-Disposition: attachment;
filename="Kostenabfrage AVILUS Gesamtinklusive_TPxyz 080606.xls"
Content-Type: application/octet-stream;
x-mac-creator=5843454C;
x-unix-mode=0644;
x-mac-type=584C5338;
name="Gesamt.xls"
Content-Transfer-Encoding: base64 -
Parsing email attachments using Javamail
Hi All,
I'm working on a multimedia application where I have to parse emails using Javamail.
Here is a problem that i'm facing.
When i'm receiving an attachment from icloud.com, i'm not able to get the filename whereas i'm able to get the fileSize and fileContent.
I'm using Part.getFileName() to get the file name. and Part.getFileSize() and Part.getInputStream() to get size and the content.
When i checked the attachment header, I could see the name encoded in ISO-8859-1.
--Boundary_(ID_kS5Ng+OB35IVBfC+scPoMA)
Content-id:[email protected]
Content-type:image/jpeg;
name*1*=utf-8"%20%32%33%30%32%32%30%31%33%37%32%35;
name*2*=%2E%6A%70%67
Content-transfer-encoding:BASE64
Content-disposition:inline;
filename*1*=utf-8"%20%32%33%30%32%32%%30%32%33%37%32%35
filename*2*=%2E%6A%70%67
In both the cases above, Part.getFileName() is returning null.
I set the parameter mail.mime.decodeparameters="true".Still it is not working.
It would be great if someone can suggest a solution for this.
Thanks
ShyamaJust adding to the problem description:
--Boundary_(ID_kzWHPgILjZtH2UtdriatGg)
Content-id: <[email protected]>
Content-type: image/jpeg; name*1*=ISO-8859-1''%32%2E%6A%70%67
Content-transfer-encoding: BASE64
Content-disposition: inline; filename*1*=ISO-8859-1''%32%2E%6A%70%67
This is the header which could see in another mail. -
I am losing my carriage returns when sending emails using the Internet email vi's.
All carriage returns are stripped out and I get one long word wrapped paragraph.
I want to avoid html.
Ideally, using the vi's for rich text would be perfect, but a simple text message with carriage returns and line feeds in any font ok.
uses SMTP Email MIME Text Content-Type.vi
i have tried text/plain, text/html, and mixed yada somethingYou need to use Line feed constant and then use concatenate function.See the screen shot.
Naqqash
Attachments:
Using Line feed.png 15 KB -
Issue in storing email & attachments in to content repository server.
Hi All,
We have done the following for storing email & attachments in to
content repository server.
Transaction - Activity done
1) OAC0 - Defined the content repository folder RQ
2) OACT - Created a category( ZSOFFHTTP1) and associated it to RQ
3) SKPR08 - Associated ZSOFFHTTP1 to SAP OFFICE Class SOFFPHIO
Also, updated the entry in the table SDOKPHCL against the record having
Docuclass value as SOFFPHIO and change the category value to ZSOFFHTTP1.
Now, we went to transaction SBWP and created a test message and sent
an email to ( recepient address) and recip type as
interent address.
But when we cross checked the entry in SOOD table for this email sent
today, we find that the value in the field is 'K' and not "A".
We have done all the steps as per the SAP Note 530792 still the issue
persists.
As per the sap note 904711,SOOD-EXTCT Storage <space> directly in table
SOC3
K using the KPRO
A in an archive
Any help on this , would be highly appreciated.
Thanks & regards,
Divya
DivyaThanks for the answer, but my question was whether it is possible to store documents to an external content server using transaction OAOR (Business Document Navigator). Right now it is only possible to store documents to the R3 database with OAOR.
Regards
Thomas Hørlyck -
I access an email account at the site below which provides Microsoft Outlook Web access. Since the last Firefox update to version 8.0, the true name/type of email attachments that I download is changed to attachment.ashx (or attachment1.ashx etc if there are several downloaded files. This is very inconvenient. Note that the problem does not exist when downloading attachments from aol.com. There is also no problem when I use IE as browser. Version/system details below are correct.
Outlook Web Access sends an illegal Content-Dispositon header to Firefox. This is no longer allowed in Firefox 8. Firefox 9 will have a workaround for this so that Microsoft has time to fix their software.<br>
See http://support.mozilla.com/nl/questions/895024<br>
https://support.mozilla.com/en-US/search?q=attachement.ashx<br> -
Email: content-type html
Is it possible to send an email with html content from ALSB ? If I set the content-type to 'text/html' in the transport header, the ALSB is overriding it to 'text/plain'.
Any ideas are appreciated.
Thanks.I finally could fix the issue by still using a formula column to store the html text and using the following in my control file (in bold):
<xapi:message id="123" to="${CF_DCRD_CONTACT_EMAIL}" cc="${CP_DCRD_ADMIN_EMAIL}" bcc="[email protected], [email protected]" attachment="true" content-type="text/html"
subject="Datacard Maintenance Agreement Number ${CONTRACT_NUMBER} "> *<content><![CDATA[${CF_FINAL_EMAIL_CONTENT}]]></content>*
</xapi:message>
Hope this would help someone clueless like me :-)
Alka -
Email's content for PO's email output type
hi guys,
I have created new output type for Po's emaling : DEML.
It can send email to the vendor, but how can i include email's content instead of sending email with attachment only ?
pls advice
thanksHi
Go to MN04 and select the Porg/DocType/Vendor; Input vendor number, partner role, medium 7 and timing 1 and click on communication tab. It takes you to "Note to receipient". Add your text there and it will be sent as email bod text. <REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 10, 2008 5:54 PM -
Hi,
I want to send emails in html-format. However, some clents can't decode html, but includes the message as an attachment. In this case I would like to have a text that tells the reciever to open the attachment. I have tried to laborate with Content-type: multipart/mixed, but I haven't managed to get it to work. Someone having an idea about this?As an addition: I'm not totally sure what mail clients will do with it, but maybe you could use a structure like that:
+----- multipart/alternative -------+
| |
| +--- multipart/mixed -----------+ |
| | | |
| | +- text/plain --------------+ | |
| | | save message | | |
| | +- text/html ---------------+ | |
| | | contents | | |
| | +---------------------------+ | |
| | | |
| +----- text/html ---------------+ |
| | contents | |
| +-------------------------------+ |
| |
+-----------------------------------+Regards -
How to set content type while sending an email?
Hello,
I want to set content type text/html while send an email using org.apache.commons.httpclient api. I am using MultipartPostMethod method. and i am set using object of multipartpostmethod like post.
and post.setRequestHeader("Content-Type","text/html").
but it wont work.
so please give me a proper solution.
example::
MultipartPostMethod post = new MultipartPostMethod("url");
post.addParameter("msgbody","html message");
post.setRequestHeader("Content-Type","text/html");
Regards,
Bhavesh KharwaActually, I'm writing a "HashMap" from servlet to applet. I have used your suggested content type "application/octet-stream" and another "appication/x-java-serialized-object" to try it. But in applet side, when I use (HashMap)in.readObject(), it always gives me a exception as:"java.util.HashMap; IllegalAccessException". Why?
Thankd. -
Is it possible to detect recepient email host's content type?
Hello
Is it possible to detect recepient email host's content type...I mean HTML or Text before sending mail to that recepient? Can someone tell me about this?
ThanksIt is not possible.
-
Inbound email - delete attachments/content?
We are using ERMS to process inbound mails. Occasionally, agents will receive unsolicited attachments which we would like (from a legal point of view) to remove from the email.
Is there a standard solution to allow for specific email attachments to be deleted?
BR
Sham HaqueI managed to delete the physical attachment
inbound emails and their attachments are handled by KPRO (Knowledge Provider) - the field SOOD-EXTCT has the value "K" for these entries
KPRO handles storage and access in quite a well documented fashion - if you know where to look!
I found these 2 resources online:
Document Management with KPro - SAP Knowledge Provider (BC-SRV-KPR) - SAP Library
There is a list of FMs including one called SDOK_PHIO_DELETE.
To get the PHIO ID, I followed the guide here:
SAP Content Management - Link between SAP Objects and originals - Product Lifecycle Management - SCN Wiki
I hope this is useful for someone else - and gives us a starting point for creating a custom report
Maybe you are looking for
-
I am having troble installing Itunes 11.1.1. I get erro message 2502 and 2503. Any help?
-
SQL Injection with CF7 and MS SQL 2005
I looked through a bunch of SQL injection posts and couldn't find a definitive answer to this... Let me introduce this by saying that I know I should be using CFQUERYPARAM with EVERY CF variable in a CFQUERY tag. No excuses. But for a necessary quick
-
Business objects - Voyager - Filter / conditions
Post Author: Naga CA Forum: Olap Hi i am creating report from cube using business objects voyager. i have some doubts on Voyager report generation. how to handle custom filter on voyager it means when we refresh the voyager report it will ask prompt
-
Hi there... I am getting the above mentioned error with the Description: dows-DistributedCOM cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or rep
-
Discount not required for a particular line item in PO
Hi All, There is one requirement wherein PO contains 500 line items, in which discount should not be applicable to a particular line item , whereas all the other line items should consist of discount. Making a separate PO for that particular line