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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-23 14:12:29
Original
996 people have browsed it


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


回复讨论(解决方案)

$_FILES['tp'][tmp_name'] 

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template