Current time: 04-24-2014, 06:44 PM Hello There, Guest! (LoginRegister)


Post Reply 
direct use of my_mail() function vs mailqueue
02-17-2012, 10:02 PM (This post was last modified: 02-17-2012 10:40 PM by Beardy.)
Post: #4
RE: direct use of my_mail() function vs mailqueue
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(
    
"reciever[email protected]"
    
"This is a subject"
    
$message
    
"John Doe"."<[email protected]>",
    
""""false"text"""
    
"[email protected]"
); 

[Image: a7YE8.png]
Find all posts by this user
Quote this message in a reply
Post Reply 


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

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication