无法从PHP发送电子邮件 [英] not able to send email from PHP

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

问题描述

我想从我的PHP页面发送电子邮件给用户.
应该有一个收件人"文本框
主题"文本框
消息"文本框.

我不知道该任务适合哪种编码.
我的其他页面已准备就绪,仅无法创建此页面.

这不是我的家庭任务.它是一家酒店的项目.我想向访问者发送电子邮件的地方,到他们的电子邮件地址.

请帮助我

I want to send Email to the users from my PHP page.
There should be a "to" textbox
"subject" text box
"Message" text box.

I don''t know what coding will be appropiate for this task.
My other pages are ready only not able to create this page.

This not my home task. Its a Project of a hotel. Where I want to send email to the visitors, to their email address.

please help me

推荐答案

Google是您的朋友:很好,经常拜访他.与在这里发布问题相比,他可以更快地回答问题.

使用您的主题作为搜索词进行的快速搜索产生了将近3亿次匹配:

http://www. google.co.uk/search?ix=sea&sourceid=chrome&ie=UTF-8&q=send+email+from+PHP [
Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...

A very quick search using your subject as the search term gave nearly 300,000,000 hits:

http://www.google.co.uk/search?ix=sea&sourceid=chrome&ie=UTF-8&q=send+email+from+PHP[^]

In future, please try to do at least basic research yourself, and not waste your time or ours.


这里:
http://php.net/manual/en/function.mail.php [ ^ ].

我还想警告您,避免发生通常会导致您的身边容易被恶意艺术家捕食的错误.请查看我过去的回答:
无法发送邮件,它显示了以下代码中的错误. [
Here:
http://php.net/manual/en/function.mail.php[^].

I also want to warn you against a usual mistake which can make your side an easy prey of malicious artists. Please see my past answer:
unable to send mail , it showing the error in below code .[^].

—SA


<?php


这篇关于无法从PHP发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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