another virtual path .i have developer two projects . both are runnning in the same server. one prject the send the mail properly, but the another project not send the mail. I am using same code for both projectes and same configration, but why mail not send???????
Not to hijack the thread either, but anyone have any experience testing mail() locally on Mac OSX 10.4? I have PHP, MySQL, and Apache running successfully, but would like to test mail forms locally as well.
Similar question. I have apache 2, php 5, wondering what else I need to install or set in the apache config file, or php.ini to get mail() function to work?
What OS are you working with? Also check your php.ini file to set the SMTP server address and SMTP port, and if using Windows edit the email address. If you open php.ini in a text editor, FIND SMTP and it will find the lines you need to edit.
Ya I'm using Windows XP Pro. So I need an SMTP server? Can my local system be used as SMTP? or do I need to use an online server for one of my domains?
Yes, if you are using your local Win XP Pro system to develop and test the forms, you can go into Services in the computer management and turn on SMTP services.
Right Click My Computer > Left click MANAGE > Expand SERVICES (by clicking on the plus sign to the left) > scroll down to find SMTP Simple Mail Transfer Protocol > Rick click > left click PROPERTIES > set STARTUP TYPE to AUTOMATIC > Click APPLY and OK
You also may have to STOP and START the service again in order to get everything going.