Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require '../mailer/PHPMailerAutoload.php';
- $mail2 = new PHPMailer;
- //$mail->SMTPDebug = 3; // Enable verbose debug output
- $mail2->isSMTP(); // Set mailer to use SMTP
- $mail2->SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only
- $mail2->Host = 'bhinekadjaja.com'; // Specify main and backup SMTP servers
- $mail2->SMTPAuth = true; // Enable SMTP authentication
- $mail2->Username = 'no-reply@bhinekadjaja.com'; // SMTP username
- $mail2->Password = 'Bhineka2019$$'; // SMTP password
- $mail2->SMTPSecure = 'ssl'; // Enable TLS encryption, `ssl` also accepted
- $mail2->Port = 465; // TCP port to connect to
- $mail2->setFrom('no-reply@bhinekadjaja.com', 'PT. Bhineka Putra Perkasa');
- //$mail->addAddress('info@astacademy.or.id', ' User'); // Add a recipient
- $mail2->addAddress('info@bhinekadjaja.com'); // Name is optional
- //$mail->addReplyTo('$maildress', '$nama');
- // $mail2->addCC($shipping_email);
- //$mail->addBCC('bcc@example.com');
- //$mail->addAttachment('/var/tmp/file.tar.gz'); // Add attachments
- //$mail->addAttachment('/tmp/image.jpg', 'new.jpg'); // Optional name
- $mail2->isHTML(true); // Set email format to HTML
- $mail2->Subject = $subject2;
- $mail2->Body = $surat2;
- $mail2->AltBody = $surat2;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement