Menu

Using an off-site Email server

Help
Jeff Rezer
2007-08-16
2013-06-03
  • Jeff Rezer

    Jeff Rezer - 2007-08-16

    Had phpFormGen working great and just found out it stopped sending messages when my client changed their Email server to another provider. Go figure...

    Can someone help outline where and how I need to change the code on phpFG to get it to work now? I know that the mail server has a different IP than the site, plus the DNS Zone file has also been altered to get this to work.

     
    • TNTEverett

      TNTEverett - 2007-08-16

      If you are working with pre-version 3 then the form process file is process.php.  Version 3.0 has a form process file called processor.php.

      In this file there is a line that starts with "mail(".  The first argument is the "To:" field for sending email to the form administrator.  Change this field to send email to another address. 

       
    • Musawir Ali

      Musawir Ali - 2007-08-17

      you need change your php.ini file. The mail server address is specified there. Generally for webservers that also run a smtp server on the same machine have "localhost" set as the mail server in php.ini. You just need to change that to whatever the new IP of the mail server is.

      This is not only for phpFormGenerator. It applies to all php programs that use the mail() function.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.