PHP使用传入电子邮件执行操作

编程入门 行业动态 更新时间:2024-10-22 05:12:01
本文介绍了PHP使用传入电子邮件执行操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在建立一个照片分享网站(只是测试PHP的东西),我希望用户能够使用电子邮件提交照片。

I'm building a photo sharing website (just testing PHP stuff) and I want users to be able to submit photographs using email.

例如,网站当用户发送带有图像附件的电子邮件和正文中的文本时,需要运行脚本。该图像将被上传到服务器,并且将创建一个新的照片帖子,电子邮件正文中的文本是描述。

For instance, the website needs to run a script when the users sends an email with an image attachment and text in the body. The image would be uploaded to the server, and a new "photo post" would be created with the text in the email body being the description.

我的问题是,电子邮件接收时,请告诉我的服务器自动运行脚本?

My question is, how do I tell my server to run a script automatically when email is RECEIVED?

任何/所有帮助都非常感谢。如果你想要更多的信息,只要评论!

Any/all help is greatly appreciated. If you would like more info, just comment!

谢谢! -Giles

Thanks! -Giles

推荐答案

如果您使用cpanel,您可以将电子邮件管道到一个脚本,然后相应地处理电子邮件。您可以在电子邮件转发器下找到该选项。

If you use cpanel you can pipe the email to a script which then processes the email accordingly. You can find that option under the email forwarders.

更多推荐

PHP使用传入电子邮件执行操作

本文发布于:2023-10-12 23:35:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1486202.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:电子邮件   操作   PHP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!