Only code in recieved html messages

hi,
when i recieve html messages with mail, some display correct, others are just code. ex:
--=_5b9a6928f167e76571ef059d7b1ca14d
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
test
--=_5b9a6928f167e76571ef059d7b1ca14d
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.=
w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns=3D"http://www.w3.=
org/1999/xhtml" dir=3D"ltr" lang=3D"en"><html><head><meta http-equiv=3D"Con=
there are a lot of threads regarding this problem with the email client "mail", but no solution.
did apple released a patch yet?
thanks

maybe this helps more...
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: (qmail 26064 invoked by uid 0); 5 May 2006 08:34:38 -0000
Received: from unknown (HELO srv94-252.ip-tech.ch) (195.129.94.252)
by blade1-7.iptech.localdomain with AES256-SHA encrypted SMTP; 5 May 2006 08:34:38
-0000
Received: (qmail 12980 invoked by uid 504); 5 May 2006 08:34:38 -0000
Received: from unknown (HELO srv2-2.ip-tech.ch) (10.10.2.100)
by 0 with SMTP; 5 May 2006 08:34:38 -0000
Received: (qmail 14295 invoked by uid 65534); 5 May 2006 08:34:37 -0000
Date: 5 May 2006 08:34:37 -0000
Message-ID: <[email protected]>
To: "martin knecht" <[email protected]>
Subject: test
X-PHP-Script: www.mikrokosmos-music.ch/shop/admin/mail.php for 62.202.75.246
From: "mikrokosmos music" <[email protected]>
MIME-Version: 1.0
X-Mailer: Zen Cart Mailer
Content-Type: multipart/alternative;
boundary="=_59e34596dc5f8135e7c61b0bfb40f7d8"
--=_59e34596dc5f8135e7c61b0bfb40f7d8
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
test
--=_59e34596dc5f8135e7c61b0bfb40f7d8
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.=
i think the header information is ok, entourage and thunderbird do display the message correct...
thanks<br>

Similar Messages

  • TS2755 why can i only send and recieve text messages from other iPhones whith my new iPhone 5?

    why can i only text between other iPhones whith my new iPhone 5?

    Hello i need help! My text are only getting to iphone users and some other people without them but some non iphone users are not getting my text?

  • Send email including the data field into the html message body

    Hi all,
    I would like to send an email to each recipient once only, and including a data field into the html body message. I am not sure how to achive that with my current stored procedure.
    USE [CallManager]
    GO
    /****** Object: StoredProcedure [dbo].[PersonalCallsReminder] Script Date: 08/27/2014 10:26:55 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author: <Author,,Name>
    -- Create date: <Create Date,,>
    -- Description: <Description,,>
    -- =============================================
    ALTER PROCEDURE [dbo].[PersonalCallsReminder]
    AS
    BEGIN
    -- SET NOCOUNT ON added to prevent extra result sets from
    -- interfering with SELECT statements.
    SET NOCOUNT ON;
    -- Email Users
    declare @email varchar(max)
    declare mycursor cursor FAST_FORWARD for
    SELECT dbo.HumersStaffExtension.email
    FROM dbo.Calls_Mobile_Header INNER JOIN
    dbo.HumersStaffExtension ON
    dbo.Calls_Mobile_Header.TelNumber = dbo.HumersStaffExtension.telnr_prv COLLATE SQL_Latin1_General_CP1_CI_AS
    GROUP BY dbo.Calls_Mobile_Header.RecordStatus, dbo.HumersStaffExtension.usr_id, dbo.HumersStaffExtension.email,
    dbo.HumersStaffExtension.res_id
    HAVING (dbo.Calls_Mobile_Header.RecordStatus = N'0') AND (NOT (dbo.HumersStaffExtension.email IS NULL))
    OPEN mycursor;
    FETCH NEXT FROM mycursor
    INTO @email
    WHILE @@FETCH_STATUS = 0
    BEGIN
    EXEC msdb.dbo.sp_send_dbmail
    @profile_name = 'CallsManagement',
    @recipients = @email ,
    @body_format = 'HTML',
    @subject = 'Personal Calls Reminder',
    @body = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>Personal Calls Reminder</title>
    <style type="text/css">
    body {
    font-family: "Times New Roman", Times, serif;
    font-size: 11pt;
    .auto-style1 {
    background-color: #FFFF00;
    </style>
    </head>
    <body>
    <div>
    <table style="width: 800px">
    <tr>
    <td>Dear,<br />
    <br />
    Please review your phone bills and submit your personal calls using the following link:<br />
    <a href="http://companyxyz/personalcalls/">Personal Calls</a></td>
    </tr>
    </table>
    <br/>
    <table style="width: 800px">
    <tr>
    <td><strong>Kindly be informed that the deadline to process new bills is on the
    <span class="auto-style1">15th of each month</span>.</strong></td>
    </tr>
    </table>
    <br/>
    <table style="width: 800px">
    <tr>
    <td>For assistance, please contact <a href="mailto:[email protected]">[email protected]</a></td>
    </tr>
    </table>
    <br/>
    <table style="width: 800px">
    <tr>
    <td><strong>*** This is an automatically generated email, please do not reply ***</strong></td>
    </tr>
    </table>
    </div>
    </body>
    </html>
    FETCH NEXT FROM mycursor
    INTO @email
    END
    CLOSE mycursor;
    DEALLOCATE mycursor;
    END
    Changing the query to the following:
    SELECT TOP (100) PERCENT dbo.HumersStaffExtension.email, dbo.Calls_Mobile_Header.ExtractDate
    FROM dbo.Calls_Mobile_Header INNER JOIN
    dbo.HumersStaffExtension ON
    dbo.Calls_Mobile_Header.TelNumber = dbo.HumersStaffExtension.telnr_prv COLLATE SQL_Latin1_General_CP1_CI_AS
    GROUP BY dbo.Calls_Mobile_Header.RecordStatus, dbo.HumersStaffExtension.usr_id, dbo.HumersStaffExtension.email, dbo.HumersStaffExtension.res_id,
    dbo.Calls_Mobile_Header.ExtractDate
    HAVING (dbo.Calls_Mobile_Header.RecordStatus = N'0') AND (NOT (dbo.HumersStaffExtension.email IS NULL))
    ORDER BY dbo.HumersStaffExtension.email
    Will provide me with the following results:
    email ExtractDate
    [email protected]
    July-2014
    [email protected]
    August-2014
    [email protected]
    July-2014
    [email protected]
    August-2014
    Is it possible to send email to [email protected] once only including in the html message body the ExtractDate field results for July-2014 and August-2014? 
    I appreciate any assist on the issue.
    Thank you in advance.

    Refer the below code highlighted in bold.
    USE [CallManager]
    GO
    /****** Object:  StoredProcedure [dbo].[PersonalCallsReminder]    Script Date: 08/27/2014 10:26:55 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author:  <Author,,Name>
    -- Create date: <Create Date,,>
    -- Description: <Description,,>
    -- =============================================
    ALTER PROCEDURE [dbo].[PersonalCallsReminder]
    AS
    BEGIN
     -- SET NOCOUNT ON added to prevent extra result sets from
     -- interfering with SELECT statements.
     SET NOCOUNT ON;
     -- Email Users
    declare @email varchar(max),@date datetime
    declare @temp table (email varchar(50), extractDate datetime)
    insert into @temp
      SELECT     TOP (100) PERCENT dbo.HumersStaffExtension.email, dbo.Calls_Mobile_Header.ExtractDate
      FROM         dbo.Calls_Mobile_Header INNER JOIN
             dbo.HumersStaffExtension ON
             dbo.Calls_Mobile_Header.TelNumber = dbo.HumersStaffExtension.telnr_prv COLLATE SQL_Latin1_General_CP1_CI_AS
      GROUP BY dbo.Calls_Mobile_Header.RecordStatus, dbo.HumersStaffExtension.usr_id, dbo.HumersStaffExtension.email, dbo.HumersStaffExtension.res_id,
             dbo.Calls_Mobile_Header.ExtractDate
      HAVING      (dbo.Calls_Mobile_Header.RecordStatus = N'0') AND (NOT (dbo.HumersStaffExtension.email IS NULL))
      ORDER BY dbo.HumersStaffExtension.email
    declare mycursor cursor FAST_FORWARD for SELECT DISTINCT email from @temp
    OPEN mycursor;
    FETCH NEXT FROM mycursor
    INTO @email
    WHILE @@FETCH_STATUS = 0
    BEGIN
        DECLARE @date nvarchar(200)
        SELECT @date=Stuff((SELECT ',' + [extractDate]
                  FROM   @temp  where email = @email
                  FOR xml path('')), 1, 1, '')
           EXEC msdb.dbo.sp_send_dbmail
                @profile_name = 'CallsManagement',
                @recipients = @email ,
                @body_format = 'HTML',
                @subject = 'Personal Calls Reminder',
                @body = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>Personal Calls Reminder</title>
    <style type="text/css">
     body {
     font-family: "Times New Roman", Times, serif;
     font-size: 11pt;
    .auto-style1 {
     background-color: #FFFF00;
    </style>
    </head>
    <body>
    <div>Extract Date : ' + @date + '</div>
    <div>
     <table style="width: 800px">
      <tr>
       <td>Dear,<br />
       <br />
       Please review your phone bills and submit your personal calls using the following link:<br />
       <a href="Personal">http://companyxyz/personalcalls/">Personal Calls</a></td>
      </tr>
     </table> 
     <br/>
     <table style="width: 800px">
      <tr>
       <td><strong>Kindly be informed that the deadline to process new bills is on the
       <span class="auto-style1">15th of each month</span>.</strong></td>
      </tr>
     </table>
     <br/>
     <table style="width: 800px">
      <tr>
       <td>For assistance, please contact <a href="[email protected]:[email protected]">[email protected]</a></td>
      </tr>
     </table>
     <br/>
     <table style="width: 800px">
     <tr>
     <td><strong>*** This is an automatically generated email, please do not reply ***</strong></td>
     </tr>
     </table>
    </div>
    </body>
    </html>
          FETCH NEXT FROM mycursor
          INTO @email
    END
    CLOSE mycursor;
    DEALLOCATE mycursor;
    END
    Regards, RSingh

  • My iphone was off for almost two weeks and once i cut it back on i only recieved text messages but no imessages that i KNOW were sent to my phone... is there anyway i can see them or no?

    My iphone was off for almost two weeks and once i cut it back on i only recieved text messages but no imessages that i KNOW were sent to my phone... is there anyway i can see them or no?

    Hi,
    In Messages on the Mac do you have the Preferences > Messages section set to "Save History when Conversations are Closed" ?
    This will store all IMs and iMessages in ~/Library/Messages/Archive.
    Use the Finder > Go Menu > Go to Folder and type that path into the Dialogue box that appears. (~/Library/Messages/Archive).
    They are stored in dated folders so some guessing/trail and error will be needed.
    You may find that if this was an iMessage and you  send the person a new message that the whole History with that Contact since you installed Mountain Lion/Started Messages may appear and that it is scrollable the closer you get to the "top" and the top may keep moving until all is on show.
    10:31 PM      Monday; December 24, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • What can I do my iPhone 5 can not recieve picture messages from text messaging or send messages  . only time I can send picture messages or recieve picture messages through iMessage . What do I do ?

    My iphone 5 that I just got on March 14,2015 will not send or recieve  picture messages through text messaging I can only recieve and send picture messages from  iMessage

    Hi, cymoneW. 
    Thank you for visiting Apple Support Communities. 
    I understand that you are unable to send or receive picture messages via the cellular data network.  I would check to make sure that MMS is enable in settings.  This setting is located in Settings > Messages and MMS Messaging.  If the issue persists, try the troubleshooting steps in the article below. 
    If you can't send or receive messages on your iPhone, iPad, or iPod touch
    -Jason H. 

  • How to recieve JMS id in code which is sending message

    Hi All,
    I am posting JMS messages from my jdeveloper to a topic on server. On server, a JMS id and result of processing (success or failue) is being created for every JMS file that my code is posting.
    Can anyone please tell me how to read this JMS id and result in my existing code of sending JMS messages so that I can update the status of that particular JMS somewhere?

    After sending a message, your sending code can call javax.jms.Message.getJMSMessageID() to obtain the message ID allocated by your JMS provider.
    [http://java.sun.com/javaee/6/docs/api/javax/jms/Message.html#getJMSMessageID%28%29|http://java.sun.com/javaee/6/docs/api/javax/jms/Message.html#getJMSMessageID%28%29]
    Nigel

  • Kmail doesn't correctly redirect html messages

    Hey everyone,
    I would like to redirect an HTML message that comes into my KMail as a MIME email.  In KMail, the original message has two body parts in the bottom pane, one Plain Text and one HTML.  However, when I redirect the message, it puts the Plain Text part as the body part and makes the HTML part an attachment.  Is there a way to perfectly maintain the HTML message when redirecting?  Thanks!

    Sorry if I wasn't clear... the navigation works correctly; I get to the page I'm tyring to get to.  One of the things that page should do is display an image, the I use a URL parameter to build the image file name to retrieve.  The link in the first page is something like <a href="gallery.php?pg=1">.  Works fine if the first page (the one I'm navigating from) is a PHP page, doesn't work (with the same code which is only HTML) if the page is an HTML page.

  • Can receive but cannot compose or forward HTML messages

    Been using TB for years but recently cannot forward or compose HTML messages. I have tweaked every HTML option in preferences and have downloaded and reinstalled. Still does not work. The compose message window does not show the format menu bar any longer. When I try to forward a known HTML message, the forward window shows plain text only [the HTML code is shown].
    I really need to be able to send HTML messages and I am at my wits end.
    Any help would be greatly appreciated.

    Start to write an email. Then select View -> Toolbars -> Formatting Bar. That will get your format bar back.
    In your Address Book, if the contact has 'Prefers to receive messages formatted as Plain Text', then the recipient will get plain text even though the original was HTML.

  • Creating OS X Mail HTML Messages

    Hi all,
    I have a mailing script which I use to send a message to a defined mailing list using AppleScript, AppleWorks and OS X Mail.
    At the moment the outgoing message is created by the script as plain text, but what I'd like it to be is HTML. Any idea how I can set the mail message body to send HTML within the script?
    Help appreciated.
    Ross

    This is to replace the previous post:
    I have been searching for how to create custom HTML emails in Mail, in a way that would work with OS 10.3 and 10.4, so as not to rely on the user having Tiger. After reading through many posts, I came up with a script that creates a new HTML message that you can still edit in Mail itself before sending, and you don't need Safari 2. I'm new to scripting so please let me know if this is useful.
    Jodain
    Part I: defines the HTML code; you can make something in the script itself as long as the string this_html ends up in proper formatting. I actually came up with this primarily for pasting most the html code in the script itself, with a few changing variables. If you do paste or type html code in the script, make sure you use \\ for every \, and \" for every ". If you're using TextEdit to alter the html, use find and replace in that order (\:\\ then ":\").
    Part II: builds a message in Mail with the html content... an undocumented property of a Mail message. However, it only works when visibility is false, so unless you send it right away, the user is not able to still type the recipients and edit the body in Mail as he/she might be used to. Which brings me to...
    Part III: takes the saved draft and opens it up for editing. The open command only lets you view the message, even if it is outgoing, so I had to come up with a work-around so you can still edit as if you're composing it for the first time.
    --Part I
    tell application "Safari" to set this_html to source of document 1
    tell application "Safari" to set this_page to name of document 1
    --Part II
    tell application "Mail"
    activate
    set theMsg to make new outgoing message with properties ¬
    {subject:this_page, html content:this_html & ¬
    return & return, content:""}
    tell theMsg to make new to recipient
    save theMsg
    --Part III
    if not (exists the front message viewer) then make new ¬
    message viewer
    tell front message viewer
    set selected mailboxes to {the drafts mailbox}
    set sort column to date received column
    set sorted ascending to false
    delay 3
    set selected messages to {first message}
    tell application "System Events" to tell process ¬
    "Mail" to keystroke return
    end tell
    end tell

  • When viewed on QHD display, HTML messages are very narrow and zooming doesn't change width.

    I am migrating to a Lenovo Yoga Pro 2 with 3200x1600 13.3" display. I am using ESR17 due to plug-in compatability issues with newer versions (primarily the Funambol plugin for Calendar sync.) I have had to increase the font size to 24 to be able to see the folders and message subjects. I increased the font inside normal text messages using <ctrl><+> but when I view HTML messages, the formatted message body only fills 1/3 of the message pane and using <ctrl><+> only increases the size of the font inside this width resulting in more and more wrapping until single words have to be wrapped.o
    Is this issue fixed in a newer version of Thunderbird? Is there a Calendar sync client for Funambol (OneMediaHub) or Google Calendar that works with the newer version? (I have used Funambol to sync my Calendar with my phone (was BB, now Android) for many years.
    Thanks
    Gerard

    I have DPI set to 200. Most of Thunderbird 17 respects this but HTML messages do not. The scroll bar for message body is also verrry narrow. And the icons on the menu bar (e.g. Switch to Calendar Tab) are mircoscopic.
    You didn't say which version of Thunderbird addresses these QHD display issues.
    I have tried Google Calendar sync but I have had trouble with offline use. Last time I tried it Google's address book seems to be missing fields supported by Thunderbird's address book.

  • O, Is there a way to fix grey ghosted template code on a html page?

    Hello, Is there a way to fix grey ghosted template wrong placed code on a html page in DWCS6? I have about 15 pages out of about 900 that need the same fix. Only one template is for these 15 pages and it  looks fine but won't attach to pages because of the error on line1.
    The first line below is the error problem and also below is the error when I try to attach the Template.
    (error problem)  <!-- InstanceBegin template="/Templates/Cotton_Silk.dwt" codeOutsideHTMLIsLocked="false" --><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="css/single.css" rel="stylesheet" type="text/css" />
    <link href="tooltip.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryTooltip.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryTooltip.js" type="text/javascript"></script>
    <head>
    <link href="tooltip.css" rel="stylesheet" type="text/css" />
    <meta name="title" content="Luna Luz Silk Cotton and Cotton Lycra Button Front Dress  - TodaysClothing.com" />
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXX
    (error)    not updated, error in template or instance file

    Hello, Is there a way to fix grey ghosted template wrong placed code on a html page in DWCS6? I have about 15 pages out of about 900 that need the same fix. Only one template is for these 15 pages and it  looks fine but won't attach to pages because of the error on line1.
    The first line below is the error problem and also below is the error when I try to attach the Template.
    (error problem)  <!-- InstanceBegin template="/Templates/Cotton_Silk.dwt" codeOutsideHTMLIsLocked="false" --><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="css/single.css" rel="stylesheet" type="text/css" />
    <link href="tooltip.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryTooltip.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryTooltip.js" type="text/javascript"></script>
    <head>
    <link href="tooltip.css" rel="stylesheet" type="text/css" />
    <meta name="title" content="Luna Luz Silk Cotton and Cotton Lycra Button Front Dress  - TodaysClothing.com" />
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXX
    (error)    not updated, error in template or instance file
    in Dreamweaver support forum • Reply • Like Show 0 Likes(0)

  • Using images in an HTML message

    Dear All,
    I want to embed 2 .gif files as part of the HTML message which is being sent from one client to another..My clients want me to give them the same effect as Outlook express utility: New Using->Select Stationery->Filename...so that the text can be typed on the image & then sent...i have hardcoded the structure of the message but the problem is that i am only able to send this message & view it only on my m/c & my e-mail id....if i send it to some other id the picture is not displayed how do i handle this
    Thank You
    Chaitra

    import java.io.*;
    import java.util.*;
    import java.text.*;
    import javax.mail.*;
    import javax.servlet.*;
    import javax.activation.*;
    import javax.servlet.http.*;
    import javax.mail.internet.*;
    public class MailServlet
    extends HttpServlet
    protected void printForm(String form,
    HttpServletRequest request,
    HttpServletResponse response)
    throws IOException
    PrintWriter writer = response.getWriter();
    form = MessageFormat.format(form,
    new Object[] { request.getServletPath() });
    writer.print(form);
    writer.flush();
    protected void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws IOException
    printForm(request.getParameter("SendMailForm"),request,response);
    protected void doPost(HttpServletRequest request,
    HttpServletResponse response)
    throws IOException
    try
    if(request.getContentType().
    startsWith("multipart/form-data"))
    doUpload(request,response);
    else
    response.sendError(
    HttpServletResponse.SC_NOT_FOUND);
    catch(Exception e)
    PrintWriter writer = response.getWriter();
    writer.println("<HR><B>Oops!</B><PRE>");
    e.printStackTrace(writer);
    writer.println("</PRE>");
    writer.flush();
    protected void doSendMessage(HttpServletRequest request,
    HttpServletResponse response,
    Dictionary fields)
    throws IOException, MessagingException
    String host = "10.10.40.6";
    Properties props = System.getProperties();
    props.put("mail.smtp.host", host);
    Session session =
    Session.getInstance(props, null);
    Message msg =
    new MimeMessage(
    session); /*.getDefaultInstance(
    System.getProperties(),null));*/
    msg.setFrom(
    new InternetAddress(
    (String)fields.get("from")));
    InternetAddress[] tos =
    InternetAddress.parse((String)fields.get("to"));
    msg.setRecipients(Message.RecipientType.TO,tos);
    if(fields.get("cc") != null)
    InternetAddress[] ccs =
    InternetAddress.parse((String)fields.get("cc"));
    msg.setRecipients(Message.RecipientType.CC,ccs);
    msg.setSubject((String)fields.get("subject"));
    msg.setSentDate(new Date());
    String msgText ="<HTML><HEAD><TITLE id=ridTitle>Eximbirthday</TITLE>";
         msgText+="<META http-equiv=Content-Type content=\"text/html; charset=windows-1252\"><BASE ";
         msgText+="href=d:/Tomcat/webapps/Project/>";
         msgText+="<META content=\"MSHTML 6.00.2600.0\" name=GENERATOR></HEAD>";
         msgText+="<BODY id=ridBody bgColor=#e7e4d9 leftMargin=0 topMargin=0 marginheight=0";
         msgText+="marginwidth=0>";
         msgText+="<CENTER></CENTER>";
         msgText+="<P></P>";
         msgText+="<TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0>";
         msgText+="<TBODY>";
         msgText+="<TR>";
         msgText+="<TD vAlign=top align=left colSpan=2><IMG height=69 src=\"cid:hbday.gif\"";
         msgText+="width=366 border=0></TD></TR>";
         msgText+="<TR>";
         msgText+="<TD vAlign=top align=left width=\"65%\" height=2>";
         msgText+="<br><br><FONT color=#0000ff size=5>";
         msgText+=(String)fields.get("body");
         msgText+="</font></TD>";
         msgText+="<TD vAlign=bottom align=right height=2><IMG height=394 src=\"cid:flowers.gif\"";
         msgText+="width=296 border=0></TD></TR></TBODY></TABLE>";
         msgText+="<DIV> </DIV></BODY></HTML>";
         if(null == fields.get("attachment"))
    // msg.setText((String)fields.get("body"));
              msg.setContent(msgText,"text/html");
    else
    BodyPart body = new MimeBodyPart(),
    attachment =(BodyPart)fields.get("attachment");
    //body.setText((String)fields.get("body"));
              // body.setHeader("Content-Disposition", "inline; filename=flowers.gif");
              body.setContent(msgText, "text/html");
    MimeMultipart multipart = new MimeMultipart("related");
    multipart.addBodyPart(body);
    multipart.addBodyPart(attachment);
              body=new MimeBodyPart();
              DataSource fds = new FileDataSource("D:/Tomcat/webapps/Project/hbday.gif");
              body.setDataHandler(new DataHandler(fds));
    body.setHeader("Content-ID","hbday.gif");
         // Add part to multi-part
         multipart.addBodyPart(body);
              // Create 2nd part for the image
         body = new MimeBodyPart();
              // Fetch the image and associate to part
              DataSource fds2 = new FileDataSource("D:/Tomcat/webapps/Project/flowers.gif");
              body.setDataHandler(new DataHandler(fds2));
              body.setHeader("Content-ID","flowers.gif");
              // Add part to multi-part
              multipart.addBodyPart(body);
    msg.setContent(multipart);
    Transport.send(msg);
    response.sendRedirect(response.encodeRedirectURL("/Project/OkForm.jsp"));
    public void doUpload(HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, MessagingException
    String boundary =
    request.getHeader("Content-Type");
    int pos = boundary.indexOf('=');
    boundary = boundary.substring(pos + 1);
    boundary = "--" + boundary;
    ServletInputStream in =
    request.getInputStream();
    byte[] bytes = new byte[512];
    int state = 0;
    ByteArrayOutputStream buffer =
    new ByteArrayOutputStream();
    String name = null,
    value = null,
    filename = null,
    contentType = null;
    Dictionary fields = new Hashtable();
    int i = in.readLine(bytes,0,512);
    while(-1 != i)
    String st = new String(bytes,0,i);
    if(st.startsWith(boundary))
    state = 0;
    if(null != name)
    if(value != null)
    fields.put(name,
    value.substring(0,
    // -2 to remove CR/LF
    value.length() - 2));
    else if(buffer.size() > 2)
    InternetHeaders headers =
    new InternetHeaders();
    MimeBodyPart bodyPart =
    new MimeBodyPart();
    DataSource ds =
    new ByteArrayDataSource(
    buffer.toByteArray(),
    contentType,filename);
    bodyPart.setDataHandler(
    new DataHandler(ds));
    bodyPart.setDisposition(
    "attachment; filename=\"" +
    filename + "\"");
    bodyPart.setFileName(filename);
    fields.put(name,bodyPart);
    name = null;
    value = null;
    filename = null;
    contentType = null;
    buffer = new ByteArrayOutputStream();
    else if(st.startsWith(
    "Content-Disposition: form-data") &&
    state == 0)
    StringTokenizer tokenizer =
    new StringTokenizer(st,";=\"");
    while(tokenizer.hasMoreTokens())
    String token = tokenizer.nextToken();
    if(token.startsWith(" name"))
    name = tokenizer.nextToken();
    state = 2;
    else if(token.startsWith(" filename"))
    filename = tokenizer.nextToken();
    StringTokenizer ftokenizer =
    new StringTokenizer(filename,"\\/:");
    filename = ftokenizer.nextToken();
    while(ftokenizer.hasMoreTokens())
    filename = ftokenizer.nextToken();
    state = 1;
    break;
    else if(st.startsWith("Content-Type") &&
    state == 1)
    pos = st.indexOf(":");
    // + 2 to remove the space
    // - 2 to remove CR/LF
    contentType =
    st.substring(pos + 2,st.length() - 2);
    else if(st.equals("\r\n") && state == 1)
    state = 3;
    else if(st.equals("\r\n") && state == 2)
    state = 4;
    else if(state == 4)
    value = value == null ? st : value + st;
    else if(state == 3)
    buffer.write(bytes,0,i);
    i = in.readLine(bytes,0,512);
    doSendMessage(request,response,fields);
    class ByteArrayDataSource
    implements DataSource
    byte[] bytes;
    String contentType,
    name;
    ByteArrayDataSource(byte[] bytes,
    String contentType,
    String name)
    this.bytes = bytes;
    if(contentType == null)
    this.contentType = "application/octet-stream";
    else
    this.contentType = contentType;
    this.name = name;
    public String getContentType()
    return contentType;
    public InputStream getInputStream()
    // remove the final CR/LF
    return new ByteArrayInputStream(
    bytes,0,bytes.length - 2);
    public String getName()
    return name;
    public OutputStream getOutputStream()
    throws IOException
    throw new FileNotFoundException();
    This is the latest version ....which again doesnt work!!!!!
    Thanx..
    Chaitra

  • Is profimail the only program to read HTML emails?

    Hi all,
    Is profimail (www.lonelycatgames.com/?app=profimail) the only program to read HTML emails?
    Overall I think it’s a good program and I wouldn’t mind paying to buy it. However, it feels very weird that not even top-notch and expensive mobiles like the E71 can read HTML emails without additional software! Plus, I’d like to consider alternatives before making up my mind and buying profimail. As much as I don’t like HTML emails, I receive plenty, which are almost unreadable and impossible to decipher if opened as text emails.
    I think the main disadvantages of profimail vs the integrated email client, Nokia email (email.nokia.com) or whatever your operator provided (e.g. ‘email on 3’ provided by www.seven.com)are:
    - Price (profimail is not hugely expensive but not free)
    - Battery life: if used in imap idle mode, it drains the battery more than the alternatives outlined above
    - Not perfect integration with Symbian: you’ll see a small box on the homescreen with the number of unread messages, but you won’t be able to show the headers in the home screen. Not ideal but bearable; after all, it’s exactly what happens with sms messages
    And the advantages are:
    - Ability to read HTML email
    - True, instant delivery of emails if used in imap idle mode (it reconnects automatically if it loses the connection).
    My experience with Nokia email and email on 3 used on the 3 UK network is that emails are delivered with delays, sometimes very considerable ones. My understanding is that these systems work by sending some sort of ‘silent sms’ which prompts the mobile to connect to the server and retrieve new mail only when needed. The bottleneck is that the silent sms doesn’t always arrive instantly, for reasons I fail to understand (network congestion maybe?). This was a great disappointment because I previously had a E61 with Blackberry connect which was great: emails did arrive instantly
    Let me know your thoughts! Bye!

    have you tried emoze ? and yes you might be right that it is a network issue rather than the program
    You know what I love about you the most, the fact that you are not me ! In love with technology and all that it can offer. Join me in discovery....

  • KNOWN ISSUE: HTML Messages with plain-text signatures

    To get around the EAS security policy issue, I'm having non-sensitive emails from work forwarded to a GMail account from a redirect set up in our corporate OWA. The redirect seems to send the messages to GMail without any issues; formatting is 100% intact, and in the GMail web client as well as Thunderbird, Entourage, etc., HTML emails with plain-text signature attachments show the plain-text message inline with the rest of the formatted message. All of our internal mailing lists have these plain text attachments that say where the message was coming from (Message sent from [email protected] by listserv). These get affixed to every message, both plain text and HTML.
    Here's my problem: The Pre's email client handles both plain text and HTML messages beautifully. But, when I receive a message from a mailing list with a plain text attachment, the HTML portion disappears, and all I see is the signature.
    Is there any way to make the Pre show the HTML INSTEAD of the plain text? I can live without the sig, I know where the messages are coming from already. But if I can't read the message, it's useless. I've only begun researching this and so far Google hasn't been much help, nor has searching these or other forums. Any help would be appreciated.
    Palm Pre P100EWW
    Post relates to: Pre p100eww (Sprint)
    Message Edited by HowellBP on 06-16-2009 04:13 PM

    1-51626418773
    I just got off the phone with Palm Support. Apparently this is a bug in the mail application. It currently does not support parsing both HTML and plain text in the same message. It will read EITHER plain text OR HTML, but not both at the same time. This will be fixed in a future update.

  • How to send Html message in this procedure?

    Hi all,
    here is one procedure
    DECLARE
    v_connection UTL_SMTP.CONNECTION;
    BEGIN
    v_connection := UTL_SMTP.OPEN_CONNECTION('mail.idealake.com',25);
    UTL_SMTP.HELO(v_connection,'mail.idealake.com');
    UTL_SMTP.MAIL(v_connection,'[email protected]');
    UTL_SMTP.RCPT(v_connection,'[email protected]');
    UTL_SMTP.DATA(v_connection,'Sent From PL/SQL');
    UTL_SMTP.QUIT(v_connection);
    END;
    I want to send html message throug this procedure.
    Please tell me tjhe solution.
    Thanks in advance.
    Prathamesh.

    I also have a copy of send mail package (modified copy of some code that I found on the net). Originally written with utl_smtp. Converted it to utl_tcp. Supports binary file attachments and formatted html messages now.
    You can pick it up at my website... http://www.myoracleportal.com

Maybe you are looking for