Re: smtp server error
From: Mike Obiku (Mike_at_NoSpam.nl)
Date: 03/18/04
- Next message: Andy Hassall: "Re: PHP under CGI Directory"
- Previous message: Hector: "Re: PHP under CGI Directory"
- In reply to: Jeffrey Silverman: "Re: smtp server error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 18 Mar 2004 22:46:22 +0100
Jeffrey Silverman wrote:
>
> No problem, your English is better than most of my colleagues.
Thanks for the complement
<snip>
> 1) What mail (SMTP) Server are you using?
I use ISMail, from Instantservers.
> 2) Could you post the relevant PHP code, please?
This is a little peace of the PHP code
if ($age == "adult") {
if ($Globals['emailverify'] == "yes") {
$query = "SELECT userid FROM {$Globals['pp_db_prefix']}users
WHERE username='$pick_username' AND joindate='$joindate' LIMIT 1";
$resulta = ppmysql_query($query,$link);
list( $theuid ) = mysql_fetch_row($resulta);
ppmysql_free_result($resulta);
require_once("languages/{$Globals['pplang']}/emails.php");
$email_from = "From: {$Globals['adminemail']}";
$letter = $Globals['pp_lang']['emailreg'];
$subject = $Globals['pp_lang']['emailrsub'];
mail( $email, $subject, $letter, $email_from ); <===
$done = "{$Globals['pp_lang']['thanksreg']}<p>
<a href=\"{$Globals['maindir']}/index.php\"><font
class=\"medium\">
{$Globals['pp_lang']['retfront']}
{$Globals['galleryname']}</font></a>";
diewell( $done );
}
}
The line with the arrow is the line where the browser normaly returns the
following fault:
Warning: mail(): SMTP server response: 451 Request action aborted; local
processing error in c:\www\register.php on line 491
If I change teh smtp setting in the php.ini file to smtp = (ipadres of
mailserver), it results in the same fault as if i have set smtp = localhost.
When I change it to my ISP mailserver, no mail is sent.
> 3) Are you able to send mail locally, from, for example Eudora or
> Mozilla mail using "localhost" as the SMTP server in the
> configuration for your email application?
If you mean, can you sent a e-mail form one pc to a other pc whitin my
domain. Yes. I have 3 pc, one of them is my web and e-mail server. On that
pc I changed smtp setting in the php.ini to localhost an after that to the
IP of the PC. In both cases it return an error. If I change it to the
mailserver of my ISP, it doesn't return a error. Only no one wil get a
email.
> If not, then there is something wrong with your localhost mail setup.
>
> later...
-- # Antwoord onderaan en op een lege regel, dus niet achter >>> tekens # # Reply at the bottom and on a empty line, not behind any >>> sign # Ik lees alleen mail gepost naar onderstaand adres. I only read mail sent to the adres at the bottom. Mike@familie-smit_punt_nl (vervang _punt_ voor een .)
- Next message: Andy Hassall: "Re: PHP under CGI Directory"
- Previous message: Hector: "Re: PHP under CGI Directory"
- In reply to: Jeffrey Silverman: "Re: smtp server error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|