通过PHP从服务器发送电子邮件 [英] Send email from the server by PHP

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

问题描述

当用户在网站上注册或者他要求生成新密码时,我需要向用户发送一封电子邮件,其中包含一些欢迎消息或他所要求的信息(分别),就像您在许多网站上看到的一样。 br />

我需要做些什么?我的意思是,我知道使用mail()函数,但是我需要在php.ini文件中做些什么更改?如何配置将发送电子邮件的电子邮件地址?


我正处于项目完成的边缘,所以太累了,无法进行任何研究。

有人能指出我正确的方向吗?或者任何教程?


谢谢

解决方案

嗨。


使用mail()函数你必须编辑php config的[mail function]部分。


但是,有更好的邮件功能替代方案,例如 PHPMailer Swift Mailer

感谢您的链接。

他们真的很乐于助人。


:)


问候,

Harpreet


现在可能有什么问题..如果你曾经使用过swift邮件程序。

展开 | 选择 | Wrap | 行号

When a user registers with the website or when he requests to generate a new password, I need to send an email to the user containing some welcome message or his requested information (respectively) as you would have seen on many websites.

What do I need to do for that? I mean, I know the use of mail() function, but what changes do I need to do in php.ini file and how can I configure the email address which will send the emails?

I''m at the verge of project completion, so too tired to do any research.
Can anyone point me to the right direction? Or any tutorials?

Thanks

解决方案

Hi.

To use the mail() function you would have to edit the [mail function] portion of you php config.

However, there are better alternatives to the mail function, like for example PHPMailer and Swift Mailer.


Thank you for the links.
They are really helpful.

:)

Regards,
Harpreet


Now what can be the problem with this.. If you have ever used swift mailer.

Expand|Select|Wrap|Line Numbers


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

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