Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once("Mail.php");
- require_once('Mail/mime.php');
- // ini mksdny apa?
- $recipients = "[email protected]";
- // dari (from)
- $headers["From"] = '[email protected]';
- // ini mksdny apa?
- $headers["Return-Path"] = '';
- // kepada (to)
- $headers["To"] = "[email protected]";
- $headers["Subject"] = "menerima order pemesanan";
- $pesan = "Bla Bla ZZZZZ";
- $mime = new Mail_mime($crlf);
- $mime->setHTMLBody($pesan);
- $body = $mime->get();
- $header = $mime->headers($headers);
- $smtpinfo["host"] = "mail.xxxxxx.com";
- $smtpinfo["port"] = "25";
- $smtpinfo["auth"] = true;
- $smtpinfo["username"] = "[email protected]";
- $smtpinfo["password"] = "~!@#$%^&*()";
- $mail_object =& Mail::factory("smtp", $smtpinfo);
- $mail_object->send($recipients, $header, $body);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment