require(vendor/autoload.php): failed to open stream

I know that this issue has been posted many times, but for me it seems to be a different problem. Indeed, this error Warning: require(vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\site_web\send_mail.php on line 3 Fatal error: require(): Failed opening required ‘vendor/autoload.php’ (include_path=”C:\xampp\php\PEAR”) in C:\xampp\htdocs\site_web\send_mail.php on line 3 appears at the … Read more

PHPMailer character encoding issues

I try to use PHPMailer to send registration, activation. etc mail to users: require(“class.phpmailer.php”); $mail -> charSet = “UTF-8”; $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Host = “smtp.mydomain.org”; $mail->From = “[email protected]”; $mail->SMTPAuth = true; $mail->Username =”username”; $mail->Password=”passw”; //$mail->FromName = $header; $mail->FromName = mb_convert_encoding($header, “UTF-8”, “auto”); $mail->AddAddress($emladd); $mail->AddAddress(“[email protected]”); $mail->AddBCC(‘[email protected]’, ‘firstadd’); $mail->Subject = $sub; $mail->Body = $message; $mail->WordWrap … Read more

Should I use wp_mail or PHP’s mail? [duplicate]

This question already has an answer here: What is the advantage of using wp_mail? (1 answer) Closed 4 years ago. I have an email system that I am making in a WordPress plugin to send the emails with this code: include(PLUGIN_DIR.’config/class_phpmailer.php’); $email = new PHPMailer(); $email->From = get_option(‘admin_email’); $email->FromName=”my name”; $email->Subject = $subject; $email->Body = … Read more

No longer able to attach S3 bucket files to emails being sent by WordPress due to PHPMailer security update

I’ve been trying to track down why my s3 bucket files are no longer being attached to automated emails being sent out by WordPress (using the Gravity Forms Entry Automation plugin). I’ve been able to identify the latest version of PHPMailer being the reason why the attachments no longer get added. From the PHPMailer ticket … Read more

How to set up gmail SMTP in WordPress

I’m trying to set up an SMTP gmail server to send emails from my WordPress site. This is what I’ve got in my wp-config.php: define( ‘SMTP_USER’, ‘[email protected]’ ); // Username to use for SMTP authentication define( ‘SMTP_PASS’, ‘password’ ); // Password to use for SMTP authentication define( ‘SMTP_HOST’, ‘smtp.gmail.com’ ); // The hostname of the … Read more

WordPress “phpmailer_init” not working for me

I add the following code to the functions.php file. add_action( ‘phpmailer_init’, ‘my_phpmailer_example’ ); function my_phpmailer_example( $phpmailer ) { $phpmailer->isSMTP(); $phpmailer->Host = SMTP_HOST; $phpmailer->SMTPAuth = SMTP_AUTH; $phpmailer->Port = SMTP_PORT; $phpmailer->Username = SMTP_USER; $phpmailer->Password = SMTP_PASS; $phpmailer->SMTPSecure = SMTP_SECURE; $phpmailer->From = SMTP_FROM; $phpmailer->FromName = SMTP_NAME; } and wp-config.php // SMTP email settings define( ‘SMTP_USER’, ‘{email}’ ); define( … Read more