Guest User

Untitled

a guest
Nov 18th, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. <?php
  2. require_once("Mail.php");
  3. require_once('Mail/mime.php');
  4. // ini mksdny apa?
  5. $recipients = "[email protected]";
  6. // dari (from)
  7. $headers["From"] = '[email protected]';
  8.  
  9. // ini mksdny apa?
  10. $headers["Return-Path"] = '';
  11. // kepada (to)
  12. $headers["To"] = "[email protected]";
  13. $headers["Subject"] = "menerima order pemesanan";
  14. $pesan = "Bla Bla ZZZZZ";
  15. $mime = new Mail_mime($crlf);
  16. $mime->setHTMLBody($pesan);
  17. $body = $mime->get();
  18. $header = $mime->headers($headers);
  19.  
  20. $smtpinfo["host"] = "mail.xxxxxx.com";
  21. $smtpinfo["port"] = "25";
  22. $smtpinfo["auth"] = true;
  23. $smtpinfo["username"] = "[email protected]";
  24. $smtpinfo["password"] = "~!@#$%^&*()";
  25.  
  26. $mail_object =& Mail::factory("smtp", $smtpinfo);
  27. $mail_object->send($recipients, $header, $body);
  28. ?>
Advertisement
Add Comment
Please, Sign In to add comment