Menu

E-Mail error

Help
2002-10-25
2002-11-03
  • Jenn Redwolf

    Jenn Redwolf - 2002-10-25

    Everything works fine for creating the form and the related mysql table.  When I fill out the form and hit submit, I get the following errors:

    Warning: Failed to Connect in c:\phpdev\www\nuke\process.php on line 13

    Warning: Cannot add header information - headers already sent by (output started at c:\phpdev\www\nuke\process.php:13) in c:\phpdev\www\nuke\process.php on line 18

    But, if i comment out line 13 in process.php (mail...)  it works fine: puts the data in the specified mysql table and redirects to the specified page.

    Any ideas how to fix it so it will also e-mail me the form submission?

     
    • Musawir Ali

      Musawir Ali - 2002-10-26

      Well that means that PHP cannot connect to your mail server. You need to fix this in your php.ini if you are going to use the mail function. If you are not running a local SMTP server on that machine, you can edit php.ini and specify your ISP's mail server if it allows you to do that. Otherwise you will find a webhost that has access to a mail server. Alternatively, you do without using the mail feature.

       
    • David

      David - 2002-11-03

      I had the same problem and here is the solution propose by Ali :

      http://www.phpscripts-fr.net/phorum/read.php3?f=1&i=41685&t=41685

      Its in french but you should understand other way replace in your php.ini smpt=Localhost like as smtp=smtp.provider.xx the same of you mail account for Easyphp users i give the good way on that posted link below !

       

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.