Questions tagged [phpmailer]

The tag has no usage guidance.

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

Run PHPMailer function after ajax function completes that adds row to custom table

Is there any way of calling a separate (php) function to send an email after ajax success? Code below works fine and as intended (cropped some bits out for brevity...) what I am looking to do is to ...
Jaimee Page's user avatar
0 votes
0 answers
26 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-...
Riccardo's user avatar
  • 931
3 votes
0 answers
341 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 ...
MT3's user avatar
  • 131
1 vote
1 answer
536 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
217 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 ...
Thando Hlophe's user avatar
0 votes
1 answer
645 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 ...
Thando Hlophe's user avatar
7 votes
1 answer
5k 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(); $...
km onur's user avatar
  • 109
0 votes
1 answer
202 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 ...
Steve's user avatar
  • 25
5 votes
2 answers
26k 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 ...
Rob H's user avatar
  • 51
0 votes
1 answer
796 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 ...
GigiSan's user avatar
  • 245
1 vote
1 answer
944 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' ); ...
Henshall's user avatar
  • 113
3 votes
2 answers
1k 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', 'my[email protected]' ); // Username to use for ...
ellen's user avatar
  • 345
2 votes
2 answers
406 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 ...
user26529's user avatar
1 vote
1 answer
1k 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 ...
Gabriel H.'s user avatar
0 votes
1 answer
598 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: ...
Faizan Ali's user avatar
2 votes
2 answers
4k 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 ...
Unnikrishnan R's user avatar
0 votes
2 answers
751 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); ...
Luca Reghellin's user avatar
0 votes
1 answer
493 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!
C. Ding's user avatar
  • 113
0 votes
0 answers
288 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="...
Sam's 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 = ...
eskimopest's 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(...
kyrie's 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 ...
mirsad's 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]. ...
Rahul Bali's user avatar
0 votes
1 answer
314 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 ...
IAmMilinPatel's user avatar
1 vote
1 answer
571 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 ...
samJL's 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 ...
ArsenArsen's user avatar
1 vote
1 answer
4k 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: ...
Kar19's 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 ...
null's 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"> <...
okonik's user avatar
  • 91
0 votes
2 answers
195 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/...
bottomofthestack's user avatar
30 votes
2 answers
19k 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 ...
Frederik Spang's user avatar
23 votes
3 answers
54k 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?
Eugene Manuilov's user avatar
0 votes
3 answers
11k 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 ...
user1255049's 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 ...
Nitesh's user avatar
  • 157
3 votes
3 answers
17k 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 ...
lostInTransit's user avatar