direct use of my_mail() function vs mailqueue
#4
Try using htmlspecialchars() on the message variable instead of $db->escape_string.

Actually, that'll display some characters weird in the e-mail since it won't be displaying HTML. strip_tags() might be better.

I did something like this with strip_tags() and received the e-mail fine:

PHP Code:
$message strip_tags("asd
message on a new line

blank line above<br />"
);

my_mail(
    
"[email protected]"
    
"This is a subject"
    
$message
    
"John Doe"."<[email protected]>",
    
""""false"text"""
    
"[email protected]"
); 

[Image: a7YE8.png]
Reply


Messages In This Thread
RE: direct use of my_mail() function vs mailqueue - Beardy - 02-17-2012, 10:02 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)