Re: smtp server error

From: Mike Obiku (Mike_at_NoSpam.nl)
Date: 03/18/04


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 .)


Relevant Pages

  • Re: smtp server error
    ... Warning: mail: SMTP server response: 451 Request action aborted; ... When I change it to my ISP mailserver, ... # 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. ...
    (alt.php)
  • Re: earthlink users problem
    ... receiving SMTP mail directly into your Exchange Server ... Do some of your users have Earthlink personal accounts and have set that up ... this to your mailserver administrator in the event that you do not fulfill ... delivery attempts through the 'A' record will consequently fail ...
    (microsoft.public.windows.server.sbs)
  • Re: Intersite Communications
    ... mailserver it should go via SMTP, ... server) - they communicate via X.400/MTA...). ... Sydney and one called Melbourne... ... e-mail to Melbourne 2003 via SMTP? ...
    (microsoft.public.exchange.connectivity)
  • Re: HILFE SMTP empfängt tausende Emails
    ... > auf den SMTP haben? ... Zugriff ungleich Relaying. ... per SMTP AUTH am Mailserver anmelden. ... DynFX MailServer 2.2 fuer Windows NT/2K/XP/03 ...
    (microsoft.public.de.inetserver.iis)
  • Re: Calling Pam
    ... A quote from their answering mail:- ... This shows that the mailserver at easily.co.uk has received the message at ... easier could you mail me the required details at the bottom of the page. ... It'll probably jbex without them but it might speed it up if I have that ...
    (uk.people.silversurfers)