Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once("Mail.php");
- require_once('Mail/mime.php');
- $recipients = "gundambison@gmail.com";
- $headers["From"] = 'noreply@xxxx.com';
- $headers["Return-Path"] = 'noreply@xxxx.com';
- $headers["To"] = "xxxxx@gmail.com";
- $headers["Subject"] = "menerima order pemesanan";
- $mime = new Mail_mime($crlf);
- $mime->setHTMLBody($pesan);
- $body = $mime->get();
- $header = $mime->headers($headers);
- $smtpinfo["host"] = "mail.xxxxx.com";
- $smtpinfo["port"] = "25";
- $smtpinfo["auth"] = true;
- $smtpinfo["username"] = "noreply@xxxxx.com";
- $smtpinfo["password"] = "xxxx";
- $mail_object =& Mail::factory("smtp", $smtpinfo);
- $mail_object->send($recipients, $header, $body);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement