如何使用php发送邮件 [英] how to send a mail using php

查看:70
本文介绍了如何使用php发送邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Ajax和php编码发送邮件?

How to send the mail using Ajax and php coding?

推荐答案

如何: ^ ]?有关放入php.ini中的内容的信息,请阅读 http://email.about.com/od/emailprogrammingtips/qt/Configure_PHP_to_Use_a_Remote_SMTP_Server_for_Sending_Mail.htm [ http://api.jquery.com/category/ajax/ [ ^ ].

干杯!

-MRB
How''s that: http://www.webcheatsheet.com/PHP/send_email_text_html_attachment.php[^]? And for what to put in the php.ini read this http://email.about.com/od/emailprogrammingtips/qt/Configure_PHP_to_Use_a_Remote_SMTP_Server_for_Sending_Mail.htm[^]. Finally for using AJAX I can recommend dearly to use jQuery: http://api.jquery.com/category/ajax/[^].

Cheers!

-MRB


是的,您可以使用AJAX发送邮件.首先,您需要创建发送邮件的php文件,并在表单提交页面上,只需调用JavaScript函数即可,该函数通过使用AJAX提交表单来调用php文件,例如

Yes, you can send mail using AJAX. At first, you need to create php file which send mail and at the form submitting page, just call a JavaScript function which call the php file by submitting the form using AJAX like

var name =


(" input#name").val(); var email =
("input#name").val(); var email=


这篇关于如何使用php发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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