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

    Join Date
    Feb 2013
    Posts
    1
    Rep Power
    0

    Smtp configuration in .htaccess


    Hi,

    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 Expert (3500 - 3999 posts)

    Join Date
    Jul 2003
    Posts
    3,619
    Rep Power
    595
    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 11: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