方法一:在服务器里配置SMTP服务器

(网上有很多方法)

方法二:使用插件:WP Mail SMTP

步骤一:下载插件:WP Mail SMTP

步骤二:配置

2.1选择其他SMTP

2.2配置SMTP主机

3. 配置发件人

服务器已经配置好了,下面测试下发送

配置好的SMTP服务器,与wordpress表单对接

配置表单

1.配置表单

<div class="contact-form-wrapp woostify-contact-form"> <div class="row"> <div class="col-md-6"> <label for="name" class="label-title">Your Name</label> [text* your-name id:name class:input-form] </div> <div class="col-md-6"> <label for="email" class="label-title">Your Email</label> [email* your-email id:email class:input-form] </div> <div class="col-md-12"> <label for="subject" class="label-title">Your Subject</label> [text* your-subject id:subject class:input-form] </div> <div class="col-md-12"> <label for="textarea" class="label-title">Your Message</label> [textarea* your-message id:message class:textarea-form] </div> <div class="col-md-12"> [submit id:button-submit-contact class:button "Send Message"] </div> </div> </div>

2.配置邮箱

3.粘贴简码

[contact-form-7 id="1280" title="Form Contact"]

原文链接:https://blog.csdn.net/zhongjie19/article/details/121796484?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522166666867416782391898194%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=166666867416782391898194&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~times_rank-12-121796484-null-null.article_score_rank_blog&utm_term=wordpress

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注