Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Email body fixes

  • Loading branch information...
commit 7d150870151326b42d852b73cbe0694f5b408544 1 parent 764fe6d
@korjik authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 send_email.php
View
9 send_email.php
@@ -3,14 +3,19 @@
$ses = new SimpleEmailService('XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXXXXXXXXX');
$file=$argv[1];
-$text_email="Дорогой $username! Текст письма в формате text/plain";
-$html_email="<strong>Дорогой $username!</strong><p> Вот текс письма в формате text/html!";
+
+
$user_list= fopen($file, "r");
while (($user_fields = fgetcsv ($user_list,",")) !== FALSE)
{
$username=$user_fields[0];
$email=$user_fields[1];
+
+$text_email="Дорогой $username! Текст письма в формате text/plain";
+$html_email="<strong>Дорогой $username!</strong><p> Вот текс письма в формате text/html!";
+
+
$m = new SimpleEmailServiceMessage();
$m->addTo($email);
$m->setFrom('validated@email.com');
Please sign in to comment.
Something went wrong with that request. Please try again.