2022 Developer Survey is open! Take survey.

Questions tagged [phpmailer]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

Wordpress doesn't work properly with non standard domain names - PHPMailer fails when initialising

While debugging Wordpress password reset functionality in a test environment on a local macbook, Wordpress would get stuck when sending emails. Basically, before sending emails, a check is done in wp-...
user avatar
  • 873
3 votes
0 answers
110 views

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 ...
user avatar
  • 131
1 vote
1 answer
124 views

How Can I Change Default Reply ToEmail

I want to set the SMTP settings manually instead of using a plugin. I did this using this resource. However, there is a problem. If the user clicks "Reply", a different e-mail appears. ...
user avatar
0 votes
0 answers
64 views

Wordpress wp_mail function crashing website

So i've been trying to send email from my functions.php script. When wp_mail function is fired, my entire website crashes. I have enabled all the error display settings in wp-config. I literally ...
user avatar
0 votes
1 answer
162 views

wp_mail not sending email on custom function

I have updated my wordpress to the new 5.7 version, I have a function in my functions.php file to send an email. The thing is, i have used this function before and it all worked well. Now after ...
user avatar
6 votes
1 answer
2k views

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(); $...
user avatar
  • 89
0 votes
1 answer
176 views

How to properly use AWS SES for a contact form?

Overall Goal: To have my contact form send me the details to my personal email How do I want to achieve it?: Not using any plugins Issue: When I use my custom PHPMailer function located in the ...
user avatar
  • 15
3 votes
2 answers
18k views

How to use PHPmailer in a function in WordPress

I have a function in the WordPress functions.php file that searches for a condition in user meta and sends an email to a user based on what it finds. I currently use wp_mail() to send the email, and ...
user avatar
  • 31
0 votes
1 answer
466 views

phpmailer_init ignored on REST calls

For testing purposes I've set up a mailtrap (dummy SMTP server) to catch all mail in and out of my local site. To do so, I hooked its configuration in the theme's functions.php like this: function ...
user avatar
  • 225
1 vote
1 answer
754 views

Redirect to another page after submission using wp_mail

I'm trying to redirect to user to another page after the form has been submitted using wp_mail. // Hooking up our functions to WordPress filters add_filter( 'wp_mail_from', 'wpb_sender_email' ); ...
user avatar
  • 113
3 votes
2 answers
858 views

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', 'myaddress@gmail.com' ); // Username to use for ...
user avatar
  • 315
2 votes
2 answers
273 views

User invite email not delivered - related to subdomain?

I have a problem where, on a new install of WordPress, I want to add a new user, but the user is not receiving the email with the confirmation link. I've done some research and understand that this ...
user avatar
1 vote
1 answer
856 views

How can I use get_bloginfo('admin_email') in a custom PHP file?

How can I use get_bloginfo('admin_email') in a custom PHP file located in the parent theme root directory? I've built a custom form and a PHP mail script separately, but now I'd like to send the form ...
user avatar
0 votes
1 answer
547 views

Multisite - SMTP not working on other network sites

I have WP Mail SMTP plugin setup on multisite, the email is sent from the parent site successfully, however, when trying the same or another email from the child site gives me following error: ...
user avatar
2 votes
1 answer
2k views

How to setup SMTP for only one specific wp_mail()

I just want to setup SMTP for a specific instance of wp_mail(). I have tested plugins like "Easy WP SMTP" and also checked how to set up SMTP manually but all these apply to the entire site and then ...
user avatar
0 votes
2 answers
606 views

How dynamically change wp_mail behaviour, sending html or plain text based on conditions?

I have several forms that send mails. Some of the mails should be sent as html, others as plain text. Right now I set the html option like this: add_action( 'phpmailer_init', 'mailer_config', 10, 1); ...
user avatar
0 votes
1 answer
252 views

wp mail smtp earlier version

Dose anyone have an earlier version of the plugin wp mail smtp? It doesn't work when I update the plugin. Send the earlier version to my email admin@cding.xyz will be appreciatted. Thanks in advance!
user avatar
  • 113
0 votes
0 answers
237 views

PHPMailer - Uploading a file

I'm using PHPMailer to send applications for jobs and can send over all the data except for the file e.g. word doc, PDF's. The process is; <input type="file" name="uploaded_file" class="...
user avatar
  • 53
2 votes
1 answer
4k views

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

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 = ...
user avatar
0 votes
2 answers
3k views

Create mail form using PHPmailer

I'm learning about coding plugin. I trying to create a form in plugin page and it can send mail. This is my code, but it doesn't work(I did not receive email and did not show any error). add_action(...
user avatar
  • 37
7 votes
1 answer
2k views

Why "Contact Form 7" doesn't update PHPmailer library?

I realized that popular Wordpress plugin Contact Form 7 uses this library https://github.com/PHPMailer/PHPMailer. When I check source of mail, which has been sended from Contact Form 7, it looks like ...
user avatar
  • 557
0 votes
3 answers
15k views

wp_mail not sending emails

I have used WP-Mail-SMTP to setup the mailer on my WordPress installation. I have tested it by sending email to my private mail. I am now trying to send the form data using wp_mail() function[WP]. ...
user avatar
0 votes
1 answer
302 views

WordPress stops executing code after the require() method

I'm trying to set up SMTP for my custom contact form. I have placed the latest PHPMailer folder in my theme folder. I created a page template for Contact Form and added the code for the contact ...
user avatar
1 vote
1 answer
557 views

WP mail sent to MS Exchange recipients = occasional email corruption?

My office processes many email receipts from WordPress-based forms (primarily using the Formidable Pro plugin). Starting in the last 6 months, one out of every ~15 emails sent from WP will come ...
user avatar
  • 125
0 votes
1 answer
2k views

How to make mailing queue using php's mail() function

I have a site running WordPress 4.3.1 and a hosts mail() limit of 14 mails per 5 minutes (Which is 2 mails per minute) and cron limit of min 5 minutes, and I am running everyone can register, Profile ...
user avatar
1 vote
1 answer
3k views

Why wp_mail() function isn't sending any emails and displaying '0' in Chrome 'Network' response

I'm trying to send emails through WordPress using the wp_mail() function and it doesn't seem to work. It's displaying 0 in Chrome 'Network' response with Status Code:200 OK This is my code part: ...
user avatar
  • 255
1 vote
1 answer
36 views

Emailing passwords: Setup installed on home server using XAMPP

I've just delved into the WP world and all in all it's going quite well. I have a server at home that I'm using to host the sites. All is working fine except the password emails are not being sent ...
user avatar
  • 151
0 votes
1 answer
408 views

How can I format email notification after registration?

I saw already this answer. And it helped me to make unique mail. It's great. But how to format some text using HTML? For example to work with tags <b> <i> <font color="red"> <...
user avatar
  • 91
0 votes
2 answers
171 views

FromName --> ReplyTo Name wordpress multisite contact form

When the form email lands in my inbox, I would like the "from email" (FromName) to reflect the senders email address name. This is with the popular recaptcha form plugin: http://wordpress.org/plugins/...
user avatar
29 votes
2 answers
18k views

Page returns 404 with POST variables, but not without

I have a problem with my page. I'm trying to make a "Contact Us" page. It's working perfectly fine design-wise. But when I try to send the form to the same page as origin. It returns 404 error. It ...
user avatar
23 votes
3 answers
52k views

How to set SMTP programmatically

Assume we have blank WP site and we want to setup SMTP settings programmatically in our plugin or theme. What's the easiest way to do it without changing core files?
user avatar
0 votes
3 answers
10k views

Contact Form 7 not sending emails- no confirmation, no error [closed]

Live site. I've noticed that Contact Form 7 recently stopped working, despite my not having touched any of the settings. What's odd is that I receive neither a confirmation nor an error message; I ...
user avatar
1 vote
1 answer
4k views

Setting Custom Email From name and email address in wp_email()

I am writing a custom plugin that sends an email to users from admin/front end section. I am using wp_email() to send emails and emails are being sent fine. I am testing this on a plain WP ...
user avatar
  • 157
3 votes
3 answers
16k views

Using SMTP for outgoing mails (PHPMailer) on AWS instance?

I moved one of my wordpress site to an AWS instance. But once I got it working, noticed that none of the notifications or contact emails were being sent through. On researching the issue, I found ...
user avatar