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,316
questions
-1
votes
0
answers
17
views
Emails not receiving in Gmail. Getting error in delivery track option [closed]
I'm using PHP mailer to send emails using my web server & domain email address. At the beginning emails were sent but it could be found in spam box. But now it can't be found even in spam box.
And ...
0
votes
0
answers
15
views
cf7 and wp_mail attachment is not working
When I created form in cf7 with attachment - attachment is not send to my email. I've done everything properly, folder wp-content/uploads/wpcf7_uploads has 777 permissions, file size upluad in php ...
-4
votes
0
answers
30
views
phpmailer i want ot know who read the mail [closed]
I am working on symfony web application
I sent mail to set of emails with another providers using phpmailer and i need to now who read the mail
it is not working when the destination mail type is ...
0
votes
0
answers
37
views
Phpmailer - smtp error: failed to connect to server: connection refused (111)
I have a server on AWS hosting 20 clients apps. All of this are using the same php code with his own email config. But one, can't send emails.
The message I receive from phpmailer debug is:
smtp error:...
1
vote
0
answers
22
views
Send mail with PHPMailer on iPage
I have trouble sending emails from my iPage webserver.
Firstly I watched a tutorial on how to use PHPMailer and the guy used gmail smpt server. That method worked flawlessly on localhost, but it doesn'...
-4
votes
0
answers
12
views
sending a link for forgot password using php [duplicate]
ERROR: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\...
0
votes
1
answer
23
views
Execute script after email send in php
Hello I am sending email with smtp. Email is sending schusses fully but the script after email send script is not working. can anyone help me with this ?
Emails are sending successfully but in return ...
0
votes
1
answer
16
views
why contact form is not working after adding row and columns?
For some reason, my form is not working after I added the form group row and columns. If I remove all the styling, it will work but it will look ugly. Also, the form indicates that the message was ...
0
votes
0
answers
27
views
smtp receive mail spam with google in phpmailer
I use phpmailer to receive messages from the contact form.
for some strange reason i receive spam emails as if the google recaptcha is not being read.
I get advertisements for SEO or PORN and nonsense ...
0
votes
1
answer
26
views
Why latest PHP mailer not working on Bamboozle?
I've been having issues for days with the latest php mailer. I've tried switching codes, removing lines, changing smtp security from tls to ssl, and changing ports, but nothing is working. I'm using ...
0
votes
1
answer
27
views
PHPMailer Error 500.Stack trace: #0 {main}
I have a PHP Mailer setup on my server for my website. However, I do not use composer so I did what the github page suggested:
require 'php/src/Exception.php';
require 'php/src/PHPMailer.php';
require ...
0
votes
1
answer
24
views
Why my php mailer doesn't work on bamboozle but it works on hostinger?
Today I spent hours trying to get my office 365 mail to work on my php mailer using smtp tls until it finally worked on my hostinger but not on bamboozle, and this is what I got:
Message could not be ...
0
votes
1
answer
17
views
Attempt to read property when calling a class
i am getting this error when i call my phpMailer class
Warning: Attempt to read property "email" on array in C:\xampp\htdocs\WiShop\core\controllers\admin.php on line 254
and this is my ...
1
vote
1
answer
15
views
php showing message sent but didn't receive it to my email
So my smtp php mailer is showing that the message was successfully sent but in reality it's not. I am now using email from the same domain that Synchro suggested because I was using gmail please have ...
1
vote
1
answer
17
views
SMTP Working good on hostinger and not working on bamboozle.me host?
could folks please assist me with the following error? I'm using a smtp php mailer that worked fine on hostinger with no errors, and I did receive the email, but it's not working on my bamboozle-...
0
votes
1
answer
15
views
phpMailer connects then report a non connection
Ive got a most particular error
This is the result
2022-05-19 20:33:57 Connection: opening to mail.stms.africa:465, timeout=300, options=array()
2022-05-19 20:33:57 Connection: opened
2022-05-19 20:36:...
0
votes
0
answers
7
views
PHPMailer DEBUG OUTPUT without Attachment data
I am using PHPMailer (v 6.6.0) and would like to record meaningful debug information. As noted in other threads, there appears to be no means to exclude message content/body and attachments from the ...
0
votes
0
answers
17
views
Which PHPMailer prop controls the sender email in the email header?
I'm getting an error from jQuery with a 404 to my mail.php (I checked the path and it seems correct)
<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\...
0
votes
0
answers
19
views
phpmailer send mails via OWN mailserver, missing DKIM
i'm using phpmailer V 6.6.0
Here at stackoverflow are a lot of hints and tricks, how to create and use key files for sending DKIM-signed mails.
But my problem is very simple.
I can't remember to ...
0
votes
0
answers
12
views
phpmailer error sending when upload file button isn't used in contact form
I am pretty sure this is fixable but I have just been through lots of posts and can't find the answer.
I have a contact form that has an upload button but this is optional.
If the upload button isn't ...
0
votes
1
answer
29
views
Attach Database Backup file in E-Mail send not working
I am using following code to take backup of my mysql database.
With this code, a file is created and get saved in same folder where this script is kept. It is working perfectly.
I am trying to email ...
-1
votes
1
answer
22
views
How do I remove this delivery notification from here?
I used STMP PHPMailer to send emails to newly clients on website. It works, but the weird thing is that it gives a delivery notification which I don't want.
How do I get rid of it?
Image description ...
0
votes
0
answers
33
views
Sending email form php (phpmailer) with looping on a mailing list
I'm using smtp phpmailer to send emails from my website to a mailing list of 500 to 2 000 emails. So cause on each mail body i have to insert a unique information for each email receiver I'm looping ...
0
votes
2
answers
30
views
send csv attachment without upload
I found a lot of example how to create csv and send it as attachment.
All of these examples upload the file on the server. Is there a way to send the csv created without upload it so to be sent ...
0
votes
0
answers
46
views
How can I ensure ensure emails from my domain get delivered and avoid them being marked as spam by Hotmail/Outlook? [duplicate]
I'm using PHPMailer to send emails from my hostgator webserver account. It's working as I'm getting emails at my professional domain and gmail fine. But when the recipient is with outlook, hotmail etc ...
0
votes
0
answers
34
views
CodeIgniter 3 email not sending emails to other email servers but apple
For some reason I'm just getting emails to apple emails but gmail, Microsoft etc. I'm using my own smtp server with SSL, I checked SPF and there is no problems. I also checked headers and etc.
I also ...
0
votes
1
answer
63
views
How to Print a Message in html After Successfully Sending an Email Using a PHP mailer?
I'm using PHP mailer to my html contact form using action="mail.php". Well, I took the code from a youtube tutorial, my only problem is with this line of code <?php print r($message);?>...
-2
votes
0
answers
25
views
Php not updating word document
I had created an automation system with php which takes information straight from a contact form on my website and fills in the information into a word template contract and sends me the contract with ...
1
vote
1
answer
431
views
How to use PHPMailer, after 30 May 2022 when "Less secure app" is no longer an option?
I have been using PHPMailer for a long time to send emails using Google credentials (login and password) by enabling the "Less secure app" option in the Google settings.
As Google is ...
0
votes
0
answers
26
views
BackWPup: Error Class 'PHPMailer\PHPMailer\SMTP' not found [wordpress]
BackWPup: Error Class PHPMailer\PHPMailer\SMTP not found message is dispalayed when I try backup with BackWPup.
Is there any way to avoid this?
0
votes
0
answers
18
views
Why I am not able to send mail using mail() in php? [duplicate]
I already have made changes in both php.ini and sendmail.ini but still it doesn't work
php.ini
[mail function]
SMTP=smtp.gmail.com
smtp_port=25
sendmail_from = kaush3207@gmail.com
sendmail_path = &...
1
vote
1
answer
33
views
i would like to send html content with css to email using php. this i got so far. all work but the content that was sen in email is not interpreted
this is the code where i send email.
the file_get_contents(); i retrieve the content but in plain format text.
the css style didnt read.
<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\...
0
votes
1
answer
31
views
Can't use PHPMailer to sign with S/MIME, getting "Signing Error: "
I'm using phpmailer to try to send signed emails (S/MIME).
I used this
excellent tutorial by John Dalesandro
to create a Self-Signed S/MIME Certificate and package it in PKCS12 Format.
I then followed ...
0
votes
0
answers
33
views
how to center link between two others with phpmailer
I'm using phpmailer 6.6.0 with php 8.0. This is how the email looks in outlook:
and this is how the email looks on a iphone 11 with ios 15.4.1:
Notice how the SwB Link is centered on outlook but it ...
0
votes
1
answer
24
views
Laravel implement assertSentFrom specific address Mailable Testing
Trying to get to grips with Mocking and test cases, I want to test that a Mailable TestMail is sent from company@company.com, the documentation provides hasTo, hasCc, and hasBcc but doesn't look like ...
0
votes
1
answer
38
views
Is there some way to get the Message-Id from PHPMailer at the moment of sending the e-mail?
With PHPMailer, when you do ->send(), it appears to not send any kind of "information" back except true/false: https://phpmailer.github.io/PHPMailer/classes/PHPMailer-PHPMailer-PHPMailer....
1
vote
1
answer
49
views
Send mail using an email account created on Hostinger (PHP)
I am sending an email through PHPMailer, the code is hosted on hostinger's hpanel and I am using an email I created on the hpanel. After running the code, I get no errors, and no feedback on whether ...
0
votes
1
answer
47
views
PHPMailer GMAIL XOAUTH2 with multiple GMAIL accounts for multiple virtual hosts
I host a web application that each client uses a different host name. I have successfully configured PHPMailer in the application to allow the client to enter their own SMTP information and send ...
0
votes
0
answers
29
views
Using date_default_timezone_set('Etc/UTC') in PHPMailer
I'm using PHPMailer in my project and I want to deploy it into an domain that I own for tests.
I found an example using SMTP in GitHub, and I'm using it on the project (https://github.com/PHPMailer/...
0
votes
1
answer
61
views
PHPmailer unable to connect
I've been trying to get PHPmailer to work but I stumble constantly on the same error. I made a gmail account and normally all settings should be right.
I get the following error: Message could not be ...
0
votes
2
answers
87
views
PHPmailer - preg_match() expects parameter 2 to be string, array given
The code below used to work fine a while ago, sending emails with images to Blogger's email; or sending emails to any provided email address. Unfortunately I have no idea when it stopped working and ...
0
votes
0
answers
13
views
PHPMailer Manual Setup Failing, Folder Hierarchy Issue
I am using the following link to manually install phpmailer:
https://github.com/PHPMailer/PHPMailer . I am using SiteGround as my hosting site, therefore it has to be a manual installation, there is ...
0
votes
0
answers
39
views
Is there any character limit in mail() in php? [duplicate]
I am sending an email from PHP mail(). Which was working nicely, But for the last two days I am not receiving an email. When I checked the code I got that when I am sending 2200 characters, email is ...
1
vote
1
answer
36
views
Send DKIM - signed emails through third-party email service provider API?
This question is a follow-up question to this one.
The problem is that my current E-Mail provider does not natively support DKIM-signing, but I need that DKIM feature to make certain API integrations ...
0
votes
1
answer
25
views
Unable to send attachment in email using wp_mail() and amazon ses
I have added the following code to send attachments using wp_mail() function. The Runcloud server on which the code is hosted is configured with Amazon SES. On that, the attachment is not sent with ...
0
votes
0
answers
13
views
Store blob as file
I am trying to save blob from a form as a file on my server without success:
<form method="post" name="myform" action="action.php">
<input type="hidden&...
0
votes
0
answers
30
views
Email still dropping into SPAM after SPF etc.; why?
I've automated the sending of my e-mails in PHP using PHPMailer:
$mail->isSMTP();
$mail->SMTPAuth = true;
$mail->Host = $host; // verified with my host
$mail->Port = 465;
$mail->...
-1
votes
1
answer
45
views
How to test whether SMTP connection credentials are correct without sending email in WordPress
I have configured the PHP mailer settings in WordPress in the following way. How can I verify if the STMP credentials that I set are correct or not without sending any email using wp_mail()?
...
0
votes
2
answers
66
views
How can I Send HTML outputs to an email as a PDF using DOMPDF
I'm using this library from Dompdf, after showing the file as a PDF I want to send it to my email, I have tried several methods but I have not found a solution so far.
Thanks in advance
$dompdf = new ...
0
votes
3
answers
62
views
utf-8 for attachment in PHPmailer
I've got problem with attachment name, if there are polish language diacritical signs, it won't display those signs.
I added just below php mailer class $mail->CharSet = 'UTF-8'; and it works for ...