chantalleke
Gebruiker
- Lid geworden
- 23 mei 2008
- Berichten
- 5
Ik heb de volgende code:
PHP code:
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
$recipient = 'bongy1@hotmail.com';
$subject = 'Mail Test';
$message = 'Greetings,'
."\r\n\r\n\t".'This is a test.'
."\r\n\r\n".'Thanks';
$headers = 'From: bongy1@hotmail.com'."\r\n"
.'Reply-To: snteran@hotmail.com'."\r\n";
if (mail($recipient, $subject, $message, $headers)) {
echo 'Mail Sent';
} else {
echo 'Mail NOT Sent';
}
PHP.INI
[mail function]
; For Win32 only.
SMTP = "uit.pandora.be"
smtp_port = 25
; For Win32 only
sendmail_from = bongy1@hotmail.com
FOUTMELDING
Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in ...
Kan er iemand mij hiermee helpen? Alvast bedankt!
PHP code:
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
$recipient = 'bongy1@hotmail.com';
$subject = 'Mail Test';
$message = 'Greetings,'
."\r\n\r\n\t".'This is a test.'
."\r\n\r\n".'Thanks';
$headers = 'From: bongy1@hotmail.com'."\r\n"
.'Reply-To: snteran@hotmail.com'."\r\n";
if (mail($recipient, $subject, $message, $headers)) {
echo 'Mail Sent';
} else {
echo 'Mail NOT Sent';
}
PHP.INI
[mail function]
; For Win32 only.
SMTP = "uit.pandora.be"
smtp_port = 25
; For Win32 only
sendmail_from = bongy1@hotmail.com
FOUTMELDING
Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in ...
Kan er iemand mij hiermee helpen? Alvast bedankt!