Function set_magic_quotes_runtime() is deprecated in phpmailer

后端 未结 3 1498
清酒与你
清酒与你 2021-01-13 14:52

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

相关标签:
3条回答
  • 2021-01-13 15:25

    The developers of the software often make updates. You can install their newest version, and it shall be without this warning.

    0 讨论(0)
  • 2021-01-13 15:33

    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

    0 讨论(0)
  • 2021-01-13 15:36

    add these code into the top of your script

    @set_magic_quotes_runtime(false);
    ini_set('magic_quotes_runtime', 0);
    
    0 讨论(0)
提交回复
热议问题