Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $address = '*****@gmail.com';
- $message = 'Hello ,<br> This is test email.';
- $subject = 'Test Email';
- $mail = new PHPMailer();
- if(0) {
- $mail->IsSendmail(true);
- } else {
- $mail->Mailer = "smtp";
- $mail->SMTPAuth = true;
- $mail->Host = ****;
- $mail->Username = ****;
- $mail->Password = ****;
- }
- $mail->IsHTML(true);
- $mail->From = ****;
- $mail->FromName = 'Test';
- $mail->Subject = $subject;
- $mail->Body = str_replace('n','<br>',$message);
- $mail->AddAddress($address);
- $mail>AddAttachment(DIR_FS_DOCUMENT_ROOT."images/".SITE_LOGO,SITE_LOGO);
- $mail_status=$mail->Send();
- if (1){
- echo "<pre>";
- print_r($mail);
- echo "</pre>";
- }
- return $mail_status;
Add Comment
Please, Sign In to add comment