Advertisement
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 = "codalf@xxxxxx.com"; //penerima
- // dari (from)
- $headers["From"] = 'atheris.hispida@gmail.com';
- // ini mksdny apa?
- $headers["Return-Path"] = ''; //lupa...
- $crlf="\n";
- // kepada (to)
- $headers["To"] = "froza.elf@gmail.com";
- $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["username"] = "codalf@xxxxxx.com"; //username server
- $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
Advertisement