Home  >  Article  >  Backend Development  >  phpMailer发送附件,附件名应该用哪个变量?

phpMailer发送附件,附件名应该用哪个变量?

WBOY
WBOYOriginal
2016-06-23 14:12:29954browse


post后调用phpMailer发邮件
mail->addattachement()的第一个参数,我应该填$tp还是$_post["tp"]还是$_FILES['tp'][tmp_name'] ?


回复讨论(解决方案)

$_FILES['tp'][tmp_name'] 

应该是 $_FILES['tp'][tmp_name']   这个才是个文件啊

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn