Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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
Reply With Quote
  #2 (permalink)  
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.
Reply With Quote
  #3 (permalink)  
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>
Reply With Quote
  #4 (permalink)  
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
Reply With Quote
  #5 (permalink)  
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 ?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:10 PM.


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