skip to Main Content

Php – Invalid address: [email protected] ,[email protected] Mailer Error: You must provide at least one recipient email address.There was an error

$thismessage=base64_encode($htmlmsg); $subject="Grups Automation siemens and sick sensor Product"; $mail->SMTPDebug= 2; $mail->IsSMTP(); //Sets Mailer to send message using SMTP $mail->Host = 'My hosting server'; //Sets the SMTP hosts of your Email hosting, this for Godaddy $mail->Port = '465'; //Sets the default…

VIEW QUESTION

Php – why SMTP error?. when i run on localhost it works. but when i put on my server SMTP error. can someone explains?

use PHPMailerPHPMailerPHPMailer; use PHPMailerPHPMailerException; use PHPMailerPHPMailerSMTP; //Load Composer's autoloader require 'vendor/autoload.php'; function send_password_reset($get_name, $get_email, $token) { $mail = new PHPMailer(true); $mail->SMTPDebug = 3; $mail->isSMTP(); $mail->Host = 'smtp.gmail.com'; $mail->SMTPAuth = true; $mail->Username = ''; $mail->Password = ''; $mail->SMTPSecure = 'tls'; $mail->Port…

VIEW QUESTION

Load PHPMailer with 'include'

An application that will be installed on any website will use the PHPMailer package to send emails. I would prefer not to distribute the PHPMailer 'package' (files) in the application. Can I load PHPMailer via a PHP 8.x 'include' (or…

VIEW QUESTION
Back To Top
Search