Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am looking for an article or book that would show me (using php code) how to export a CSV file that I have created and stored on my host server to an attachment on my email.

I have "successfully" (tested on localhost using Apache and PHP) written using Html5/css3/javascript/php7 code an application that takes data (16 fields) from a form and sends it to the server and saves it into a CSV file on the server. Now I want to receive that CSV file as an email attachment each time a client fills in and submits the form.

What I have tried:

All of the articles that I can find so far are sending data TO a CSV file not FROM a CSV file on the server.
Posted
Updated 23-Apr-18 21:33pm

1 solution

You would need to use PHP mail to generate the email and attach the file to the message before sending. See PHP: mail - Manual[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900