art15 Posted April 21, 2008 Share Posted April 21, 2008 Hi, Is it a way of including a header and footer on a page in php email which is sent to the customer? Please reply? Link to comment https://forums.phpfreaks.com/topic/102079-simple-but-interesting/ Share on other sites More sharing options...
AP81 Posted April 21, 2008 Share Posted April 21, 2008 The whole email has to be html, and you'd have to: a) include the header and footer images as attachments with the email or b) link the images to your site remotely (recommended) Link to comment https://forums.phpfreaks.com/topic/102079-simple-but-interesting/#findComment-522607 Share on other sites More sharing options...
art15 Posted April 21, 2008 Author Share Posted April 21, 2008 Hi, Thank you for the reply. Sorry I am not an expert user of php or html. Can you ellobrate more and let me know what I will need to include in my script that will send emails to the customers ordering through my website to have header and footer in their emails received. Thanks Link to comment https://forums.phpfreaks.com/topic/102079-simple-but-interesting/#findComment-522609 Share on other sites More sharing options...
AP81 Posted April 21, 2008 Share Posted April 21, 2008 What exactly are you sending the client? Plain text? Here is an example of what you need to send. You will need to link to images on your server. Put all your CSS and HTML together in a string then mail it. <html> <head> <style type="text/css"> .boldText { font-weight:bold; font-size:16px } </style> </head> <body> <img src="http://www.youserver.com/header.jpg" /> <p class="boldText">This is a test email blah blah blah</p> <img src="http://www.youserver.com/footer.jpg" /> </body> </html> Link to comment https://forums.phpfreaks.com/topic/102079-simple-but-interesting/#findComment-522612 Share on other sites More sharing options...
art15 Posted April 21, 2008 Author Share Posted April 21, 2008 Thank you for your reply. I will give it a try. Thanks Link to comment https://forums.phpfreaks.com/topic/102079-simple-but-interesting/#findComment-522625 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.