Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 17th, 2004, 06:01 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cochin, Kerala, India.
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default Sending a CSS formatted HTML mail

I have an issue in which I need to send an HTML mail to a number of subscribers.

The HTML uses a CSS file for its formatting. I have stored the CSS in a folder at server and used full path (http://www.mysite.com/mail/styles/mail.css) in the mail content. The format is coming correctly in the mail clients like Outlook and eudora.

However those using the hotmail and yahoo is getting the mails without the styles. I have copied the css text and put it in <style>...</style> tags and tried. But it is not working even then.

Could anybody tell the correct method of sending a CSS styled HTML mail so that it is accepted in all the mail sites ?

Thanks
 
Old June 17th, 2004, 06:03 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cochin, Kerala, India.
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

Sorry. I did not mention the mail component I am using. It is CDO.Message.

I tried with CDONTS also.
 
Old June 17th, 2004, 08:46 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Oklahoma City, Oklahoma, USA.
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I use the following in the head tags and it works everywhere for me
<HEAD>
    <STYLE type="text/css">
        FONT.Orange15Bold {
                FONT-FAMILY: Arial, Geneva, Helvetica;
                FONT-SIZE: 15px;
                FONT-STYLE: normal;
                FONT-WEIGHT: bold;
                COLOR: #C47E0F;
                }
    </STYLE>
</HEAD>
 
Old June 17th, 2004, 08:54 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Oklahoma City, Oklahoma, USA.
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I also just came across this, It describes a few different ways of sending HTML email with CDO.
http://www.w3schools.com/asp/asp_send_email.asp
 
Old June 17th, 2004, 11:30 PM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cochin, Kerala, India.
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

Dear harpua,

Thanks for the reply.

My classes are like this.

.boldtext
{
  FONT-FAMILY: Arial, Geneva, Helvetica;
  FONT-SIZE: 12px;
  FONT-WEIGHT: bold;
}

i.e. the class is not restricted to a particular tag. It starts with a period (.). Is it a problem ?




Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML formatted text via xsl templates? beckfield XSLT 2 February 26th, 2005 01:48 PM
Send Mail from Word with formatted Body saimen Excel VBA 1 February 10th, 2005 07:53 AM
HTML formatted mail goes to BadMail. Why? nancy Classic ASP Basics 12 August 24th, 2004 10:19 AM
Sending both text mail and HTML mail - CDONTS madhukp Classic ASP Basics 1 October 8th, 2003 01:05 AM
Formatted/HTML text pkgal79 HTML Code Clinic 2 June 18th, 2003 02:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.