Advertisement
ajsoriano

Untitled

Aug 11th, 2017
1,289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.73 KB | None | 0 0
  1. <?php
  2.  
  3. require 'system/huris/phpmailer/PHPMailerAutoload.php';
  4.    $mail = new PHPmailer();
  5.    $mail->Host = "smtp.gmail.com";
  6.    $mail->isSMTP();
  7.    $mail->SMTPAuth = true;
  8.    $mail->Username = "sorianoajc@gmail.com";
  9.    $mail->Password = "teamsabog05";
  10.    $mail->SMTPSecure = "ssl";
  11.    $Mail->Port = 465;
  12.    $Mail->Subject = "You have a pending leave request";
  13.    $Mail->Body = "You have a pending leave request";
  14.    $Mail->setFrom(address "sorianoajc@gmail.com", name "SB");
  15.    $Mail->addAddress(address: "amysoriano1963@gmail.com");
  16.  
  17.    if ($mail->send())
  18.     echo "Mail is sent";
  19.   else
  20.     echo "Error";
  21.  
  22.  ?>
  23. //my problem is Parse error: syntax error, unexpected ':' in C:\xampp\htdocs\system\huris\sendmail.php on line 14
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement