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

mailto

the mail() function

Moderators: macek, egami, gesf

mailto

Postby ron123 » 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' );
ron123
New php-forum User
New php-forum User
 
Posts: 11
Joined: Mon Jan 02, 2012 4:52 pm

Re: mailto

Postby bigjoe11a » Sun Jan 29, 2012 7:03 pm

Well you will need to go to php.org 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.
User avatar
bigjoe11a
New php-forum User
New php-forum User
 
Posts: 128
Joined: Wed Aug 31, 2011 3:55 am
Location: USA


Return to PHP coding => Mail

Who is online

Users browsing this forum: No registered users and 2 guests

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