Sending custom files as attachments.

the mail() function

Moderators: macek, egami, gesf

User avatar
swirlee
Moderator
Moderator
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

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");
?>

Return to “PHP coding => Mail”

Who is online

Users browsing this forum: No registered users and 1 guest

cron