2022 Developer Survey is open! Take survey.

Questions tagged [smtp]

Simple Mail Transport Protocol-- one of several protocols used by mail servers and mail clients to send and receive email.

Filter by
Sorted by
Tagged with
0 votes
1 answer
10 views

Mailing issues with wordpress?

I'm working on a client's website and they are not getting messages from the site anymore. I've found that no mail will go to an email address ending in @gmail.com, I can send mail just fine to anyone ...
user avatar
0 votes
0 answers
22 views

Using SMTP Function instead of Plugin (functions.php)

While this works just fine, I am concerned that it poses a security threat. Does it? add_action( 'phpmailer_init', 'send_email_using_smtp' ); function bsend_email_using_smtp( $phpmailer ) { $phpmailer-...
user avatar
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
0 votes
1 answer
58 views

Using WP_Mail on MacOS 12 (Monterey - M1) [closed]

On a brand new Macbook running Monterey (M1), as PHP was removed by Apple on OS 12, I have removed all "AMP" preinstalled by Apple and installed HomeBrew "AMP" (with PHP 7.4), ...
user avatar
  • 873
0 votes
0 answers
22 views

Submitting product attributes via Ninja Forms wordpress?

I have a wordpress website selling products. On the product page there is a button “Ask a question”, through which a pop-up form created on the basis of the “Ninja forms” plugin opens. There are ...
user avatar
  • 1
0 votes
0 answers
38 views

Is it secure to use SMTP password in .php file in WordPress website?

Currently I am making feedback contact form without a plugin. Trying not to use plugins if possible. In action .php file there must be written server settings such as SMTP server, SMTP username etc. ...
user avatar
0 votes
1 answer
32 views

SMTP emails not picking up the correct From name and From email

I am using an SMTP plugin to manage my emails in WordPress. Previously I used a plugin called EasyWP SMTP. since it did not meet my needs I unstalled it and installed Post SMTP Mailer. now everything ...
user avatar
0 votes
0 answers
67 views

Running SMTP Conditionally

I'm working on developing a support website and I'm using Gravity Forms to handle the support ticket form. I have the form notification configured so that the "From" shows my client's email ...
user avatar
0 votes
0 answers
30 views

Send email using wordpress plugin on behalf of someone with their permission

I have seen a few sites that send an email on behalf of a user, however when the email comes through it appears only as if its come from the user. For example contact forms on websites. I am looking ...
user avatar
  • 101
0 votes
2 answers
320 views

SMTP Error: Could not authenticate [closed]

In wordpress I am getting error SMTP Error: Could not authenticate. Here is the log file: Versions: WordPress: 5.6 WordPress MS: No PHP: 7.4.3 WP Mail SMTP: 2.5.1 Params: Mailer: smtp Constants: Yes ...
user avatar
2 votes
0 answers
25 views

Storing Email Account Passwords for SMTP Mailing for a WordPress Plugin

I am currently converting a client booking system I created into a WordPress plugin. It uses the PHPMailer library to send emails. I am using SMTP security to send the emails and thus need the email ...
user avatar
1 vote
2 answers
105 views

Setting up 2 SMTP accounts: 1 for wordpress and 1 for woocommerce

I wish to set up 2 smtp accounts on my wordpress site: 1 for woocommerce orders 1 for all other forms i have the following code, but i am having trouble filtering the woocommmerce order. I am ...
user avatar
  • 13
2 votes
1 answer
607 views

Send emails with wp_mail() using SMTP configured in plugin

I have the plugin Easy WP SMTP installed and there I have configured sending my WordPress mails with SMTP. I send emails with a cronjob to my users with the wp_mail() function. I was asking myself, ...
user avatar
1 vote
1 answer
482 views

Wordpress 'on behalf of' email

Hi all the below contains example names so not to give my website away. I have a wordpress site called blah.com that has a woocommerce shopping cart which is blah.com/products When someone receives ...
user avatar
  • 13
1 vote
1 answer
2k views

Hook into and send mail using WP Mail SMTP type plugin from HTML static front page?

I am reusing an HTML Bootstrap page as a static front page on a WordPress site. The front page has a form in it which I want to use as a Contact Me form. I've installed the widely used WP Mail SMTP ...
user avatar
1 vote
1 answer
308 views

How to configure two SMTP Server for wordpress

What I need is : I need to send transactional e-mails from two SMTP configurations. All WooCommerce side of e-mails should send from sales@mydomain.com. Example: order summary, delivery status. ...
user avatar
  • 13
3 votes
2 answers
967 views

Safe to store SMTP password in wp-config.php?

I am using SMTP to send email through WordPress, however this requires using plain text password. What if this password is stored in wp-config.php? Very similar to this. Why this topic differs from ...
user avatar
  • 873
0 votes
1 answer
433 views

WP Mail plugin not sending the mail

the plugin WP Mail SMTP v1.4.2 logged this error during the last time it tried to send an email: Mailer: Default (none) PHPMailer was able to connect to SMTP server but failed while trying to send an ...
user avatar
  • 11
0 votes
0 answers
37 views

can't submit mail from contact 7 form site using wp mail smtp

I have hosted a wordpress site in bigrock server.Then moved it to clients server(Godaddy). Then the contact 7 form stopped working.i have configured the smtp using zoho mail.It is working fine in ...
user avatar
3 votes
2 answers
857 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
0 votes
1 answer
1k views

How can I configure an SMTP Server?

I'm trying to follow the instructions here: https://gist.github.com/butlerblog/7e4dbafcbc61b15505ee8ca90510f1e7 But I'm getting confused. I'm not sure what arguments to pass where. Here is what I ...
user avatar
  • 315
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
1 answer
8k views

Easy WP SMTP plugin test email failed

I'm new to the Wordpress world and just installed the Easy WP SMTP plugin on the website. At the time of sending the test email, I get an error message. The debug info says, Debug Info CLIENT -> ...
user avatar
  • 103
0 votes
1 answer
6k views

Getting 400 Error: redirect_uri_mismatch when trying to grant permission to Gmail SMTP plugin

I am trying to add Google SMTP plugin to my wordpress website. I have installed plugin, then went to Google Developer Console created new project, added Gmail API, added Credentials. Now this step ...
user avatar
0 votes
1 answer
79 views

SMTP not working for Comments Email Notifications

The problem is that I'm not receiving wordpress emails except the ones generated by sucuri plugin. I want admin to receive email notification on every new comment and post updates. Previously, my ...
user avatar
  • 11
1 vote
1 answer
880 views

Email Bounce Address

I'm having a little issue with my SMTP. I use a plugin WP MAIL to manage the email configurations as it makes it easy to run in/outgoing emails without leaving unsent or stuck mails. Everything is ...
user avatar
0 votes
1 answer
1k views

Is Postfix required for WordPress contact forms in general?

If I remember correctly, I could get data from ContactForm7, for example, into my personal Gmail account, without doing apt-get install postfix -y, though I might be wrong and I did install it. I don'...
user avatar
0 votes
1 answer
251 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
1 answer
2k views

What is the way to hook all wordpress email

I have a wordpress site that have plugins: Contact form 7, WP Mail SMTP Plugin by Mail Bank, Spartpost...All of these plugins are able to send out email by anyway (wp_mail, smtp, http api)... I am ...
user avatar
  • 3
0 votes
0 answers
517 views

WP_mail() Issue. Duplicate emails if $_GET['A'] == email

I have been scratching my head since last few hours. But still not able to find the cause of the issue. I have created a wp_mail() function which is as follows: if( !empty( $_GET['A'] ) && !...
user avatar
  • 101
1 vote
1 answer
153 views

WordPress unable to send mail

I am unable to get email functioning in WP 4.8. I have WordPress running on a Bitnami LAMP stack. All modules/plugins/themes/languages are up to date. I have an SMTP host that is effectively an ...
user avatar
  • 119
0 votes
1 answer
827 views

Different SMTP based on domain

I have a multi-domain wordpress site, set up so that https://example1.com and https://example2.com both work and show the same content (but with the address bar showing whichever domain was used). I ...
user avatar
  • 883
0 votes
3 answers
2k views

SMTP connect() failed

We are trying to get our set up an SMTP function but keep hitting errors with the test email. We even tried both WP-Mail-SMTP and Easy WP SMTP. After talking with our host at WPEngine we couldn't find ...
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
0 votes
3 answers
1k views

WordPress doesn't send SMTP email even by phpmailer hook

I used this code in my child theme(child theme functions.php): add_action( 'phpmailer_init', 'wpse8170_phpmailer_init',0 ); function wpse8170_phpmailer_init( PHPMailer $phpmailer ) { $...
user avatar
1 vote
1 answer
846 views

SMTP Issues with Office 365

I'm having issues setting up SMTP for Office 365 using the Easy WP SMTP plugin. I keep getting the following vague error message. SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/...
user avatar
  • 259
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
2 votes
1 answer
7k views

How to use 'phpmailer_init' SMTP settings only on certain 'wp_mail' actions?

Is there a conditional check I can run for phpmailer_init or a wp_mail parameter that let's me apply my custom phpmailer_init SMTP settings only on specific wp_mail actions or does phpmailer_init ...
user avatar
  • 177
0 votes
0 answers
3k views

Sending SMTP mail using a server with self-signed SSL

The problem I need to solve I have a web server in a network where the port 25 is blocked for outgoing traffic, and in order to send emails it is mandatory to obtain an account and use authentication....
user avatar
0 votes
0 answers
213 views

Email Piping using google apps within WP Engine

I am working on a feature where I need to catch all the incoming emails or email piping. My site is hosted in WPEngine but they don't host emails. They have suggested third party mailing service like ...
user avatar
-1 votes
1 answer
1k views

How to Configure SMTP on wordpress Cant Send Email

I am Currently working on a project in which my only problem is SENDING an email from site to Gmaill yahoo etc. I want to configure the SMTP so I can make Independent Email Sending. My problem is ...
user avatar
0 votes
2 answers
1k views

Why is wp-login trying to send an email?

My host sent me the following message: Below are the recently upload scripts that contain code to send email. You may wish to inspect them to ensure they are not sending out SPAM. /home/...
user avatar
0 votes
0 answers
238 views

Change wp_mail SMTP settings for each E-Mail

I want to send mails using wp_mail function. I have multiple SMTP accounts login details. I want to send some mail using Account A and some using Account B. How can I send mails with different ...
user avatar
3 votes
1 answer
23k views

Contact Form 7 + Configure SMTP: Sender email appearing as my own email [closed]

I have Contact Form 7 and Configure SMTP installed on my website. When a user submits a message through the form, everything comes through fine but the sender email is never displayed. Instead, it is ...
user avatar
  • 1,159
2 votes
3 answers
5k views

Error when requesting password reset email - wp authentication

I get the following error whenever a user tries to request a password reset email: The e-mail could not be sent. Possible reason: your host may have disabled the mail() function. As per ...
user avatar
  • 960
0 votes
1 answer
717 views

how wordpress smtp works? my emailing is not working

All of my wordpress emailing is not working. I have created a test file for smtp emailing. it works OK. I put on /test.php and works great! So I think that hosting or server don't cause this problem. ...
user avatar
  • 683
1 vote
0 answers
423 views

Google Apps SMTP for WP MultiSite?

How can you force WordPress MultiSite to send all emails via a Google Apps SMTP server? I have attempted to use Easy WP SMPTP, however that does not work exactly as I'd hoped, not to mention it fails ...
user avatar
0 votes
1 answer
225 views

Wordpress SMTP EMail

I have this plugin on wordpress an already configure class-phpmailer.php to send emails by SMTP. My hosting only accept SMTP emails. When I register in wordpress I receive an email, when I contact ...
user avatar
  • 1
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