PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have set up a server on my localhost. I am trying to send email to the server administration at admin.ituk.com. This is the internet url I have set up.
I am using the code below. Whenever I try to send an email I get the following error:- could not perform operation as default mail client is not installed. Does anyone know what this means.
Hi I have changed my form. I now use mail(). However now rather than get an error message I get a blank screen with the absolute directory to my email form being displayed in the url.
I now get the message
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in I:\xampp\htdocs\Project\Website\pagecontent\site_text_content\mail.php on line 32
I have altered my php.ini file uncommenting send_mail and now I get the following error:-
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 I:\xampp\htdocs\Project\Website\pagecontent\site_text_content\mail.php on line 32
I am still getting this error:-
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 I:\xampp\htdocs\Project\Website\pagecontent\site_text_content\mail.php on line 34
I just realised what I was doing wrong. In http-vhosts.conf I have the virtual host uncommented
#<VirtualHost *:80>
#ServerAdmin postmaster@localhost
#DocumentRoot "/xampp/htdocs/"
#ServerName http://www.ituk.com
#</VirtualHost>
whilst php.ini was still reading smtp = localhost or something like that. Although by turning on virtualhosts the original httpd.conf information is overriden so basically localhost no longer existed. I have now commented the virtualhost above and now I get another error message.
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.