Search code examples
xampppasswordssendmail

Is there a way make # not a comment in ini file?


I want to use Sendmail in the localhost and I have to set up SMTP in the sender mail. But my password has a hash character(#) in it. How do I make it not appear as a comment start?

[email protected]
auth_password=password#

Solution

  • From the parse_ini_file documentation, in the changelog for PHP 5.3.0 and above:

    Hash marks (#) should no longer be used as comments and will throw a deprecation warning if used.