jazzman

cron.php

Oct 14th, 2012
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.04 KB | None | 0 0
  1. <?php
  2.  
  3. include 'lib/swift_required.php';
  4.  
  5. include 'e_list.php';
  6.  
  7. // set default time zone
  8. date_default_timezone_set("America/Toronto");
  9.  
  10. $delay = 10000000;
  11.  
  12. $body = "<html><head><title>Test image</title></head><body><div style='float: left;'>";
  13.  
  14. $body .= "<p>Скръбна вест</p>";
  15.    
  16. $body .= "<a href='http://stdimitar.org/stdimitar/images/large/clip0110.jpg'>";
  17.  
  18. $body .= "<img src='http://stdimitar.org/stdimitar/images/large/clip0110.jpg' alt='image from st.Dimitar' style='width: 50%; height: auto; padding: 6px 0px;' /></a></div></body></html>";
  19.    
  20. // Create the Transport
  21. $transport = Swift_SmtpTransport::newInstance();
  22.  
  23. // Create the Mailer using your created Transport
  24. $mailer = Swift_Mailer::newInstance($transport);
  25.  
  26. // Create a message
  27. $message = Swift_Message::newInstance()
  28.         ->setContentType("text/html")
  29.         ->setMaxLineLength(100)
  30.         ->setSubject("=?UTF-8?B?0KHQutGA0YrQsdC90LAg0LLQtdGB0YI=?=")
  31.         ->setFrom(array("[email protected]" => "linuxmaniac"))
  32.         ->setBody($body);
Advertisement
Add Comment
Please, Sign In to add comment