发邮件给我 [英] send email to me

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

问题描述

亲爱的,

我创建了一个网站。

在联系我们页面中我想发送所有信息(由

输入访问者在文本boxex)直接到我的电子邮件地址。

这样做我不知道因为我是PHP新手。

提前感谢

Dev

解决方案

10月24日上午7:13,Dev< hanu ... @ gmail.comwrote :


亲爱的所有人,

我创建了一个网站。

在联系我们页面我想要将所有信息(由

访问者在文本框中输入)直接发送到我的电子邮件地址。

这样做我不知道因为我是PHP新手。

提前感谢

Dev



为了帮助您入门 - http://us.php.net/manual/en/ref.mail.php


对于可用的邮件功能,PHP mu st可以在编译期间访问系统上的

sendmail二进制文件。如果您使用另一个

邮件程序,例如qmail或postfix,请务必使用随附的相应的

sendmail包装程序。 PHP将首先在您的PATH中查找

sendmail,然后在以下内容中:/ usr / bin:/ usr / sbin:/

usr / etc:/ etc:在/ usr / ucblib中:/ usr / lib目录。强烈建议您从PATH获得

sendmail。另外,编译PHP

的用户必须有权访问sendmail二进制文件。


如果你想使用一个包 - http://pear.php.net/package/Mail 和/

http://pear.php.net/package/Mail_Mime


PEAR的邮件包定义了一个用于在PEAR层次结构下实现邮件的接口

。它还为多个邮件程序后端提供了有用的支持功能

。目前支持的后端包括:

PHP的本机mail()函数,sendmail和SMTP。这个包还

提供了一个RFC822电子邮件地址列表验证实用程序类。


Mail_Mime提供了处理创建和操作的类
$ b $ mime消息的b。

它允许人们创建包含以下内容的电子邮件消息:

*文本部分

* HTML部件

*内联HTML图像

*附件

*附加消息


从版本1.4.0开始,它还允许

文件名,主题,收件人等非US-ASCII字符。


HTH ....


Dev通过电子邮件发送:


亲爱的所有人,

我创建了一个网站。
$联系我们页面中的b $ b我想直接将所有信息(由

访问者在文本框中输入)发送到我的电子邮件地址。

这样做我我不知道,因为我是PHP新手。

提前感谢

开发



尝试查看手册,这里:
http://uk2.php.net/manual/en/ref.mail.php




" MS" < No ********* @ No.Spam.Thank.You.com在留言中写道

新闻:bP *************** ****@text.news.blueyonder.co .uk ...


Dev通过电子邮件发送:


>亲爱的所有人,
我创建了一个网站。
在联系我们页面中我想将所有信息(由访问者在文本框中输入)直接发送到我的电子邮箱邮件地址。
这样做我不知道因为我是PHP的新手。
提前感谢
Dev



试试在这里查看手册:
http:/ /uk2.php.net/manual/en/ref.mail.php



ahhh!


谁是*至少*可能是RTFM?谁最需要RTFM?


来自谷壳的小麦...来自谷壳的小麦。如果该类型的操作不能正确回答这两个问题,然后制定一个合理的行动计划

来自''发现'' ,需要玩lego'或者什么......不是php。


欢呼。


Dear All,
I have created a website.
in the contact us page i want to send all information (Entered by
visitor in text boxex) directly to my e-mail address.
to do this i have no idea because i am new to PHP.
thanks in advance
Dev

解决方案

On Oct 24, 7:13 am, Dev <hanu...@gmail.comwrote:

Dear All,
I have created a website.
in the contact us page i want to send all information (Entered by
visitor in text boxex) directly to my e-mail address.
to do this i have no idea because i am new to PHP.
thanks in advance
Dev

To get you started - http://us.php.net/manual/en/ref.mail.php

For the Mail functions to be available, PHP must have access to the
sendmail binary on your system during compile time. If you use another
mail program, such as qmail or postfix, be sure to use the appropriate
sendmail wrappers that come with them. PHP will first look for
sendmail in your PATH, and then in the following: /usr/bin:/usr/sbin:/
usr/etc:/etc:/usr/ucblib:/usr/lib. It''s highly recommended to have
sendmail available from your PATH. Also, the user that compiled PHP
must have permission to access the sendmail binary.

If you want to use a package -http://pear.php.net/package/Mail and/
or http://pear.php.net/package/Mail_Mime

PEAR''s Mail package defines an interface for implementing mailers
under the PEAR hierarchy. It also provides supporting functions useful
to multiple mailer backends. Currently supported backends include:
PHP''s native mail() function, sendmail, and SMTP. This package also
provides a RFC822 email address list validation utility class.

Mail_Mime provides classes to deal with the creation and manipulation
of mime messages.
It allows people to create Email messages consisting of:
* Text Parts
* HTML Parts
* Inline HTML Images
* Attachments
* Attached messages

Starting with version 1.4.0, it also allows non US-ASCII chars in
filenames, subjects, recipients, etc.

HTH....


Dev emailed this:

Dear All,
I have created a website.
in the contact us page i want to send all information (Entered by
visitor in text boxex) directly to my e-mail address.
to do this i have no idea because i am new to PHP.
thanks in advance
Dev

Try looking in the manual, here:
http://uk2.php.net/manual/en/ref.mail.php



"MS" <No*********@No.Spam.Thank.You.comwrote in message
news:bP*******************@text.news.blueyonder.co .uk...

Dev emailed this:

>Dear All,
I have created a website.
in the contact us page i want to send all information (Entered by
visitor in text boxex) directly to my e-mail address.
to do this i have no idea because i am new to PHP.
thanks in advance
Dev


Try looking in the manual, here:
http://uk2.php.net/manual/en/ref.mail.php

ahhh!

who is the *least* likely to RTFM? who is in the most need of RTFM?

wheat from chaff...wheat from chaff. if the op''s of that genre can''t answer
both of those questions correctly and then formulate a sound plan of action
from the ''discovery'', the need to play with lego''s or something...not php.

cheers.


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

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