发送电子邮件确认SWFUpload [英] Send Email Confirmation on SWFUpload

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

问题描述

不知道你是否太熟悉SWFUpload。这是一个基于Flash / js / php的上传脚本。我的主要问题是,我很流利的PHP,我可以创建一个简单的邮件()脚本,但是,与各种JS文件,我不知道是否最好在JS中创建邮件功能。 / p>

如果有人有SWFUpload的经验,请告诉我在上传完成后我可以在哪里创建一个脚本。


解决方案

我很确定几个星期前有人问同样的事情,但是我找不到重复。无论如何,结论是:


  • 你不能把电子邮件发送到PHP或ASP脚本接收文件,因为这将不适用于多个上传(每个都获得自己的脚本实例)


  • 您需要对PHP文件进行Ajax调用发送电子邮件并将该呼叫置于完成(或 success )SWFUpload回调中。



Not sure if too many of you are familiar with SWFUpload. It's a flash/js/php based uploading script. My main issue is that I'm decently fluent in php where I can create a simple mail() script, however, with the various JS files I'm not sure if it'd be better to create the mail function in JS.

If anyone has had experience with SWFUpload please advise me as to where I can create a script after the upload has completed.

Thanks in advance.

解决方案

I'm 100% sure somebody asked the same thing a few weeks ago, but I can't find the duplicate. Anyway, the conclusion was:

  • You can't put the sending of the E-Mail into the PHP or ASP script that receives the file, as that won't work for multiple uploads (each gets its own script instance)

  • You need to make an Ajax call to a PHP file that sends the E-Mail and place that call into the complete (or success) callback of SWFUpload.

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

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