the mail() function

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 11
Joined: Mon Jan 02, 2012 4:52 pm

Fri Jan 13, 2012 7:42 am

I am writing a program where my users go on line, enter their data and send it to me in a csv format.
right now they are able to enter thier data, open the attachment, save it, and then email it to me.
I would like to by pass the open part and and just email it to me.

header( 'Content-Type: text/csv' );
header( 'Content-Disposition: attachment;filename=export.csv' );

User avatar
New php-forum User
New php-forum User
Posts: 137
Joined: Wed Aug 31, 2011 3:55 am
Location: USA

Sun Jan 29, 2012 7:03 pm

Well you will need to go to and check text file reading and writing files. I don't know why you want to use that format. Any way when a user clicks the submit button. You will have to create the file and then attach the file to an email message and then send it to you. If I under stand you right.

Post Reply