Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require_once '../assets/mail/PHPMailerAutoload.php';
- $mail = new PHPMailer(true);
- $mail->Mailer = "smtp";
- $mail->isSMTP();
- $mail->SMTPDebug = 0;
- $mail->SMTPAuth = true;
- $mail->SMTPSecure = "ssl";
- $mail->Host = "smtp.zoho.com";
- $mail->Port = 465;
- $mail->Username = "support@mydomain.in";
- $mail->Password = "myzohopassword";
- $mail->SetFrom("support@mydomain.in", "Support MyDomain");
- $mail->AddAddress($rEmail);
- $mail->Subject = $subject;
- $mail->MsgHTML($message);
- try {
- $mail->Send();
- return 1;
- } catch (phpmailerException $e) {
- return $e->getMessage();
- } catch (Exception $e) {
- return $e->getMessage();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement