View previous topic :: View next topic |
Author |
Message |
Ronkeuren Guest
|
Posted: Mon Nov 11, 2002 4:52 pm Post subject: Mail problem in php |
|
|
heyz m8
i have a problem i set mij Mail function to
[mail function]
SMTP = mail.home.nl ;for win32 only
sendmail_from = Ronkeuren@keuren.com ;for win32 only
;sendmail_path =
But its stil don't work i have cable @HOME
can you help me please |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Nov 11, 2002 11:13 pm Post subject: Re: Mail problem in php |
|
|
Ronkeuren wrote: | heyz m8
i have a problem i set mij Mail function to
[mail function]
SMTP = mail.home.nl ;for win32 only
sendmail_from = Ronkeuren@keuren.com ;for win32 only
;sendmail_path =
But its stil don't work i have cable @HOME
can you help me please |
Turn warnings display on in PHP.ini . The mail function should display warnings giving more information about why it cannot send the mails.
By the way, your settings are correct provided that mail.home.nl exists. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Guest
|
Posted: Wed Nov 13, 2002 1:59 am Post subject: |
|
|
Its stil don't work m8
i getting this error
Quote: | Warning: Unknown error in contact.php on line 68
Bedankt voor het mailtje! |
i have set it to
this is the script
Quote: | <?
echo "Om een mailtje naar me te sturen vul dan deze form in!<BR><BR>\n";
if ($QUERY_STRING == "contact") {
if ($naam == "") {
echo "<FONT COLOR=\"#FF0000\">Er is geen <B>Naam</B> ingevuld!</FONT><BR>\n";
}
if ($email == "") {
echo "<FONT COLOR=\"#FF0000\">Er is geen <B>E-mail</B> ingevuld!</FONT><BR>\n";
}
if ($onderwerp == "") {
echo "<FONT COLOR=\"#FF0000\">Er is geen <B>Onderwerp</B> ingevuld!</FONT><BR>\n";
}
if ($bericht == "") {
echo "<FONT COLOR=\"#FF0000\">Er is geen <B>Bericht</B> ingevuld!</FONT><BR>\n";
}
if ($naam != "" AND $email != "" AND $onderwerp != "" AND $bericht != "") {
if (preg_match("/(?i)^([a-z0-9._-])+@([a-z0-9.-])+\.([a-z0-9]){2,4}$/",$email)) {
$myemail="info@keuren.com";
$naam="Naam: $naam\n";
$email="E-mail: $email\n";
$bericht="Bericht: $bericht\n";
$date="Datum: " . date("Y-m-d H:i:s") . "\n\n";
mail("$myemail","$onderwerp","$date$naam$email$bericht","From: $name <$myemail>");
$naam = ""; $email = ""; $onderwerp = ""; $bericht = "";
echo "Bedankt voor het mailtje!";
} else {
echo "<FONT COLOR=\"#FF0000\">Geen juiste <B>E-mail</B> ingevuld!</FONT><BR>\n";
}
}
}
echo "<FORM METHOD=\"POST\" ACTION=\"contact.php?contact\">\n";
echo "Name:<BR><INPUT TYPE=\"text\" NAME=\"naam\" SIZE=\"20\" VALUE=\"$naam\"><BR><BR>\n";
echo "E-mail:<BR><INPUT TYPE=\"text\" NAME=\"email\" SIZE=\"20\" VALUE=\"$email\"><BR><BR>\n";
echo "Onderwerp:<BR><INPUT TYPE=\"text\" NAME=\"onderwerp\" SIZE=\"30\" VALUE=\"$onderwerp\"><BR><BR>\n";
echo "Bericht:<BR><TEXTAREA NAME=\"bericht\" ROWS=\"5\" COLS=\"30\">$bericht</TEXTAREA><BR><BR>\n";
echo "<INPUT TYPE=\"submit\" VALUE=\"Stuur Mailtje\">\n";
echo "</FORM>\n";
?> |
help me please its for me and my buddy's this server[/code] |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Nov 14, 2002 3:46 am Post subject: |
|
|
We tested the script and it works OK. So the problem is related to your SMTP server which may be refusing the mail you want to send or which needs authentication of the sender (feature which mail() doesn't seem to handle.) _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Ronkeuren Guest
|
Posted: Thu Nov 14, 2002 6:24 pm Post subject: |
|
|
And now m8 i have olso try smpt.athome.nl or mail.home.nl
or ar my @home connection have block that appilication ?
what must i du then
thanx very mutch m8 |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Nov 15, 2002 12:00 am Post subject: |
|
|
Ronkeuren wrote: | And now m8 i have olso try smpt.athome.nl or mail.home.nl
or ar my @home connection have block that appilication ?
what must i du then
thanx very mutch m8 |
The SMTP value must be the same as the server you use in Outlook (or your mail client) as the SMTP server.
If there is a problem with it, contact your ISP. We cannot guess what are the restrictions they set or the issues their server have. They are the best persons to help you regarding the SMTP server issue (which is not a PHP problem as we said before.) _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|