Alternate Text Bodies For HTML Mail

0 views
Skip to first unread message

Daniel Mendes

unread,
May 3, 2006, 1:34:46 PM5/3/06
to Joomla! Developer Documentation
Well using the JMail API i see no way of doing this so perhaps this
function should be improved with an optional parameter of $altContent
that is plain text, and $content is HTML body.

# function setBody($content, $altContent)
# {
# /*
# * Filter the Body
# * TODO: Check for XSS
# */
# $this->Body = $content;
# if($altContent) { //If there is a plain text body then AltBody is
set
# $this->AltBody = $altContent
# }
# }

What you guys think?

-Dan

Reply all
Reply to author
Forward
0 new messages