HTML Message

I'd like to send a message (MS Outlook called it HTML message) with special effects such as bold, italic and the other font. How could I do this?
Thanks,
Charles

Hi Bob,
Thanks for your message. I sent out two new messages to myself. I wrote one sentence without bold or italic in a message and two sentences in the other in which the first one was no bold and italic (just typed one sentence) and the second was with bold and italic.
The first resulting message was in plain text. Raw source indicated the second message contained plain text for the first sentence and html (formatted) text for the second sentence.
In other words, html is in effect only if there is any format in the message. Even you pre-set rich text, you still have to do some format (such as bold).
Do you get the same result?
With my result, rich text message is not really a rich text message.
Charles

Similar Messages

  • In Mail 3.6 remote images in HTML messages display as blue squares with ? even though checked in viewing references.

    In Mail 3.6 remote images in HTML messages display as blue squares with ? even though checked in viewing references.

    Nurit,
    The point is that that button should not be there, if the preference setting is as you say. This indicates the preference setting is stuck, and that is what I was trying to help you resolve.
    The full purge is done as follows:
    Quit Mail, and in the Finder open Home/Library and locate the Mail folder. Control-click over the Mail folder, and choose Duplicate -- then drag the resulting copy to the Desktop for temporary backup. Next, open Home/Library/Preferences and find the com.apple.mail.plist file and drag it to the desktop.
    Relaunch Mail, which will open as though new, and when prompted to import anything DECLINE. Instead, re-enter your account info, and Mail will re-discover the account folders for your accounts, and all should be well, after setting preferences as you desire.
    Ask any needed questions, and keep us posted.
    Ernie

  • HTML messages crash Mail

    Since this morning, every time I try to open an HTML message in Mail, it crashes. I don't have a problem with regular text e-mails, just HTML. I've repaired permissions, run Disk Utility and Disk Warrior, and I don't know how to proceed.
    Can anyone help, please?

    Hi lsgmilano, and a warm welcome to the forums if you han't been already!
    First I'd backup your whole Mail folder, by right clicking on it in the Finder, then choose Archive/Compress.
    Right click on that Mail folder, choose archive, you'll get everything in the folder, and the folder itself in a file called Mail.zip..
    Quit Mail, then In your home folder, try moving this +folder & file+ to the Desktop then reboot...
    /Users/YourUserName/Library/Caches/Mail
    Move to the Desktop...
    /Users/YourUserName/Library/Mail/Envelope Index

  • 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.

  • 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

  • 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

  • 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.

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

  • Composing an html message

    I wasn't able to find the answer for this question in the archives - there seemed to be a link which was no longer accessible.
    I'm trying to compose an email to send out to my clients; I wanted to use html to make it pretty, add links, photos, etc. I composed it using BBEdit, opened it in IE and everything looks great. However, if I copy and paste the html into mail and send it along to myself as a test, it just comes through as code, not images and rich text (and yes, I have that selected).
    The one relevant topic I found made it sound like Mail users can't compose html emails? But this seems really wack to me, especially as all html messages I receive in Mail come through in lovely color.
    Any ideas?

    hi, Allan, thanks for your help.
    I see what you and Apple are saying about html and its accessibility problems (as well as people not wanting to receive advertisements in their email), BUT I myself subscribe to many newsletters, etc. via my email account (downloaded to Mail), and enjoy getting graphics, formatting, colors, links etc. in html format. Much more interesting and energetic than standard text.
    And I find it hard to believe that it's impossible for me to do something similar, on a very small, personal basis, to give my small business some flair, using Mail.
    It has been recommended that I open a gmail account and use their capabilities to send html compositions to my clients. Which I am not thrilled about. I know everyone receives html messages differently, and some end users will end up with just code (similar to what I see when I check my POP email account via their webmail and not Mail), but obviously many companies are using html composition in some capacity without major problems. It seems strange that Apple would tell its customers they can't do that - sending them to Gmail or a Microsoft program for it?
    Oh, and I usually do use Safari - IE is the default set for the "view in browser" action in my BBEdit (which, you're right, would be a good idea to update).
    I don't have Tiger yet so I'm not totally clear on your recommendation - are you saying that once I get Tiger Mail, I will be able to copy and paste from BBEdit to a Mail message and send it, resulting in prettily formatted html messages sent? (regardless of how the end user views them) Or is it just through Safari (which would also work fine).
    And there's no way people want to receive newsletters and updates in a PDF file form, I can tell you that right now. Attachments make people (especially PC users!) nervous.
    I suppose I can try using a friend's Tiger Mail program to send email in the way I am trying to (through Safari). Seems like a lot of hassle, but that's progress for you.
    emac   Mac OS X (10.3.9)  
    emac   Mac OS X (10.2.x)  
    emac   Mac OS X (10.2.x)  

  • How can i show a html message?

    Hello,everyone. I don't know how do show a html message.
    this kind of message is multipart.if it contains some images.
    How can I do? Must I save these images into server as a file?
    I am glad to get a hint.

    <IMG id=ridImg
    src="cid:000401c1fd71$95d52470$1a01a8c0@zqx" align=bottom>
    look at this: src="cid:000401c1fd71$95d52470$1a01a8c0@zqx"
    if contentType is "multipart/related".. I can get some image.their type is com.sun.mail.util.BASE64DecoderStream.
    now, I don't know how deal with these DocoderStream for "src" can find them.
    thanks for your help.

  • Mail in Mountain Lion does not display all HTML messages

    For some reason Mail app stopped siplaying most HTML messages. I haven't changed any settings but can't seem to figure out how to make mwaagwa qirg HTML display the way they used to. Thanks in advance!

    how do you log into hotmail at work? via webmail interface? hotmail provides POP email access only when using an email clienet and you probably have Mail set to remove messages from server after downloading them. go to Mail preferences->account->advanced and check those settings. you can change them to leave messages on server or to remove them from server only when they are moved from the inbox.

  • Cannot display remote images in HTML messages

    Hi all.
    This has been a problem since Tiger for me and ironically, is affecting me on two macs (although I sync the two together, so whatever the problem is, I'm guessing it's been copied to both locations). Here's the deal:
    I cannot display images in my messages. If I click the checkbox (under viewing in mail prefs) "display remote images in HTML messages" I get the same behavior as if it is unchecked. I've tried checking and unchecking to no avail. My guess is a corrupted preference file, but I don't know which one. If I delete my mail prefs, will I need to do anything with regards to my mailboxes etc? I have over 3GB of offline mail, all filed away into hundreds of folders and do NOT want to mess with that.
    Any suggestions are most appreciated. I'd love to see my images again without clicking on the "load images" button for EVERY email.
    Thanks,
    Rob

    I can't believe there's no answer for this at Apple Support! (I looked.) On my MacBook with Leopard (10.5.6 and Mail 3.5) the problem is fairly recent - I only noticed it a few days ago. Unchecking and rechecking the Display remote images in HTML messages does not work, and neither does restarting the computer (I rarely do, preferring to put it to sleep.) Before I removed the plist I thought I'd check here first, having the same reasons for reluctance as xrob - and a good thing I did, too. I'd hate to have the same (bad) experience as someone who already tried it. The only thing I can think that I changed recently was to add SSL support to (all) my accounts. Could that be the culprit? I guess not. I removed "use SSL" on one of the accounts but it changed nothing, except for the port number. I closed and re-opened Mail but did not restart the computer. And, where do you find the "load images" button?

  • 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

  • HTML messages with SMTPClient

    I'm trying to send HTML messages using the older SMTPClient class that comes with the earlier JDK's. I use an older version of CodeWarrior to write my code and it has problems with the new SDK. So I haven't downloaded the JavaMail API yet, it looks to me like this SMTPClient does everything I need. But I'm having problems sending HTML messages. I test my code by sending the messages to my own Outlook Express account. Outlook express interprets very simple HTML messages correctly, but as soon as I add more complicated tags it stops interpreting the message as HTML and just prints out the HTML source as plain text. This works fine:
    msg.println("<html><body bgcolor=#D67689>");
    msg.println("This works Fine!");
    msg.println("</html>");
    But I want to put together a slicker message than that. As soon as I add more code to the message, it is not interpreted properly.
    This does not work:
    msg.println("<html><body bgcolor=#D67689>");
    msg.println("Now I just get plainText!");
    msg.println("<img border=0 src=http://members.shaw.ca/bryantronsgard/IMAGES/FlowerBanner.jpg width=467 height=199>");
    msg.println("</html>");
    Do you have to follow some stricter tag schema when sending HTML over SMTP? Is there some trick I am missing?

    I know nothing of this SMTPClient, but if it doesn't support setting a message's content type to "text/html" then it doesn't do everything you need.

Maybe you are looking for

  • Microsoft office 2013 encountered an error during setup in Window 8.1

    Initially, I got microsoft office 2013 64bit standard version installed in window 8.1. However, it suddenly got errors when opening office, and closed the program automatically. Therefore, I uninstalled it, and tried to re-install office. However, I

  • Adobe reader frozen on macbook pro.

    Adobe reader frozen on macbook pro.  can't delete application or restart the computer.  Says the program is open.  Can't force quit either.

  • Reg:report painter reports adding into sap menu

    HI all, HI all How to add reports painter reports in sap menu.? regards JK Rao

  • HT4864 syncing computers on different OS

    I have a Mac tower running lion and macbook pro running snow leopard, and i phone, ipad and ipod.  i have been syncing all of my idevices on my macbook running leopard.  it always asks me if i want to back up to icloud, and i say yes, but when i go t

  • Business place / section code

    dear all, i have post my entry but i not the entered the business place in document, now i want put the business place in document, so please suggested to me the t-code and which table. rajiv.