I have a PHP web page where users can fill in information, insert their email address then select "Submit" to email me the form information. This worked with my previous web hosting service. However, when using this same page, when I select the "Submit" I get the following error message: "Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in E:\web\[mydomainname]\testdata\testdatathankyou.php on line 454" Do you have any suggestions how I can get this working on your Winhost Servers? Thanks,
Your PHP application is trying to use the web server to send out email. This will not work because the SMTP service on the web server has been disabled. You will need to use your Winhost email server and pass SMTP authentication to it. http://support.Winhost.com/KB/a826/how-to-send-email-from-a-php-application.aspx
Ray, Thanks for your reply. While waiting for same, I kept digging a little and found the following which does seem to work for sending form data via PHP coding. I added the following two lines of code to what I already had at the top of my php coding: ini_set(“SMTP” , “mail.yourdomainname.com”); ini_set(‘sendmail_from’ , ‘[email protected]’); After I added this and uploaded the new page, i was able to successfully send/receive the form data from IE, Safari, and Chrome to my Outlook inbox. I have printed off your reply and will keep same in case my workaround goes sour. Thanks!