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

Similar Messages

  • Help with email content type HTML

    Hi,
    Following is my control file code for sending the email message (just putting the delivery part, and not the while content from control file):
    <xapi:delivery>
    <xapi:email server="${DCRD_SMTP_HOST}" port="${DCRD_SMTP_PORT}"
    from="${CP_DCRD_ADMIN_EMAIL}"
         reply-to="${CP_DCRD_ADMIN_EMAIL}">
    <!-- Set the id for the delivery method -->
    <xapi:message id="123" to="${CF_DCRD_CONTACT_EMAIL}" cc="${CP_DCRD_ADMIN_EMAIL}" bcc="[email protected], [email protected]" attachment="true" content-type="html"
    subject="Datacard Maintenance Agreement Number ${CONTRACT_NUMBER} ">${CF_FINAL_EMAIL_CONTENT}
    </xapi:message>
    </xapi:email>
    </xapi:delivery>
    The formula column CF_FINAL_EMAIL_CONTENT get populated with some html content based on condition. Now, when I get the email, the text from the formula column get printed as is.......with tags and all. It's like I had unformatted plain text email. I need the content to be formatted and I need different content based on a condition. Has anyone done this before?
    Appreciate any help on this.
    Thanks,
    Alka

    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 with HTML (content/type). Is it possible?

    Hello!
    I have this script to send e-mail form my PDF form:
    event.target.submitForm({cURL
    :"mailto: "+ vEmail +"?subject=" + vSubject +"&body=" + vBody,cSubmitAs:"PDF",cCharset:"utf-8"});
    I would like to send e-mail with content/type HTML. Is it possible? When open my Outlook, the message is in format simple text, but I don't want. I want the format HTML.
    Thanks!

    Hello my friend Niall. How are you?
    So, Not is it possible, right?
    I try search on the internet about the function submitform, but I didn't found anything about the HTML. I need this because the user going to put a html table when reply the e-mail for me.
    Thanks.

  • Unable to read email content of type multipart/mixed....

    Hi i have written following code to read text content form the multipart email content type,
    but when i say
    if (content instanceof Multipart){
    System.out.println("############ Content Type is Multipart ############ ");
    messagePart = ((Multipart) content).getBodyPart(0);
    }the flow is not going into the if condition,
    bellow is the detailed code and the output in the console, you can check with the SOPs
    Part messagePart = message;
    content = messagePart.getContent();
    System.out.println("############ : " + content);
    System.out.println("############ START MESSAGE BODY ############");
    System.out.println(content);
    System.out.println("############ END MESSAGE BODY ############");
    if (content instanceof Multipart){
         System.out.println("############ Content Type is Multipart ############ ");
         messagePart = ((Multipart) content).getBodyPart(0);
    String contentType = messagePart.getContentType();
    System.out.println("############ CONTENT TYPE     : " + contentType);
    System.out.println("############ CONTENT TYPE     : " + contentType);
    if (contentType.startsWith("text/plain")) {
         System.out.println("############ Content Type is text/plain ############");
         InputStream is = messagePart.getInputStream();
         BufferedReader reader = new BufferedReader(new InputStreamReader(is));
         String thisLine = reader.readLine();
         while (thisLine != null) {
              actualMsg = actualMsg + thisLine + ".";
              thisLine = reader.readLine();
    System.out.println("############ SMS CONTENT      :" + actualMsg);
    System.out.println("/**********************Passing to E2SConverter********************/");
    And the output for the same
    Stack Trace*** Check for new mails on Mail Server for Processing ***
    ########## Unread Msg Count      : 1
    ########## FROM           : [email protected]
    ########## SUBJECT           : RE: SMS-5000-9969413222-S1221654991804 [T20080917000CS010Z246]
    **************** Checking Subject Line ****************
    ******* GO AHEAD IS TRUE : EMAIL TO SMS CONVERTER *******
    ############ : javax.mail.internet.MimeMultipart@1a2760f
    ############ START MESSAGE BODY ############
    javax.mail.internet.MimeMultipart@1a2760f
    ############ END MESSAGE BODY ############
    ############ CONTENT TYPE     : multipart/mixed; boundary=22902610.1221655198503.JavaMail.javamailuser.localhost
    ############ SMS CONTENT      :
    /**********************Passing to E2SConverter********************/
    Please help me for the same.. its bit urgent...
    Thanks And Regards,
    Amie...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Yes,
    It's going into the if if block, but its giving me ClassCastException
    System.out.println("******* GO AHEAD IS TRUE : EMAIL TO SMS CONVERTER ******* ");
    Part messagePart = message;
    content = messagePart.getContent();
    System.out.println("############ : " + content);
    System.out.println("############ START MESSAGE BODY ############");
    System.out.println(content);
    System.out.println("############ END MESSAGE BODY ############");
    if (messagePart.isMimeType("multipart/*")) {
                   System.out.println("############ Content Type is Multipart ############ ");
                   messagePart = ((Multipart) content).getBodyPart(0); //GIVES EXCEPTION : ClassCastException at this line...
    String contentType = messagePart.getContentType();
    System.out.println("############ CONTENT TYPE     : " + contentType);
    See the Stack Trace..TAconnVect.size()25
    *** Check for new mails on Mail Server for Processing ***
    ########## Unread Msg Count      : 2
    ########## FROM           : [email protected]
    ########## SUBJECT           : SMS-5000-9969413222-S1221713640885 [T200809180003S070]
    ########## FROM           : [email protected]
    ########## SUBJECT           : SMS-5000-9969413222-S1221713740897 [T200809180004S070]
    **************** Checking Subject Line ****************
    ******* GO AHEAD IS TRUE : EMAIL TO SMS CONVERTER *******
    ############ : javax.mail.internet.MimeMultipart@1f7be7b
    ############ START MESSAGE BODY ############
    javax.mail.internet.MimeMultipart@1f7be7b
    ############ END MESSAGE BODY ############
    ############ Content Type is Multipart ############
    java.lang.ClassCastException: javax.mail.internet.MimeMultipart
         at com.interactcrm.SMSConverterClass.PollEmail.CheckEmails(PollEmail.java:327)
         at com.interactcrm.SMSConverterClass.PollEmail.run(PollEmail.java:98)
         at java.util.TimerThread.mainLoop(Unknown Source)
         at java.util.TimerThread.run(Unknown Source)
    - INFO : readMessage Checking for new messages in inbound table of ta database
    TAconnVect.size()25
    TAconnVect.size()25
    and Bellow is the internet header of the mail which i am trying to read.Received: from grameenphone.com ([10.10.29.153]) by neptune.grameenphone.com with Microsoft SMTPSVC(6.0.3790.3959);
         Thu, 18 Sep 2008 10:55:52 +0600
    Date: Thu, 18 Sep 2008 04:55:52 GMT
    From: [email protected]
    Subject: =?us-ascii?B?U01TLTUwMDAtOTk2OTQxMzIyMi1TMTIyMTcxMzc0MDg5NyBbVDIwMDgwOTE4MDAwNFMwNzBd?=
    To: [email protected]
    MIME-Version: 1.0
    Content-Type: multipart/mixed; boundary="20238918.1221131600666.JavaMail.SYSTEM.ipcc-test3"
    Return-Path: [email protected]
    Message-ID: <[email protected]>
    X-OriginalArrivalTime: 18 Sep 2008 04:55:52.0114 (UTC) FILETIME=[D35D2120:01C9194A]
    Edited by: Amie on Sep 18, 2008 10:29 AM
    Edited by: Amie on Sep 18, 2008 10:36 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Document Set default content type

    When defining a document set, you can define what content types can be used in a document set.  If, after uploading a document, the user cancels the properties page, the default content type for the library is assigned to the document (even though the
    document set does not permit the content type).  This is obviously a bug.  There have been several posts on this and it appears 2013 has the bug as well as 2010.
    We are seeking a work around to this bug. 
    Is it possible in in the client object model by placing a CEWP in the editform.aspx to force a content type on the item when the form is loaded?
    The other option is to modifiy the url that opens EditForm.aspx to force the content type.  Unfortunately the link that opens the EditForm.aspx page cannot be modified in the document library.

    Hi Clem_FRB,
    I did a test in my environment and I reproduce this issue.
    As a workaround, I suggest you change the content type or return an error in ItemAdded Event Receiver for document library.
    Here is a similar thread for you reference:
    http://sharepoint.stackexchange.com/questions/21986/document-sets-dont-enforce-allowed-content-types-when-multiple-doc-set-ct-are-a
    More information for your reference:
    http://www.niteenbadgujar.com/2013/05/change-default-content-type.html
    https://social.technet.microsoft.com/Forums/en-US/281fa281-7071-4beb-b275-e3179ce2cc08/how-to-set-default-content-type-in-document-library-using-client-object-model?forum=sharepointdevelopmentprevious
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Zhengyu Guo
    TechNet Community Support

  • E-Mail recevier with Content-Type: multipart/mixed

    Hi All,
    I am working on proxy to Mail scenario, wherein Pi is receiving data from SAP over proxy, creating a csv of the data and sending it to recipient as the email with the attachment.
    The User is saying that he wants the email content type as Multipart MIME format. I have searched on SDN and web, but couldnu2019t find how to implement in PI.Please provide your inputs.
    Thanks in advance,
    Ruchi

    Hi Ruchi,
    You need to use Java Mapping or UDF to create Multipart/Mime
    Check this excellent blog by stefan.
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/6321
    Also check this thread for your solution
    http://forums.sdn.sap.com/message.jspa?tstart=0&messageID=945095

  • Unable to delete same site-level content type - The content type is part of an application feature.

    I have a content type called "XYZ" at a subsite level that I'm trying to delete. I have disassociated all lists (there is only 1 list using content types, which is using a different parent level one now) from this content type but I'm still getting
    this error:
    The content type "XYZ" is part of an application feature.

    Hi,
    Please try to change "IsFromFeature" flag in content database for the particular content type from "1" to "0".
    More information is here:
    http://pranavnk.blogspot.com/2013/10/deleting-orphaned-content-type.html
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Attach a custom content type and set as default for picture library using client object model

    Hi,
    How to associate custom content type to a picture libraray and set it as default using the client object model?
    Thanks

    Hello,
    Here you go:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/b1de0697-0006-4f89-8909-1b94aa18ad89/how-to-reorder-content-types-in-list-with-client-context
    http://www.niteenbadgujar.com/2013/05/change-default-content-type.html
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • I am losing my carriage returns when sending emails. How to keep? uses SMTP Email MIME Text Content-Type.vi

    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 something

    You need to use Line feed constant and then use concatenate function.See the screen shot.
    Naqqash
    Attachments:
    Using Line feed.png ‏15 KB

  • EROR: java.io.IOException: invalid content type for SOAP: TEXT/HTML

    hi group,
    my problem is related to scenario HTML to WebService in which im trying to send a request to a free webservice on internet and retrieving the response back and showing it in my html page.
    scenario in detail:
    i have a html page deployed on my tomcat server at my local m/c. in which im taking a email string and sending it to webservice which checks whether the email string has a valid email format or not and in response, webservice returns a boolean true/false depending on the email string. i want to show this boolean result n my html page.i have configured HTTP adaptor and SOAP adaptor for this and interfaces are scynchronus.
    im able to send my request to webservice and getting the response also...i checked in trace..it shows message request sent and response recieved...here is the trace..
    http://hcl3sap:50000/MessagingSystem/receive/AFW/XI</Trace>
      <Trace level="3" type="T">User = PIISUSER</Trace>
      <Trace level="3" type="T">Cached =</Trace>
      <Trace level="3" type="T">Creating HTTP-client</Trace>
      <Trace level="3" type="T">HTTP-client: creation finished</Trace>
      <Trace level="3" type="T">Security: Basic authentication</Trace>
      <Trace level="3" type="T">Serializing message object...</Trace>
      <Trace level="3" type="T">HTTP-client: sending http-request...</Trace>
      <Trace level="3" type="T">HTTP-client: request sent</Trace>
      <Trace level="3" type="T">HTTP-client: Receiving http-response...</Trace>
      <Trace level="3" type="T">HTTP-client: response received</Trace>
      <Trace level="3" type="T">HTTP-client: checking status code...</Trace>
      <Trace level="3" type="T">HTTP-client: status code = 200</Trace>
      <Trace level="3" type="T">Deserializing message object...</Trace>
      <Trace level="3" type="T">HTTP-client: closing...</Trace>
      </Trace>
    but i get an error java.io.IOException: invalid content type for SOAP: TEXT/HTML after that,
    Does anyone know where im going wrong....
    regrds

    you are very correct..i used SOAP reciever as http://www.webservicex.net/ValidateEmail.asmx?wsdl and SOAP Action as http://www.webservicex.net/IsValidEmail but getting the same error.
    and if you look in the trace above it says that my request actually went to webservice and got a response also (response code 200)  but i think after recieving the message from webservice something is wrong. either mapping is not correct...(but i tested that ..it works fine) or could be my company firewall is prohibiting the message sent by webservice to XI server (i have given proxy settings with password also)...im NOT sure on this ....
    second thing i noticed in moni while examining the trace was....message payload under "Message Branch According to Receiver List " shows this value
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:IsValidEmail xmlns:ns1="http://www.webservicex.net">
      <ns1:Email>samWhgf.com</ns1:Email>
      </ns1:IsValidEmail>
    and then in just next step "Request Message Mapping" payload is 
    <?xml version="1.0" encoding="UTF-8" ?>
    <ns1:IsValidEmail xmlns:ns1="http://www.webservicex.net" />
    i dont know really why payload is getting appended and if it is correct or not? but after this step further payload goes in this appended format only till call adaptor...if this is so i assume my message is going to webservice as
      <?xml version="1.0" encoding="UTF-8" ?>
      <ns1:IsValidEmail xmlns:ns1="http://www.webservicex.net" /> 
    which is not the proper format to be recieved by the webservice without any input value i.e "samWhgf.com"
    im confused on this ..whether this is the route cause or any other...i have been trying to figure out the root cause from some days but still unsuccessful.
    please provide ur valuable inputs.
    regrds
    Sameer

  • Mixed content-type in email

    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 Kharwa

    Actually, 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.

  • Eail content of type html is dependent on which parameters?

    Hi,
    I have to parse email content which is of type html. I have to take the reply message given and put that in database. Sometimes the reply message is put in DIV tags and some times in P tags. I want to know based on what parameters the content of email will change. And what could be the best approach to this problem.
    Thanks for the help in advance.

    If you don't want a negative response, don't create multiple threads on the same topic.
    It'll be pretty hard to create a system that can correctly identify meaningful sections of an email, when the emails are inconsistently formatted. Probably the best thing you could do is parse the email and then write some heuristics to make reasonable guesses. That's a non-trivial task.
    What have you done so far?
    Do you even have a mechanism to invoke the program?

  • Eail (content of type html )parsing?

    Hi,
    I have to parse email content which is of type html. I have to take the reply message given and put that in database. Sometimes the reply message is put in DIV tags and some times in P tags. I want to know based on what parameters the content of email will change. And what could be the best approach to this problem.
    Thanks for the help in advance.

    If you don't want a negative response, don't create multiple threads on the same topic.
    It'll be pretty hard to create a system that can correctly identify meaningful sections of an email, when the emails are inconsistently formatted. Probably the best thing you could do is parse the email and then write some heuristics to make reasonable guesses. That's a non-trivial task.
    What have you done so far?
    Do you even have a mechanism to invoke the program?

  • 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?
    Thanks

    It is not possible.

Maybe you are looking for