This topic is locked

Simpler way to send HTML emails?

5/29/2012 7:56:50 AM
PHPRunner General questions
R
rennets author

Hi All,
I have been looking into using the HTML mail function of Phprunner, I notice this appears to be a difficult task for someone who is not code minded, examples include:
http://www.asprunner.com/forums/topic/6409-html-email-template/

http://www.asprunner.com/forums/topic/19089-sending-templated-email-messages/

http://www.asprunner.com/forums/topic/19506-send-html-formatted-email/
The Phprunner manual indicates the following:
Send HTML email:

$email="test@test.com";
$message="Hello there\n<b>Best regards</b>";
$subject="Sample subject";
runner_mail(array('to' => $email, 'subject' => $subject,
'htmlbody' => $message, 'charset' => 'UTF-8'));



This simply sends an email without the new form data, am I missing something in the above code sample if I want it to include new form data in beautifully displayed HTML format?
Please help.

R
rennets author 5/29/2012



Check this article: http://xlinesoft.com/phprunner/docs/send_email_with_new_data.htm


Hi Christian,
Thank you very much for your reply.
Can you please confirm this will be HTML formatted?
Thanks,
Brendan

C
cgphp 5/29/2012

No, it will be a simple text mail. Check this article for HTML: http://css-tricks.com/sending-nice-html-email-with-php/

R
rennets author 5/30/2012



No, it will be a simple text mail. Check this article for HTML: http://css-tricks.com/sending-nice-html-email-with-php/


Thanks Christian.

Admin 5/30/2012

My suggestion is to check one more time this article:

http://www.asprunner.com/forums/topic/19089-sending-templated-email-messages/
It does the same job that example Cristian suggested by you need to write less code.