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?
- // dari (from)
- // ini mksdny apa?
- $headers["Return-Path"] = ''; //lupa...
- $crlf="\n";
- // kepada (to)
- $headers["Subject"] = "menerima order pemesanan"; //header
- $pesan = "Bla Bla ZZZZZ"; // buat dalam bentuk
- $mime = new Mail_mime($crlf);
- $mime->setHTMLBody($pesan);
- $body = $mime->get();
- $header = $mime->headers($headers);
- $smtpinfo["host"] = "mail.xxxxxx.com"; //alamat server smtp
- $smtpinfo["port"] = "25";
- $smtpinfo["auth"] = true;
- $smtpinfo["password"] = "~!@#$%^&*()"; //password
- $mail_object =& Mail::factory("smtp", $smtpinfo);
- $mail_object->send($recipients, $header, $body); //kirim email
- ?>
Advertisement
Add Comment
Please, Sign In to add comment