WordPress.org

Forums

Where to put the PHP for mailing (3 posts)

  1. southcot
    Member
    Posted 7 years ago #

    My host requires that the return address is set when using the PHP mail facility. I resolve this by putting the line:-

    ini_set("sendmail_from", "mailbox@domain.com"); in the relevant file. Where should I put this in WordPress to ensure the mail functions will work?

  2. Adam Brown
    Member
    Posted 7 years ago #

    Dropping it into your wp-config.php ought to do the trick, since that file gets called before WP does anything.

  3. southcot
    Member
    Posted 7 years ago #

    Thanks for the speedy reply, I will try that.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags