Web Hosting Talk







View Full Version : Pre filled message text in out look express


saghir69
04-04-2008, 08:36 AM
I need to send emails to my clients with info from my site. The emails are one at a time.

The info is pretty generic and I can sort what needs to go where in PHP.
At the momment I can pre fill the to and subject fields.

But is there a way to pre fill the message of the email from a php genarated web page.

Does anyone know if this can be done?

BurakUeda
04-04-2008, 09:37 AM
If contents of the email will be HTML, you can use CURL, file_get_contents or fsockopen to read the .php page and send the returning data as the email body.

kemuel
04-04-2008, 09:53 AM
Isn't it easier to use the PEAR mail functions? Can just send emails with PHP then from the same email.

Adam-AEC
04-04-2008, 10:24 PM
<a href="mailto:user@host.com?subject=Pre filled form&body=The message's first paragraph.%0A%0aSecond paragraph.%0A%0AThird Paragraph.">Click here to email this user</a>


%0A is a new line. %0A twice is a new paragraph.

saghir69
04-09-2008, 06:21 PM
Thanks Adam, thats what I was after.

Do you know how I can enter a * as a bullet point at the start of each line?

Or how to format a list of bullet point items?