有没有适合初学者免费邮寄表单的 PHP 脚本?

发布于 2024-08-28 13:02:41 字数 71 浏览 7 评论 0原文

我希望用户在一个地方提交新闻通讯订阅电子邮件,并在一个地方提交完整的联系表单。除了知道它可以满足我的需要之外,零 PHP 知识。

I have a place where I want users to submit emails for newsletter subs and a place to submit an entire contact form. Zero php knowledge outside of know that it can do what I need.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

九局 2024-09-04 13:02:41

内置了邮件功能,看看

http://php.net/ Manual/en/function.mail.php

但是,当然,您需要使用发布的表单数据来格式化电子邮件正文。

There's a mail function built-in, take a look at

http://php.net/manual/en/function.mail.php

you will however, need to format the email body with the form data posted, of course.

不…忘初心 2024-09-04 13:02:41

查看 FormToEmail。从他们的网站:

FormToEmail 是一个 PHP 表单邮件脚本。
它有免费版本和专业版
版本。它处理网络表单并
将表格内容发送给您
通过电子邮件。它将处理任何形式。它
不制作表格,但它带有
基本联系表单的 HTML 代码
您可以在您的网站上使用。它
非常安全,无法被劫持
由垃圾邮件发送者。这很简单
安装,你只需要添加你的
电子邮件地址。一步一步
使用简单英语编写的说明。

Check out FormToEmail. From their site:

FormToEmail is a PHP form mail script.
It comes in a free version and a Pro
version. It processes web forms and
sends the contents of the form to you
by email. It will process any form. It
doesn't make forms but it comes with
HTML code for a basic contact form
that you can use on your website. It
is very secure and cannot be hijacked
by spammers. It is very simple to
install, you only need to add your
email address to it. Step-by-step
instructions written in plain English.

姐不稀罕 2024-09-04 13:02:41

实际上,您不需要进行任何 php 编程来创建这样的设置。有很多可用的邮件列表软件应用程序,您可以获取 formmail 脚本(例如 Matt 的脚本存档中的脚本) )并使用正确的字段构建 html。

Actually, you don't need to do any php programming to create a such a setup. There are plenty of mailing list software apps available and you can grab a formmail script (like the one from Matt's Script Archive) and build the html with the right fields.

攀登最高峰 2024-09-04 13:02:41

使用邮件功能。

但请注意,如果您想在电子邮件中使用 html,您需要自己指定正确的标头

初学者常见的一个错误是假设您可以简单地在邮件中使用 html 标签,并且它应该自动工作。

我认为这一点值得一提,因为您想做一份时事通讯。如果您尝试发送电子邮件,并且原始 html 标签似乎出现在消息中,那么这就是您的问题:)

Use the mail function.

However be aware that you need to specify the correct headers yourself if you want to use html in your emails!

A common beginner's mistake is assuming you can simply use html tags with mail and it should work automatically.

Figured this was worth mentioning, since you are wanting to do a newsletter. If you try sending the email, and the raw html tags seem to appear in the message, this is your issue :)

浅笑依然 2024-09-04 13:02:41

作为一个对 PHP 一无所知的人,我经常寻找复杂问题的简单解决方案。使用超级简单的 PHP 表单可能会有一些缺点,例如,如果您没有任何措施来防止这种情况,则会收到大量垃圾邮件;如果您没有任何 PHP 知识,则很难设置这些措施。

这是我发现的,这里有一个脚本: http:// www.dagondesign.com/articles/secure-php-form-mailer-script/
您可以免费下载,并且开发人员似乎对如何安装和使用有很多指导。我能够设置它并让它工作......而不需要花费大量时间阅读和排除故障。希望对您有帮助。

As someone who is a PHP know-nothing, I often look for easy solutions to complex problems. Using a super simple PHP form can have some downsides such as getting massive amounts of spam if you don't have any measures to prevent that, setting up those measures is hard to do if you do not have any knowledge of PHP.

Here is what I found, there is a script here: http://www.dagondesign.com/articles/secure-php-form-mailer-script/
that you can download at no charge and the developer seems to have a lot guidance on how to install and use. I was able to set it up and get it to work.. not without having to spend quite of bit of time reading and trouble shooting. Hope that helps you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文