1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Rep Power

    Smtp configuration in .htaccess


    I need to change the smtp configuration in htaccess (ISP don't allow to change in php.ini).

    How I can indicate the following values: host, username and password?

    Thank you
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jul 2003
    Rep Power
    Since this effects the httpd, it is unlikely your ISP has that capability enabled either. However, there are 2 ways to try.

    1) In htaccess the format is:
    php_value <name> <value>

    For example:
    php_value SMTP smtp.server.com

    2) You can try using ini_set() in your script.
    Last edited by gw1500se; February 6th, 2013 at 10:55 AM.
    There are 10 kinds of people in the world. Those that understand binary and those that don't.

IMN logo majestic logo threadwatch logo seochat tools logo