hi ,
Im wanting to have a custom mail form
I know how to make regular email forms but this is different.
Its an invoice mail I'd like to send ( i know i should go through Gnupg which i will after I learn to make it )
I would like to make email that has an invoice look / feel , in the message body.
I already have the variables existing on the page in sessions.
Can you point me in direction of something that explains this?
I can get a mail to go through using hidden input text fields, but it cramps them all in one messy line.
Instead I'd like it to show something along the lines of :
Order:
Items:
Options:
Subtotals:
Shippings:
Totals:
Submitted on (Date) from (ip)
something like that.
Thanks
newbie - custom mail form question
Moderator: General Moderators
You need to be sendning html emails with html headers.
you can then use html to format the layout of the email.
http://www.php.net/mail
you can then use html to format the layout of the email.
http://www.php.net/mail
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
This is incorrect, you need to make use of the newline character \r\n (or \n in windows environment) which will can also be represented as the PHP_EOL constantianhull wrote:You need to be sendning html emails with html headers.
you can then use html to format the layout of the email.
http://www.php.net/mail
Last edited by John Cartwright on Tue Jul 17, 2007 3:43 pm, edited 1 time in total.
RE: html headers
Thanks for responses,
Important for anybody making email form, "/n" doesnt work .
it mass bulks all the lines together.
He's right , use "/r/n"
dont forget to concatenate variables
works great
thanks
Important for anybody making email form, "/n" doesnt work .
it mass bulks all the lines together.
He's right , use "/r/n"
dont forget to concatenate variables
works great
thanks