Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

Sending custom files as attachments.

the mail() function

Moderators: macek, egami, gesf

Postby swirlee » Wed Jul 23, 2003 5:54 am

I learned the answer to this just last week from Joan. According to this page, you have to use the Content-Disposition header in addition to your Content-type header:

Code: Select all
<?
header("Content-Disposition: attachment; filename=myfile.hibt");
?>
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back

Return to PHP coding => Mail

Who is online

Users browsing this forum: No registered users and 3 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.