lholland421 Posted March 17, 2014 Posted March 17, 2014 Hi All, I have a working form which submits to email and i am just wondering if when the user submits the form it can be put through as an attachment on the email. Like a word document with the form submission in there? Just a thought and thought i may as well as the question Thanks in Advanced !
BITS_BryanS Posted March 27, 2014 Posted March 27, 2014 Which platform are you working ? If it's IIS / C# might be able to help
lholland421 Posted March 27, 2014 Author Posted March 27, 2014 i am running SQL and Apache on a Ubuntu server :/
LosOjos Posted March 27, 2014 Posted March 27, 2014 i am running SQL and Apache on a Ubuntu server :/ Is the form submission handled via PHP then?
LosOjos Posted March 27, 2014 Posted March 27, 2014 Have a look at this: PHP: Sending Email (Text/HTML/Attachments) and this: PHP: fwrite - Manual The idea being that you write the contents to a temporary .txt file (Word will be more difficult as you'll need to know how to create the file headers and write the text out in the correct format; it doesn't seem like there'd be any benefit to Word over basic txt here though...), attach it to the email using the above as a guide for that, then delete the temporary file.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now