wordpress如何通过网站上的联系表单发送电子邮件? [英] How does wordpress send an email through the contact form on the website?

查看:889
本文介绍了wordpress如何通过网站上的联系表单发送电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



当我们创建一个wordpress网站时,它会通过填写联系表单为我们添加一个发送邮件的插件。



我的问题是,wordpress如何做到这一点,他们是否有一个邮件服务器通过联系表单获取所有数据并向我们发送电子邮件?



我的问题可能听起来有些笨,但我真的很想知道他们是怎么做的?



感谢你的帮助!



亲切的问候,

Ozgur

解决方案

< blockquote>默认情况下,WordPress使用名为mail()的PHP函数在主机服务器支持时发送邮件通知。某些服务器要求使用有效的SMTP帐户发送所有邮件。在这种情况下,主机提供商通常包含SMTP插件,因此您可以配置帐户凭据以从SMTP帐户发送邮件。激活后,插件会覆盖默认的WordPress mail()函数。


Hi guys,

When we create a wordpress website, it gives us the add a plugin for sending mail by filling a contact form.

My question is, how does wordpress able to do it, do they have a mail server that it gets all the data through the contact form and sends us an email?

My question might sound a bit dumm, but I really wonder how are they doing it?

Thanks for your help in advance!

Kind Regards,
Ozgur

解决方案

WordPress, by default, uses a PHP function called mail() to send mail notifications if the host server supports it. Some servers require that all mail be sent using a valid SMTP account. In that case, host providers often include a SMTP plugin so you can configure your account credentials for sending mail from your SMTP account. When activated, the plugin overrides the default WordPress mail() function.


这篇关于wordpress如何通过网站上的联系表单发送电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆