Mail()
Moderator: General Moderators
- n00b Saibot
- DevNet Resident
- Posts: 1452
- Joined: Fri Dec 24, 2004 2:59 am
- Location: Lucknow, UP, India
- Contact:
check section REQUIREMENTS on this page Mail function
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Have you tried using the mail() function. You didn't mention if you were getting errors and what they are.
Some hosts have the mail() function disabled for obvious reasons... If this is not the case they need to set the SMTP, and the SMTP PORT NUMBER (I can't remember the exact name for it) setting. If you have any error's and that's why you're asking please post them since it may be unrelated to the host
Some hosts have the mail() function disabled for obvious reasons... If this is not the case they need to set the SMTP, and the SMTP PORT NUMBER (I can't remember the exact name for it) setting. If you have any error's and that's why you're asking please post them since it may be unrelated to the host
I have the mail function amongst some other php scripting and when executed nothing happens. no error message or anything. The code is as follows;
Thanks
Dave
feyd | Please review how to post code using
Code: Select all
<?php
$to = "dave_c00@hotmail.com";
$subject = "New Order";
$message = "Testing";
mail($to,$subject,$message) or print "Could not send mail";
?>Dave
feyd | Please review how to post code using
Code: Select all
andCode: Select all
tags. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Put:
at the top of your code and well see what happens 
Run...
Look for disabled functions and see if it's disabled.
Code: Select all
error_reporting(E_ALL);Run...
Code: Select all
phpinfo();these days i prefer to start debugging with:
Code: Select all
ini_set('error_reporting', E_ALL); // same as error_reporting(E_ALL);
ini_set('display_errors', TRUE); // don't know the equivalent, so it's easier to remember 2 times ini_set