Html email rendering as attachment

I'm a developer sending out an html email. Web clients like Yahoo, Gmail, Hotmail render the email inline as expected, as do desktop email clients. But for one recipient, Sun Java System Messenger Express renders the html as an attachment. There is not boundary etc. like you would use for multipart mail or attachments, so what could be triggering this? The recipient can receive other similar html newsletters just fine. The html is relatively simple tables with images and some formatted text. The mail is being sent via php's mail function (sendmail).
Thanks,
a

amchargue wrote:
I'm a developer sending out an html email. Web clients like Yahoo, Gmail, Hotmail render the email inline as expected, as do desktop email clients. But for one recipient, Sun Java System Messenger Express renders the html as an attachment. There is not boundary etc. like you would use for multipart mail or attachments, so what could be triggering this?You need to provide a sample email that is causing the problem, including all outer email headers.
I should also point out that Messenger Express is a deprecated client (i.e. Sun stopped providing fixes for this client a long time ago) and was replaced by UWC/Communications Express which has in turn been replaced by Convergence.
Regards,
Shane.

Similar Messages

  • Html email with blob attachment and authentication

    I have been looking for a plsql package to send html emails with blob attachments. The html portion and the blob attachment are more than 32k.
    Also the email server needs to be authenticated.
    Does anyone know of something already written to do this? I’ve found lots of code that does one or two items but not all.
    Must:
    - Authenticate
    - Html email
    - Accept blob as input parameter for attachment
    - Exceed 32k
    There are so many routines, I’ve been searching looking for one which does all.

    This works for authentication:
    utl_smtp.command(l_mail_conn, 'AUTH LOGIN' );
    utl_smtp.command(l_mail_conn,utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.cast_to_raw ( v_username ))));
    utl_smtp.command(l_mail_conn,utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.cast_to_raw ( v_password ))));

  • HTML emails with attachments

    When I compose an html email (ie: using the float left alignment on a picture) and add an attachment(word doc), the formatting is lost on the recipient's end. In fact usually, the body of the message is blank and the pictures, html file, and original attachment all show up as attachments. I'm wondering if this is an undocumented limitation of Mail or if I'm doing something wrong. I know that when you compose a mail using stationery you can't add any attachments.
    The formatting isn't even correct in Mail's sent folder (show up as rich text similar to Mail 2's formatting). Is anyone out there able to send an html email with an attachment?
    ~Ryan

    It looks like there is an actual RFC for HTML e-mail. It is a bit more "standard" than I thought. When I looked at the raw messages last night, they didn't look like other HTML MIME messages I had worked with in the past. If I can provide that Apple Mail doesn't conform to this RFC, I will update the bug report with the details. In the past, Apple has been very good with e-mail standards - years ahead of everyone else. I certainly hope the format of the message is correct and it is just a display problem.

  • How to get rendered JSF page (send it as HTML email)

    Hello,
    I would like to send notification email in my application. Could you please help me to find a way how to get HTML result of JSF page as string-file-stream. Simply anything I could handle and use it as email body or attachment.
    My use case: User click to button (raise a action) which change something in DB and confirmation.xhtml(.jsf) is shown to him to confirm that this action was succesful. And I would like to send notification email to all other users with this page (simplified version).
    I need a something like String getJsfPage(String url) but I could not find anything in JSF API.
    Thanks for any clue.

    quote gimbal2: +...now write the code to generate the email body...+
    Thanks for reply...
    Is that mean that I could not use already written code (confirmation.xhtml)? The beuty on JSF is that JSF parser take care about CSS styles, EL, templating (ui: ...), ... When anybody (administrators) wants to change how this email looks - just change this XHTML file.
    How should I write email body? I thought about several way but nothing what looks good:
    - I really dont want to use StringBuilder do build HTML.
    - I dont want to write my own parser of .xhtml template (confirmation.xhtml).
    - Write HTML (xml) template and parse it with XSLT transformation seems to me acceptable but complicated. Needs a special library to perform XSLT, complicated template service (future changes)
    - JSP page, more-or-less the same problems like JSF page
    The sad is that this email (html) body is quite small but highly dynamic (css, language of texts, logos...).

  • HTML emails not rendering properly - letters bunched up

    Weirdest thing happening in the last few days.... Most of the HTML emails I receive have not been rendering properly within Mail - the letters appear all bunched up in strange little groups... This only started about a week and a half ago....
    Anyone else seen this phenomenon? If so, is there an easy way to fix it, as it is quite annoying?

    Upon further investigation i figured out what was wrong.
    This property :
    bulletText .fontWeight = "bold";
    was causing my text to not render because bold character weren't used within the symbol associated with the class. By removing that and cleaning up the code a bit ,
    var span : Object = new Object(); 
    span.fontSize = 12; 
    span.color = "#336699";
    css = new StyleSheet();
    css.setStyle( ".bulletText", span );
    sectionText.styleSheet = css;           
    sectionText.htmlText = contentText;
    it rendered semi correctly , except with erronious line breaks , the solution for that was to , remove any instances of "/n" from the contentText string before setting the sectionText , done like this :
    var pattern : RegExp = /\n/g;
    contentText = contentText.replace( pattern , "" );
    now it looks great !

  • HTML Email not rendering correctly

    Hi,
      Since upgrading to Mountain Lion I've noticed that a number of my HTML based incoming emails are not translating correctly - the text is just showing as graphic characters.  None HTML emails are fine - anyone got any ideas?
    Regards
    Neil

    Hi Scott.
    In order to solve your problem with relative links to image and css files inside KM I suggest two variants:
    1. Replace relative links as I mentioned in this message Re: JavaScript and CSS info in WPC.
    2.The second solution is:
    a. Create an blank html file inside KM folder where the base.html file is stored.
    b. Download the newly created file for local editing.
    c. Place an iframe that points to your base html file between <BODY></BODY> tags. Use a following code as an example:
    <iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="base.html"></iframe>
    d. Upload this file back to KM.
    e. Point your KM Document  iView to the created html file.
    Best regards,
    Aliaksandr Zhukau
    Edited by: Aliaksandr Zhukau on Dec 3, 2009 11:04 AM

  • How to Email a remote html file as an attachment

    Hi ,
    I want to mail an html file as an attachment using JAVAMail. I have only the URL of the remote file.How can i do this? Please show me a way.......

    I basically want to send a multipart object as an attachment using java mail.My multipart object contains a remote html file contents and related gifs. I want to send the whole object as attachement so that the user can save it locally and view the html and embedded gifs.this is what i did
    MimeMultipart multipart = new MimeMultipart("related");
    messageBody.setContent(totContent,"text/html");//totContent is the html file contents.
    multipart.addBodyPart(messageBody);
    //loop to embed the gifs
    messageBody.setDataHandler(new DataHandler(new URL(imagepath)));
    messageBody.setHeader("Content-ID", imgName);
    multipart.addBodyPart(messageBody);     
    //loop ends
    i want this multipart to be send as an attachment. Please enlighten me.......this is a bit urgent........

  • How to send an HTML email?

    Hey guys
    For the longest time I've been wanting to send HTML emails with Mail, not for promotional stuff, but more for thanking our clients for their business. This is the perfect holiday season to send a Thank You email to them, but I don't want just to send a plain and boring text email, I want graphics on it. I know this wasn't possible to do with any previous OSX until Tiger. This is what the Mail page says... - HTML Message Composition - Mail uses the Safari engine to format newly composed email using HTML. I read another post about an HTML Script to work with mail but it got so confusing that I wasn't able to make it work. Can anybody tell how to make this work? A step-by-step tutorial would be great, not just for me but for all those Mail users that are trying to do the same thing. If Apple can send those HTML emails and Newsletters, why can't we? I don't think they're using a Windows computer or any other email software to do this. Better not! :P
    This is the post I read, but it was posted a year ago, so I know there's got to be something more up to date.
    http://discussions.apple.com/message.jspa?messageID=667497&ft=y&amp;#667497
    Thanks a lot in advance!

    Hello Luis.
    Although RTF with Tiger Mail is basic HTML, you can't compose complex HTML within the body of a message.
    You can use an HTML composer of choice to include embedded images/graphics and/or objects that are stored on a server (to be downloaded/rendered from the server) when the message is opened by recipients instead of attaching images/graphics to the message.
    After saving the document, you can open the document with Safari to ensure the layout and settings are correct and at the menu bar, choose Edit > Mail Contents of This Page.
    A new Mail.app message will open and the contents of the webpage will be copied to the message and it will be sent in its entirety.

  • Sending HTML email having problem Hotmail

    I am sending a HTML email with embedded images the images are appearing fine in Outlook and Yahoo, but in Hotmail the images are displaying but also showing up as attachments. Has anyone had this problem?
    thanks

    Hi,
    I've had a similar problem. I'm trying to outsource my images and style sheets from our website.
    I add a text part to the email also and this then shows in Hotmail. The HTML part is still ignored. My code is the following...
      private static boolean sendMessage(String[] to, String subject, String message, String from, String[] filelocation) {
        try {
          String recievers = StringWizard.arrayToText(to, ", ");
          System.err.println("Email.sendMessage() : creating a new email for " + to[0] + " from " + from + ".");
          StringBuffer msg = new StringBuffer(message);
          Properties prop = new Properties();
          prop.put("mail.smtp.auth", "true");
          prop.put("mail.transport.protocol", "smtp");
          prop.put("mail.smtp.host", MAIL_HOST);
          Session mail_Session=Session.getInstance(prop, null);
          InternetAddress fromAddress = new InternetAddress(from);
          InternetAddress toAddress[] = new InternetAddress[to.length];
          for(int i=0;i<to.length;i++) toAddress[i] = new InternetAddress(to);
    InternetAddress[] reply = { fromAddress };
    MimeMessage myMessage = new MimeMessage(mail_Session);
    myMessage.setFrom(fromAddress);
    myMessage.setReplyTo(reply);
    for(int i=0;i<to.length;i++) myMessage.addRecipient(Message.RecipientType.TO, toAddress[i]);
    myMessage.setSentDate(new java.util.Date());
    myMessage.setSubject(subject);
    Multipart mp = new MimeMultipart();
    // add html as the first part of the email.
    // add html.
    boolean sendHTML = UserHelper.HTMLEmails(to[0]);
    if(sendHTML) {
    System.err.println("Email.sendMessage() : Rendering text/html email to " + recievers);
    MimeBodyPart htmlpart = new MimeBodyPart();
    htmlpart.setContent(StringWizard.stripJavascript(StringWizard.toHTML(msg.toString())), "text/html");
    mp.addBodyPart(htmlpart);
    // add default stuff (text).
    // add text.
    System.err.println("Email.sendMessage() : Rendering text email to " + recievers);
    MimeBodyPart textpart = new MimeBodyPart();
    textpart.setText(msg.toString());
    mp.addBodyPart(textpart);
    // if we are sending any files with this email add them.
    boolean attached = false;
    if(filelocation!=null && filelocation.length>0) {
    for(int i=0;i<filelocation.length;i++) {
    File attachment = new File(filelocation[i]);
    if(attachment.exists() && attachment.isFile() && attachment.canRead()) {
    System.err.println("Email.sendMessage() : Attaching file " + attachment.getAbsolutePath() + " to email bound for " + recievers);
    MimeBodyPart attachfile = new MimeBodyPart();
    FileDataSource fds = new FileDataSource(attachment);
    DataHandler dh = new DataHandler(fds);
    attachfile.setFileName(attachment.getName());
    attachfile.setDisposition(Part.ATTACHMENT);
    attachfile.setDescription("Attached File: " + attachment.getName());
    attachfile.setDataHandler(dh);
    mp.addBodyPart(attachfile);
    attached = true;
    ContentType cttext = new ContentType("text/plain", "iso-8859-1", new ParameterList());
    if(attached==false && !sendHTML) myMessage = addMessageHeaders(myMessage, cttext);
    myMessage.setContent(mp);
    Transport tr = mail_Session.getTransport("smtp");
    tr.connect(MAIL_HOST, USERNAME, PASSWORD);
    int line = 1;
    Enumeration enum = myMessage.getAllHeaderLines();
    while(enum.hasMoreElements() && DEBUG) {
    System.err.println("Email.sendMessage() : HDR" + (line < 10 ? ("0" + line) : (line + "")) + ": " + (String)enum.nextElement());
    line++;
    myMessage.saveChanges();
    tr.sendMessage(myMessage, toAddress);
    tr.close();
    System.err.println("Email.sendMessage() : email sent to " + recievers);
    return true;
    catch(Exception e){
    e.printStackTrace(System.err);
    return false;

  • HTML email and attachments don't work

    I have programmed a simple PHP script to format a web page form response and send an email message as a report to my client as an HTML email, plain text alternate part, and with a small attachment. My client, using Apple Mail on OS X, only sees a plain text dump of the entire email message, headers and all. His mail client shows other people's messages of this sort properly. The hitch is that I can't figure this one out, because the same mails, when sent to other people, are perfect. They display properly in Windows email programs, and other people's Mac-based mail programs, and perfectly on any web mail interfaces I can find (e.g. Horde, etc). Does anybody have any suggestions as to what might be going on in this instance? (My customer has standard Apple Mail running in some recent flavor of Mac OS X).
    Budsy

    There is probably something wrong with your message. Send one to me at info at etresoft dot com and I should be able to tell you what it is.

  • How to send HTML email in Mail?

    Hello All,
    I would like to write an email in HTML, just copy and paste the HTML code into mail, and have it sent as HTML. How do I have mail do this? Thanks!

    You can't do that; or rather, you can, but it won't work. You can view you r HTML file in Safari, then use the 'Mail Contents of This Page' option and Safari will insert the rendered HTML. But if your recipient doesn't have their mail program setup to view HTML email, they won't see whatever it is you're trying to accomplish.
    Mulder

  • How to send html email notification in bpel

    hi gurus,
    i want to send html email notification from bpel.
    before, i already successful send html email with attachment, but when i send an email without attachment, then the body message will turn into a plain text.
    as i check from the email accepted, email with attachment will have a mime type "text/html" but if no attachment then it will be "text/plain"
    from the bpel configuration, by default the mime type already set to "text/html; charset=UTF-8", below is the sample configuration in my bpel process
    [quote]
    <copy>
                                    <from>string('text/html; charset=UTF-8')</from>
                                    <to variable="varNotificationReq"
                                        part="EmailPayload">
                                        <query>ns10:Content/ns10:MimeType</query>
                                    </to>
                                </copy>
    [/quote]
    i think this suppose to be a easy configuration, but i'm not sure whether i miss something in configuration the email process or this is a bugs in bpel.
    environment:
    linux
    jdev 11.1.1.6
    do u guys ever facing a same problem or have a solution to this ? please throw some light.
    thanks
    ===
    update, i found a temporary solutions.
    so i add a attachment from the process design, and then i change it from the source.
    [quote]
    <copy>
                                    <from>
                                        <literal>
                                            <Content xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
                                                <MimeType xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">multipart/alternative</MimeType>
                                                <ContentBody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
                                                    <MultiPart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
                                                        <BodyPart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
                                                            <MimeType xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
                                                            <ContentBody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
                                                            <BodyPartName xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
                                                        </BodyPart>                                            
                                                    </MultiPart>
                                                </ContentBody>
                                            </Content>
                                        </literal>
                                    </from>
                                    <to variable="varNotificationReq"
                                        part="EmailPayload">
                                        <query>ns10:Content</query>
                                    </to>
                                </copy>
    <copy>
                                    <from>string('text/html; charset=UTF-8')</from>
                                    <to variable="varNotificationReq"
                                        part="EmailPayload">
                                        <query>ns10:Content/ns10:ContentBody/ns10:MultiPart/ns10:BodyPart[1]/ns10:MimeType</query>
                                    </to>
                                </copy>
                                <copy>
                                    <from>string('your message')</from>
                                    <to variable="varNotificationReq"
                                        part="EmailPayload">
                                        <query>ns10:Content/ns10:ContentBody/ns10:MultiPart/ns10:BodyPart[1]/ns10:ContentBody</query>
                                    </to>
                                </copy>
    [/quote]
    make sure you put the mime type multipart/alternative into the email payload content. by default, when you add attachment, it will generate mime type multipart mixed automatically.
    if you don't change it to multipart/alternative, your email will show a attachment, but actually your email doesn't contain any attachment.
    and then for the message and mimetype make sure you have that ns10:bodypart, because this email already been set as a multipart email.
    when you add attachment, by default it will generate 2 body part, first one is for the body message and the second one is for the attachment. since i only want to use the body message only, then i have to erase the second bodypart
    with this workaround, i can send a html email without attachment perfectly.
    but i have to take note, when i updating the email process from process design, then the source will be generated again automatically, and the edited one will be replaced.
    thanks.

    Make sure you upload all of the images used in your email to a server you control. Then, change your image paths to point to those uploaded images with absolute links.
    You will get marked as spam if you attempt to send images as attachments to a large list of recipients and most email clients won't download images to begin with, so make sure your html email makes sense with broken pictures.
    CSS support is spotty across email clients, if you use css, make sure it's inline, not embedded in the <head> or externally linked in the <head>. Some email clients strip out the <head> section entirely.
    Basically, you need to design your html email as if you haven't moved out of the 90's yet, as far as web design is concerned, in order to get maximum cross client compatibility.
    Then, when you're ready, I would suggest using a service like www.icontact.com or www.constantcontact.com if your subscriber list is anywhere over 100 or so recipients.

  • PSE9 - having trouble with "html email sender verification" page

    We have just purchased the PSE9. This is our first venture into a photoshop program. We are wanting to send some of our pictures to friends via email. Just after we push the "share" button, to create an attachment for the email, we get this page "html email sender verification." It contains in the first blank, our email address (given), a button "resend email", and a blank entitled " Sender verification."  Below this box are the words:
    "If this email address is not correct, or you would like to use a different e mail client, you can change your email settings by clicking Cancel and then choosing
    Edit ->Preferences->sharing."
    At the bottom right are two buttons, "OK" and "Cancel"
    When we put in our email address into the "Sender verification" box,  and press "OK" the next window is entitled "HTML Email Sender Verification" .  The only words on the page for us are  in red and they say:
    "Your email could not be sent because an unkown error has occurred. Please try again."
    Then we have the option of pushing the "OK" or "Cancel" button.
    Can anyone help us get beyond this obstacle?
    THANKS!!

    You need to enter the email id in preferences. Once you put it, you will receive a verification code. You need to put this verificaiton code in the sender verification window. This is required if you are using Adobe email service. You can change the email provider from sharing preferences.

  • Some HTML Emails Do Not Display Properly

    Recently, some HTML emails do not display properly in Mail. All I see is HTML. Yet, 98% of my HTML emails render properly.
    Any thoughts on why this happens with some emails? Is it a Mail issue or are these emails not coded properly?

    Hello Tony.
    Could be a combination but since Mail renders 98% of of all HTML messages properly (using Safari as the engine), this indicates it is a coding problem.
    I'm not a big fan of using HTML with email since it introduces a number of problems. If everyone used Plain Text for message composition, the majority if not all problems experienced with email would be eliminated.

  • How to send a plain text and HTML email at once?

    Hi all,
    I'm attempting to use cfmailpart to send a HTML and plain text email all in the same cfmail script.  I'm using Outlook and Gmail to test.  I temporarily changed my Outlook settings to "read all standard mail in plain text," but it does not read the plain text cfmailpart of the email, it just attempts to format the text from the HTML email and display the links.  If I remove the HTML cfmailpart from my cfmail script, the plain text version is delivered, but Outlook removes extra line breaks that I actually want to keep intact, and some of the other formatting is improperly rendered.  Is there a better way to make sure email clients hold the plain text formatting (even though there really isn't any formatting with plain text) and a better way to test?  The HTML version looks great in both Gmail and Outlook.
    Thanks!

    Use the wraptext attribute of the cfmailpart tag to add line breaks.

Maybe you are looking for