Als ik wil mailen via apache krijg ik dit :
(En ja ik heb volledige error report :))
Warning: Failed to Connect in c:\apache\htdocs\register.php on line 96

En regel 96 is deze:
<?
$mailed = mail($address, $subject, $msg, $header);
?>

Hoe moet ik het mailen instellen?
in je php.ini zoeken naar mail zal wel helpen
zo te zien kan het apparaat je mailserver niet vinden
[mail function]
; For Win32 only.
SMTP = localhost

; For Win32 only.
sendmail_from = [email protected]

; For Unix only. You may supply arguments as well (default: 'sendmail -t -i').
;sendmail_path =

Wat is er niet goed?
heb jij op localhost een smtp server draaien?

ik denk dat je die moet veranderen in [email protected] of smtp.provider.nl
zoiets tenminste

SMTP = localhost <-- die moet dus veranderd worden
En bij sendmail_from?
Zo heb ik het dus ingevult:
[mail function]
; For Win32 only.
SMTP = smtp(dot)tiscali(dot)nl

; For Win32 only.
sendmail_from = crew(at)elementia(dot)tk

; For Unix only. You may supply arguments as well (default: 'sendmail -t -i').
;sendmail_path =

Toch komt er bij afzender dit te staan:
<Elementia(at)ha-smtp0(dot)tiscali(dot)nl, Admins(dot)ha-smtp0(dot)tiscali(dot)nl>
Het lukt me niet om hem te krijgen zoals ik wil...
Iemand raad?
Weet je zeker dat het daar fout zit? Als eens error_reporting(E_ALL) gedaan? De foutmelding geeft weinig specifieke hulp.
Nou er is geen foutmelding meer. Het enige is dat de afzender niet klopt. Zoals je ziet heb ik dit ingevult:
[mail function]
; For Win32 only.
SMTP = smtp(dot)tiscali(dot)nl

; For Win32 only.
sendmail_from = crew(at)elementia(dot)tk

; For Unix only. You may supply arguments as well (default: 'sendmail -t -i').
;sendmail_path =

Toch komt er bij afzender dit te staan:
<Elementia(at)ha-smtp0(dot)tiscali(dot)nl, Admins(dot)ha-smtp0(dot)tiscali(dot)nl>

Hoe kan dat? Beter nog hoe los ik het op?
Je kan daar wel een send from instellen maar dat wordt niet gebruikt bij de mail() functie...

Je moet bij de mailfunctie in de header een from adres toevoegen zodat niet het standaard tiscali adres komt ...

Mvg,

Peanuts

Reageren