Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

How can I send HTML emails ?

0 votes
54 views
asked Mar 9 in Q2A Core by Zeeshan
Q2A version: 1.8

1 Answer

+1 vote
answered Mar 9 by q2apro
selected Mar 9 by Zeeshan
 
Best answer

/app/mailing.php

// q2apro hack for html emails 
// 'body' => trim(qa_opt('mailing_body')) . "\n\n\n" . qa_lang('users/unsubscribe') . ' ' . $unsubscribeurl,
// 'html' => false,
'body' => nl2br( trim(qa_opt('mailing_body'))."\n\n\n" ).' <span style="font-size:12px;color:#888">'.qa_lang('users/unsubscribe').' <a style="color:#888" href="'.$unsubscribeurl.'">Unsubscribe</a></span>',
'html' => true,
commented Mar 9 by Zeeshan
Thanks that was very easy...Then why default Q2A is not using it ?
...