Как отправить стили с помощью html электронной почтыCSS

Разбираемся в CSS
Ответить
Anonymous
 Как отправить стили с помощью html электронной почты

Сообщение Anonymous »

Я использую функцию php mail () для отправки электронной почты. У меня есть таблица в электронном письме с конкретными стилями, но когда я получаю электронное письмо, она не показывает мне изображения, и весь стиль нарушен.
Мой код ниже:
$recipient = $_POST['Users']['email'];
$name = $_POST['Users']['first_name'];
$username = $_POST['Users']['username'];
$password = $_SESSION['password'];

$referrer_name = $model->referrer = $referrer_data['first_name'];
$referrer_email = $model->referrer = $referrer_data['email'];
// print_r($referrer_name);
// print_r($referrer_email);

$webstore = $this->base_url . "/" . Yii::app()->session['username'];
$headers = 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$subject = "Sign Up- Success";
$message = "

 

















 








Congratulations













 



Dear '$name'
Congratulations on your decision to become the newest member of '$referrer_name' Karmora Community!
Below you will find important information about your new Karmora Webstore. Please print or save this email in a safe location for future reference.


Karmora URL
'$webstore'


User Name
'$username'


Password
'$password'


Now it's time for you to start building your own personal Karmora Community where you can make money off the memberships and purchases of your Community members!  Let’s get this party started!
7 BABY STEPS TO GOOD KARMORA™:
  • Click on your Karmora URL and log in to your back office to customize your Webstore. You will see 'Log In' in the upper right hand corner of your Webstore.
  • Click on the Profile button and upload your picture while in the profile section. We recommend recent pictures. Your customers will want to know that it is your Webstore!
  • Go to the Training Section and watch the Instructional Videos. You will find all kinds of information to help you with your Karmora Webstore.
  • Click on the eWallet button and create your eWallet. Instructions on how to do this are found in the Training Section of your back office.
  • Use Go Daddy to secure a domain name for your new Webstore and point the new domain to your Karmora Webstore URL above. Instructions on how to do this are found in the Training Section of your back office
  • Make your first official Karmora purchase.
  • Start sharing your new Webstore with everyone you speak to so they can begin a Karmora Community of their own. Once you have five active members in your Karmora Community your Webstore is basically FREE!
If you have any questions please don’t hesitate to contact '$referrer_name' by email at [url=mailto:$referrer_email]'$referrer_email'[/url] or simply click here to chat with a Good Karmora™ Specialist seven days a week from 7am to 7pm Pacific Time.
As always we wish you Good Luck, Good Fortune and Good Karmora™!
 



 




 






Contact Us








© 2013 Karmora




 



";

mail($recipient, $subject, $message,$headers);


Подробнее здесь: https://stackoverflow.com/questions/219 ... html-email
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «CSS»