ola pessoal,
eu tou a criar um website aqui e tou com um problema com o mail()
- ainda nao tenho domain, site ta local
php.ini
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
;sendmail_from =
contacts.php
// process the email
if (array_key_exists('send', $_POST)) {
$to = 'mr.tec@hotmail.co.uk'; // use your own email address
$subject = 'Feedback from Japan Journey site';
// process the $_POST variables
$name = $_POST['name'];
$email = $_POST['email'];
$comments = $_POST['comments'];
// build the message
$message = "Name: $name\n\n";
$message .= "Email: $email\n\n";
$message .= "Comments: $comments";
// limit line length to 70 characters
$message = wordwrap($message, 70);
// send it
$mailSent = mail($to, $subject, $message);
} ?>
warning no site: Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\wamp\www\Contacts.php on line 23
podem me ajudar? thanks

