Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($sql){
- include('phpmailer/class.phpmailer.php');
- include('phpmailer/class.smtp.php');
- $mail = new PHPMailer();
- $mail->Username = "husnulhada@gmail.com";
- $mail->Password = "1234567l";
- $webmaster_email = "husnulhada@gmail.com";
- $email = $_POST['email'];
- $name = "Judul Message Service";
- $mail->From = $webmaster_email;
- $mail->FromName = "Email ini dari siapa";
- $mail->AddAddress($email,$name);
- $mail->AddReplyTo($webmaster_email,"Email ini dari siapa");
- $mail->WordWrap = 50;
- //$mail->AddAttachment("module.txt"); // attachment
- //$mail->AddAttachment("new.jpg"); // attachment
- $mail->IsHTML(true);
- $mail->Subject = "Pemberitahuan Calon Nasabah Baru";
- $mail->Body = "isi email dalam bentuk html tanpa adaenter";
- $mail->AltBody = "This is the body when user views in plain text format";
- if (!$mail->send()) {
- echo "Mailer Error: " . $mail->ErrorInfo;
- } else {
- echo "";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement