Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require 'system/huris/phpmailer/PHPMailerAutoload.php';
- $mail = new PHPmailer();
- $mail->Host = "smtp.gmail.com";
- $mail->isSMTP();
- $mail->SMTPAuth = true;
- $mail->Username = "sorianoajc@gmail.com";
- $mail->Password = "teamsabog05";
- $mail->SMTPSecure = "ssl";
- $Mail->Port = 465;
- $Mail->Subject = "You have a pending leave request";
- $Mail->Body = "You have a pending leave request";
- $Mail->setFrom(address "sorianoajc@gmail.com", name "SB");
- $Mail->addAddress(address: "amysoriano1963@gmail.com");
- if ($mail->send())
- echo "Mail is sent";
- else
- echo "Error";
- ?>
- //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