我正在建立一个照片分享网站(只是测试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使用传入电子邮件执行操作
发布评论