heres my code:
<?php
$headers="from: test@test.com \r\nMIME-Version:1.0\r\nContent-Type:text/html; charset=\"iso-8859\" \r\n";
$headers.="Content-Transfer-Encoding: 7bit\r\n";
$content=<<<asd
<style type="text/css">
h3{
color: maroon;
font-style: italic;
}
.main{
border: 2px black dotted;
color: white;
background-color: black;
}
</style>
<h3>title here</h3>
<div class='main'>
test msg test msg test msg test msg test
</div>
asd;
print $content;
$result=mail("amrosama2020@gmail.com","test",$content,$headers);
it sends the email without styles


Sign In
Create Account


Back to top









