I want to embed an image with PHP Mailer version 5.1.. and my PHP version is 5.4.7
The script execution is a success, and I can receive emails with embedded images, b
The developers of the software often make updates. You can install their newest version, and it shall be without this warning.
It's because magic_quotes_runtime functions are deprecated starting from 5.3 PHP version, but 5.1 version of PHPmailer still uses them. Try to upgrade to PHPmailer 5.2, the problem should be solved, more info here: http://code.google.com/a/apache-extras.org/p/phpmailer/source/detail?r=66
add these code into the top of your script
@set_magic_quotes_runtime(false);
ini_set('magic_quotes_runtime', 0);