发送电子邮件确认SWFUpload [英] Send Email Confirmation on SWFUpload
问题描述
如果有人有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
(orsuccess
) callback of SWFUpload.
这篇关于发送电子邮件确认SWFUpload的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!