WP Mail SMTP by WPForms


Este plugin reconfigura a função wp_mail() para usar SMTP ao invés de mail() e cria uma página de opções que permite especificar várias opções.

Você pode configurar as seguintes opções:

  • Especifique o nome e endereço de e-mail do remetente para e-mails enviados.
  • Escolha entre enviar e-mails com SMTP ou pela função PHP mail().
  • Especifique um servidor SMTP (o padrão é localhost).
  • Especifique uma porta SMTP (o padrão é 25).
  • Escolha a criptografia SSL / TLS (não é o mesmo que STARTTLS).
  • Escolha entre usar autenticação SMTP ou não (o padrão é não usar).
  • Especifique usuário e senha SMTP.

WP Mail SMTP plugin works with all major email services such as Gmail, Yahoo, Outlook, Microsoft Live, and any other email sending service that offers SMTP.

Why WP Mail SMTP

The goal of WP Mail SMTP plugin is to help fix the common “WordPress not sending an email issue”.

Often times an email sent out by your WordPress site either lands in the spam folder or get completely rejected by popular email providers.

SMTP (Simple Mail Transfer Protocol) is the industry standard for sending emails. WP Mail SMTP helps you use proper authentication which increases email deliverability.


WP Mail SMTP plugin was originally created by Callum Macdonald. It is now owned and maintained by the team behind WPForms – the best drag & drop form builder for WordPress.

You can try the free version of WPForms plugin to see why it’s the best in the market.

What’s Next

If you like this plugin, then consider checking out our other projects:

Visit WPBeginner to learn from our WordPress Tutorials and find out about other best WordPress plugins.

Imagens de tela

  • Opções avançadas de e-mail
  • Opções SMTP
  • Opções SMTP do Pepipost
  • Envio de um e-mail de teste


  1. Install WP Mail SMTP by WPForms either via the WordPress.org plugin repository or by uploading the files to your server. (See instructions on how to install a WordPress plugin)
  2. Activate WP Mail SMTP by WPForms.
  3. Navigate to the Settings area of WP Mail SMTP in the WordPress admin.
  4. Want to support us? Consider trying WPForms Pro – the best WordPress contact form plugin!


Installation Instructions
  1. Install WP Mail SMTP by WPForms either via the WordPress.org plugin repository or by uploading the files to your server. (See instructions on how to install a WordPress plugin)
  2. Activate WP Mail SMTP by WPForms.
  3. Navigate to the Settings area of WP Mail SMTP in the WordPress admin.
  4. Want to support us? Consider trying WPForms Pro – the best WordPress contact form plugin!
Meu plugin ainda envia e-mails pela função mail()

Se outros plugins que você está usando não foram programados para usar a função wp_mail(), mas ao invés disso chama a função PHP mail() diretamente, eles não utilizarão as configurações deste plugin. Normalmente, você pode editar os outros plugins e simplesmente substituir as chamadas à mail( por wp_mail( (somente adicionando o prefixo wp_) e isso já resolverá. Eu testei isso em alguns plugins e funciona, mas talvez não funcione em todos eles.

Este plugin funcionará com versões do WordPress anteriores à 2.7?

Não. O WordPress 2.7 alterou o modo como as opções eram atualizadas, então a página de opções só funcionará na versão 2.7 ou posteriores.

Eu posso usar este plugin para enviar e-mail via Gmail / Google Apps

Sim. Use as seguintes configurações:
Mailer: SMTP
Servidor SMTP: smtp.gmail.com
Porta SMTP: 465
Criptografia: SSL
Autenticação: Sim
Nome de usuário: seu endereço completo no gmail
Senha: sua senha de e-mail

Você pode adicionar o recurso x, y ou z ao plugin?

Resposta curta: talvez.

By all means please contact us to discuss features or options you’d like to see added to the plugin. We can’t guarantee to add all of them, but we will consider all sensible requests. We can be contacted here:


Better than the others

Solved my problem that others could not solve.

However when I select TLS the browser remains loading, although this also do the other plugins

stopped workong

my server did not support tls and the plugin tried to force it.
I moved to Easy WP SMTP plugin

Works well, but doesn’t play well with the rest of the system

This plugin didn’t accept the custom headers that the contact form of the ACADP plugin generates. ACADP support was able to tweak my installation to make their form work. Then I discovered that this plugin also wasn’t able to send bbPress forum notifications. So I switched to Easy WP SMTP, and everything worked.
That said, the smtp sender itself works well. I’m using Office 365 as my account.

Handy for successful mail delivery

As SPAM rules get tighter every year, delivering mail without being routed via a proper email account, is becoming impossible.

This plugin works really well and my only issue is the password being stored in plain text.


If you have trouble with Outlook365 sending, we got it to work after a lot of trouble. Our issue was that we had to sign into webmail with Office365.com and after that it worked!

Leia todas as 224 avaliações

Contribuidores e desenvolvedores

“WP Mail SMTP by WPForms” é um software com código aberto. As seguintes pessoas contribuíram para este plugin.


“WP Mail SMTP by WPForms” foi traduzido para 15 localidades. Obrigado aos tradutores por suas contribuições.

Traduzir “WP Mail SMTP by WPForms” para o seu idioma.

Interessado no desenvolvimento?

Navegue pelo código, dê uma olhada no repositório SVN ou assine o registro de desenvolvimento via RSS.

Registro de alterações


  • Addition of Pepipost and cleanup of admin page.


  • Addition of Pepipost and cleanup of admin page.


  • Minor security fix, sanitize test email address.


  • Minor security fix, hat tip JD Grimes.


  • Improvement to the test email function, very low priority update.


  • Fixing reported issue with passing by reference. props Adam Conway


  • Removing the deprecation notice.


  • $phpmailer->language became protected in WP 3.2, no longer unset on debug output.


  • Typo in the From email description.
  • Removed changelog from plugin file, no need to duplicate it.
  • Optionally set $phpmailer->Sender from from email, helps with sendmail / mail().


  • Fix for a long standing bug that caused an error during plugin activation.


  • The Settings link really does work this time, promise. Apologies for the unnecessary updates.


  • Bugfix, the settings link on the Plugin page was broken by 0.8.4.


  • Minor bugfix, remove use of esc_html() to improve backwards compatibility.
  • Removed second options page menu props ovidiu.


  • Bugfix, return WPMS_MAIL_FROM_NAME, props nacin.
  • Add Settings link, props Mike Challis https://profiles.wordpress.org/MikeChallis/


  • Bugfix, call phpmailer_init_smtp() correctly, props Sinklar.


  • Internationalisation improvements.


  • Added port, SSL/TLS, option whitelisting, validate_email(), and constant options.


  • Added checks to only override the default from name / email


  • Added additional SMTP debugging output


  • Fixed a pre 2.3 bug to do with mail from


  • Added a check to display a warning on versions prior to 2.3


  • Upgraded to match 2.3 filters which add a second filter for from name


  • Fixed a bug in 0.4.1 and added more debugging output


  • Added $phpmailer->ErroInfo to the test mail output


  • Added the test email feature and cleaned up some other bits and pieces


  • Changed to use register_activation_hook for greater compatability


  • Added readme for WP-Plugins.org compatability


  • Various bugfixes and added From options


  • Reworked approach as suggested by westi, added options page


  • Initial approach, copying the wp_mail function and replacing it