Questions tagged [phpmailer]
PHPMailer is an email creation and sending class for PHP. PHPMailer is designed to communicate directly with other servers, unlike PHP's native `mail()` function.
5,549
questions
0
votes
0
answers
25
views
phpmailer two included email sending files works in browser but not for server to server
I am using phpmailer to send html emails.
Member get register on my website. He receive email via phpmailer about his account details. Same time, admin also get notified about new registration via ...
0
votes
0
answers
10
views
how do i send mail using smtp server with phpmailer
i am using webmail smtp and i was recieving mail before and it stopped working , this is code i have
require 'mail/PHPMailer/PHPMailerAutoload.php';
$mail = new PHPMailer;
$mail->...
0
votes
0
answers
16
views
starting to write a phpmailer page on a website, but just getting blank screen on phpmailer.php testing on send
i cannot get any code to insert in the box to show my problem with phpmailer script?
I have pressed the above enter code here but it will not let me post as it still shows i have not entered code so ...
0
votes
0
answers
29
views
How to fix PHPMailer Password command failed issue?
I am using Hostinger. I just got an email through them. I keep getting the following error..
2023-11-30 18:58:51 SERVER -> CLIENT: 535 5.7.8 Error: authentication failed: UGFzc3dvcmQ6
2023-11-30 18:...
0
votes
1
answer
56
views
why SMTP error?. when i run on localhost it works. but when i put on my server SMTP error. can someone explains?
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
use PHPMailer\PHPMailer\SMTP;
//Load Composer's autoloader
require 'vendor/autoload.php';
function send_password_reset($get_name,...
-2
votes
0
answers
13
views
Creating A Function for a button to send the most delayed days using PHP Mailer to deliver email to a mail
<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
// Include PHPMailer files using relative paths
require '../ajax/phpmailer/src/Exception.php';
require '../ajax/...
0
votes
0
answers
71
views
Delays sending 4.5k emails in quick succession via PHPMailer and Mail Relay
I have PHPmailer setup and working a treat.
It’s basic code whereby it breaks down a variable of emails and for each email, it triggers a mail send.
But as you can predict, when there is around 4500 ...
-3
votes
0
answers
55
views
Send email using PHPMailer without Composer on InfinityFree servers from Outlook email address [closed]
I'm trying to use PHPMailer on my website which is hosted on InfinityFree's free plan servers. I do not want to use Composer because I don't know how and I want the simplest possible installation. I ...
-1
votes
0
answers
18
views
PHPMailer gives SMTP ERROR: DATA END command failed: 450 Processing Error. data not accepted
<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;
require 'src/Exception.php';
require 'src/PHPMailer.php';
require 'src/SMTP.php';
$...
0
votes
1
answer
53
views
Why do I get a warning of "unknown class" in VisualCode when using PHPMailer?
I am struggling to understand why I get this warning in Visual Studio Code:
I have implemented som mailing functionality for my website (e.g. when mailing confirmation requests or newsletters). I am ...
0
votes
1
answer
89
views
Trying to authenticate with smtp.gmail.com via XOAUTH2
I'm using PHPMailer to authenticate via XOAUTH2 with smtp.gmail.com in order to send an email. However, I'm getting an authentication error with an inadequate response:
2023-11-17 06:32:29 SERVER -&...
0
votes
4
answers
101
views
PHPMailer - Unable to get full error message
Looking for help with my PHPMailer code if possible please.
Overall, it works fine, what I'm struggling to capture is the specific error messages.
if (!$mail->send()) {
echo "Mail <font ...
-2
votes
0
answers
76
views
PHPMailer (Not PHP Mail Function) sends mail but not being received in Gmail [duplicate]
At the outset, this is NOT a DUPLICATE! The link given there as duplicate refers to PHP Mail Function while I am explicit in my question that I am talking about PHPMailer which is different!
I have ...
0
votes
0
answers
19
views
SMTP Error while sending email via php-mailer [duplicate]
Using AWS SES service as an endpoint to send email via phpmailer. On cpanel it is not working fine. It shows me this error, while sending email.
SMTP Error: Could not connect to SMTP host. Connection ...
0
votes
0
answers
26
views
wp_mail() method already exists from a different plugin
I am using the Mailster plugin to send newsletters and also for system emails on my WooCommerce website.
After a recent update, I am getting this error message
The wp_mail() method already exists from ...
0
votes
0
answers
36
views
When I post Large Html template using PHPMailer then email not send
In below code $templateStart varible i added my html code when i send mail then it print "Message Sent OK" but mail not get in inbox and spam also
$mail = new PHPMailer(true);
...
-1
votes
1
answer
53
views
PHPMailer - Could not connect to SMTP host
Trying to implement PHPMailer on BlueHost VPS using Gmail SMTP server. Fails with "Message could not be sent. Mailer Error: SMTP Error: Could not connect to SMTP host." Have an app password ...
0
votes
0
answers
24
views
Parse error: syntax error, unexpected '[' in /dirección del alojamiento del proyecto/correo/PHPMailer.php on line 167
My problem is the following, I have a system in which I need to send emails automatically when users register in the system, in the local mode it works wonderfully and if the sending of emails is done,...
1
vote
1
answer
41
views
Is it possible to sign and encrypt all outgoing mails with a normal SSL Domain certificate?
I'm sending mails with PHP via a SMTP mail server. I have an SMIME Certificate for one email that sends all those mails (signed and also encrypted sometimes). This works perfectly.
Now I want to buy a ...
0
votes
1
answer
20
views
Uncaught phpmailer exception
I am unable to receive confirmation email because it kept showing this error message and I have try cross checking the code I don’t get the issue.
This is the error message:
Fatal error: Uncaught ...
-2
votes
1
answer
28
views
Can I get my users data (device, browser) from when they fill form PHP Mailer
I need to get my users data such as the browser, and device they are using from when they fill in the form on my website. I am using Php Mailer so can you please help me on how to do this?
Thank you
...
0
votes
0
answers
57
views
PHPMailer: Could not connect to SMTP host. Connection failed. stream_select()
I searched through SO and tested all of the various settings changes and couldn't find the solution to the problem.
Server: Windows Server 2019 - IIS 10
PHP: PHP 5.6 (yes I know its outdated but I'm ...
0
votes
0
answers
28
views
PHP Sending Mail, but not redirecting. Stuck on white php page
My php form is getting stuck, sends mail but doesnt redirect. I'm using the same base portion of the code on another page and it does redirect fine. Differences between the two - this one has ...
1
vote
1
answer
234
views
PHPMailer and TLS configuration
PHPMailer is working perfectly with SES in our Windows Server, but I received a notification from AWS about TLS 1.0 connections that need to be updated to TLS 1.2 or higher. Will this requirement ...
1
vote
0
answers
17
views
Invalid Host under Docker Swarm with PHPMailer
I am configuring Open Journal System, that uses PHPMailer, on docker swarm. I have two images, one running php-fpm and the other postfix. From the php-fpm I am able to access the postfix one using the ...
1
vote
0
answers
84
views
Can't send emails through phpMailer [duplicate]
Error after clicking submit:
I have this page on my website with a form, after filling it up and verifying the captcha there's a submit button that sends all the data via email.
I'm using phpMailer ...
0
votes
1
answer
18
views
Unable To Send Emails Via Amazon SES to Unverified Email Addresses Even After Being Move From Sandbox To Production
Even after being moved from the Sandbox environment to production, I'm still unable to send emails via Amazon SES using PhpMailer to unverified email addresses. However, I can send it to verified ...
0
votes
2
answers
64
views
How can I send a file by email with PHP Mailer? [duplicate]
I have been trying for some time to make a code in php to send a file from a form.
The form works, it uploads both the information and the file to the server.
I submit the form with AJAX.
Problem:
...
-1
votes
1
answer
129
views
JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 5 of the JSON data [duplicate]
I have installed phpmailer 6.8.1 (upgraded from phpmailer 5.2) into my server (using php v7.0.33). The phpmailer is working as I am receiving the test emails however once the email data is processed/...
0
votes
0
answers
51
views
PHPMailer worked for a while, but now is not working
I made a form on a website using PHPMailer. My form was working fine for a while, but now it doesn't. I relatively new to PHP, so I'm not sure where the problem is..
So this is my PHPMailer file "...
0
votes
0
answers
29
views
HTML + PHPMailer + PDF -> WordPress
I am struggling since days now and I cannot find a solution for one of my projects.
I was asked to create a multilingual HTML form that sends the input data both as an HTML email and a generated PDF (...
-2
votes
1
answer
40
views
Remove 'via [Domain name]' from sent mail using mail()
I am using PHP mail() function to send email, emails are being sent fine.
Help needed in removing the "via" part form sent mail.
** PHP Code: **
<?php
if(isset($...
0
votes
0
answers
63
views
SMTP Error 454 4.7.0 during sending email through Gmail API
We are facing an error during sending emails from our website through gmail with custom domain.
It was working for years for us, but last week error appeared.
In our logs we're seeing this:
SMTP ERROR ...
0
votes
2
answers
49
views
PHP email sending Issue in phpmailer
my problem is when i click the submit button it does submit the form and i don't receive any problems on the website or inside of the console.Only changes i made to my code was editing the php part ...
0
votes
0
answers
16
views
PHPMailer send mail in xampp but in server linux apache doesn't send mail [duplicate]
I use PHPMailer to send mails and it works on my xampp, but in my apache server in linux doesn't send mails.
I use a config like this:
<?php
include(dirname(__FILE__).'/PHPMailer/src/PHPMailer....
0
votes
0
answers
115
views
PHP Mail function not working with Google Workspace Email
I have tried a few different methods, but php mail() and PHPMailer are not sending to my google workspace email addresses. They will send to my yahoo and gmail address, though.
My domain is in google ...
1
vote
0
answers
256
views
AWS SES Virtual Deliverability Manager Dashboard only shows selective messages
I use AWS SES for outbound messaging for a web service. This includes things like new account sign-up, reset password requests, contact us form and sending out an email w/ PDF attachment(s).
I am ...
0
votes
0
answers
17
views
Configure PHPMailer with Amazon SES dedicated IP
I have an dedicated IP address on Amazon SES but I don't know how to find these informations I use for Amazon shared IP I put in my PHP file:
$configEmail['Host'] = 'email-smtp.us-east-2.amazonaws.com'...
0
votes
2
answers
39
views
PHPMailer: Add attachment without uploading the file
I'm using PHPMailer 6.8.1 and I don't want to upload the file (which can be an image, pdf, or a docx) to the server before sending it by email. This call doesn't work:
$mail->addAttachment($_FILES['...
0
votes
0
answers
107
views
Unable to fix SMTP error in PHP mail sending
I am getting the above error when trying to send mail with smtp. Below shown is the error screenshot I got when tried printing the smtp settings with var_dump($mail); .Although it is mentioned as ...
0
votes
2
answers
280
views
Laravel not sending mail using AWS SES
I am trying to send email in my Laravel project using AWS SES.
The error messages are not being very helpful.
In AWS SES, I verified the identity of both my domain and the email address I’m using as ...
1
vote
0
answers
55
views
PHP Mailer doesn't send e-mail
I'm using PHPMailer ver 6.7.1 to try send a e-mail message. But without success and I can't know why.
This is the error message:
Erro: [SMTP Error: The following recipients failed: wrobynson@gmail....
1
vote
2
answers
208
views
PHP mailer not working for sending emails
I am using PHPMailer to send emails with verification code. When I tried putting it inside a function and try to submit the form , the email is not being sent .
I have used the valid gmail ID for ...
0
votes
0
answers
47
views
php - Warning : mail() verify your SMTP and smtp_port setting
I was trying to make a working contact form using html and php but when i enter the name and email and message then click send, it shows this error
I am using normal local host with php (in cmd : $ ...
1
vote
1
answer
61
views
How to save SMTPDebug = 3 in log file through error_log function
I want to save SMTPDebug = 3, mail error into log file.
below code used in php file, but blank show in log file.
please suggest, how to store SMTP debug information in log file.
if(!$mail->send())
...
0
votes
1
answer
49
views
Upgrading phpMailer from v5.2.7 to v6.8.0
I am using the latest version of xmapp on windows 11. I want to upgrade my phpMailer to the latest version which is v6.8.0. My current version is v5.2.7 which is really old now.
I have installed ...
0
votes
0
answers
31
views
php mailer problem while sending the mail with pdf
so i want to send mail with pdf when someones sends it. my code was working some time ago but it stopped working suddenly and idk what exactly happened which caused it to do so. ill be attaching the ...
0
votes
0
answers
102
views
Fatal error: Uncaught PHPMailer\PHPMailer\Exception: SMTP Error: data not accepted - Outlook Relay Server
My website that was working well over years stopped working yesterday with the following error code. It seems like my mail server and receiving server is communicating, but somehow I am not allowed to ...
0
votes
1
answer
59
views
PHPMailer not sending to variable mailto address
I am using PHP Mailer to automate password reset functionality (with a token) and the email is not being sent when passing the data through. It will only send if I hard code an email in the address ...
1
vote
0
answers
38
views
PHPMailer with addReplyTo sends OK but the reply sends to SPAM
My email is received in the inbox in the gmail account. That part works flawlessly.
The issue is that the reply from the admin gmail account to the sender's email address that is in the addReplyTo fn ...