我正在使用PHP发送带有附件的电子邮件。附件可以是几种不同的文件类型(pdf,txt,doc,swf等)中的任何一种。
首先,脚本使用“ file_get_contents”获取文件。
后来,脚本在标头中回显:
Content-Type: <?php echo $the_content_type; ?>; name="<?php echo $the_file_name; ?>"
如何为$ the_content_type设置正确的值?
阿波罗的战车
catspeake
慕尼黑的夜晚无繁华
相关分类