如何从HTML或PHP发送电子邮件? [英] How to send email from HTML or PHP?

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

问题描述

如何通过html或php发送电子邮件?



我尝试过:



i已经尝试过使用php和html。

在php中,邮件功能无法访问smtp端口号

和html问题与outlook它无法登录.....................

how to send email through html or php?

What I have tried:

i have tried both with php and html.
In php ,mail function couldn't access smtp port number
and in html problem with outlook that it couldn't login.....................

推荐答案

请参阅我对该问题的评论;它真的没有意义;而且你的问题不清楚。毕竟,比较所有必需的SMTP参数。您可以使用一些可用的电子邮件程序,确保它有效,然后与您的代码进行比较。



以防万一:以下是通过以下方式发送邮件的方法PHP:

PHP:mail - Manual

PEAR替代方案:手册::发送邮件

另见:手册::关于PEAR和PEAR2



现在,通过Web发送邮件的主要问题是安全性。请在我过去的答案中看到这个大警告:无法发送邮件,它显示以下代码中的错误。



-SA
Please see my comment to the question; it does not really make sense; and your problem is unclear. After all, compare all required SMTP parameters. You can use some available e-mail program, make sure it works, and then compare with your code.

Just in case: here are the ways to send mail via PHP:
PHP: mail — Manual,
PEAR alternative: Manual :: sends a mail,
see also: Manual :: About PEAR and PEAR2.

Now, the major problem with sending mail via the Web is security. Please see this big warning in my past answer: unable to send mail, it showing the error in below code..

—SA


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

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