Hi everyone,
please I want to know if I can add a stylesheet link in my php mail :

$subject="Subject";
$header="From: \"$email\" <contact@sssss.com>\r\n"; 
$header.= "Reply-To: contact@sssss.com \r\n";
$header.= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$message= "<html>
            <link href='style.css' rel='stylesheet' type='text/css' />
	    <body>
	      <p>lorem lipsum ...</p>
            </body>
	   </html>";
mail($mail,$subject,$message,$header);

Thanks.

You can use inline css to do your styling. Some clients do allow an external style sheet (if you provide a full URL).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.