CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 17th, 2002, 02:30 AM
joyce joyce is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Posts: 92 joyce User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 27 m 18 sec
Reputation Power: 7
include css in mail()

hi, in my site i got a "tell a friend" section, where user can tell their friends about my site. and then i will send out an email to their friends.

my problem is, i dono how to include css in tat email.

how should i do tat?

Reply With Quote
  #2  
Old October 17th, 2002, 02:36 AM
AlCapone's Avatar
AlCapone AlCapone is offline
Mobbing Gangster
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
Posts: 4,913 AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 36 m 31 sec
Reputation Power: 17
Send a message via ICQ to AlCapone Send a message via AIM to AlCapone Send a message via Yahoo to AlCapone
Just stick it in the <head> section.
__________________
And you know I mean that.

Reply With Quote
  #3  
Old October 17th, 2002, 02:46 AM
joyce joyce is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Posts: 92 joyce User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 27 m 18 sec
Reputation Power: 7
err...something like this??

mail($mesg, $subject, $headers...

part of my css:
Code:
body {
	background-color: #fffcfc;
	scrollbar-face-color: #f7eeee;
	scrollbar-highlight-color: #FFFFFF;
	scrollbar-shadow-color: #f7eeee;
	scrollbar-3dlight-color: #F5E9E9;
	scrollbar-arrow-color:  #800000;
	scrollbar-track-color: #fbf5f5;
	scrollbar-darkshadow-color: #cc9999;
}


put in part of the message:
PHP Code:
 $mesg .= "body {";
    
$mesg .= "background-color: #fffcfc;";
    
$mesg .= "scrollbar-face-color: #f7eeee;";
    
$mesg .= "scrollbar-highlight-color: #FFFFFF;";
    
$mesg .= "scrollbar-shadow-color: #f7eeee;";
    
$mesg .= "scrollbar-3dlight-color: #F5E9E9;";
    
$mesg .= "scrollbar-arrow-color:  #800000;";
    
$mesg .= "scrollbar-track-color: #fbf5f5;";
    
$mesg .= "scrollbar-darkshadow-color: #cc9999;";
$mesg .= "}"


and send it out??

Reply With Quote
  #4  
Old October 17th, 2002, 02:52 AM
AlCapone's Avatar
AlCapone AlCapone is offline
Mobbing Gangster
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
Posts: 4,913 AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 36 m 31 sec
Reputation Power: 17
Send a message via ICQ to AlCapone Send a message via AIM to AlCapone Send a message via Yahoo to AlCapone
As I said before, stick it in <head>
PHP Code:
 $msg=<<<html
<html><head><style>
body 
{
    background-color: #fffcfc;
    scrollbar-face-color: #f7eeee;
    scrollbar-highlight-color: #FFFFFF;
    scrollbar-shadow-color: #f7eeee;
    scrollbar-3dlight-color: #F5E9E9;
    scrollbar-arrow-color:  #800000;
    scrollbar-track-color: #fbf5f5;
    scrollbar-darkshadow-color: #cc9999;
}
</style></head><body>blah blah</body></html>
html; 

Reply With Quote
  #5  
Old October 20th, 2002, 10:38 PM
joyce joyce is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Posts: 92 joyce User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 27 m 18 sec
Reputation Power: 7
i tried u way u show me..but the style still now showing up in my email. wat is wrong?

is it because the email i sent to got it's own style and my style cannot overwrite the email style...for eg hotmail??

Last edited by joyce : October 20th, 2002 at 10:40 PM.

Reply With Quote
  #6  
Old October 21st, 2002, 08:39 AM
InOblivion InOblivion is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Norway
Posts: 34 InOblivion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
I don't think you'll get the scrollbar things (which btw are non-standard) to work in your e-mail prog, since those are meant for IE only. One reason for not using them...

Reply With Quote
  #7  
Old October 21st, 2002, 09:08 AM
JMM JMM is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: USA
Posts: 830 JMM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 56 sec
Reputation Power: 8
To use HTML/styles in an e-mail it's got to be sent with the appopriate MIME type.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > include css in mail()


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway