smtp server error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike Obiku

    smtp server error

    First of all, I'm new to PHP. For my website I have some PHP scripts to run
    a photo database. New users have to register them selfs. After registring
    the new user is getting an e-mail maid by an php script. But if the user
    clicks on the button to sent his info, so the PHP can sent him an e-mail, it
    always results in this error
    Warning: mail(): SMTP server response: 451 Request action aborted; local
    processing error in {the file en line number}
    In the PHP.ini smtp = localhost is set {I'm running apache under windows XP
    pro) and have a mail server on the same server.

    Hope someone can help me.

    Sorry for the bad english..

    --
    # Antwoord onderaan en op een lege regel, dus niet achter >>> tekens #
    Ik lees alleen mail gepost naar onderstaand adres.
    Mike@familie-smit.nl




  • Jeffrey Silverman

    #2
    Re: smtp server error

    On Wed, 17 Mar 2004 23:06:31 +0100, Mike Obiku wrote:
    [color=blue]
    > First of all, I'm new to PHP. For my website I have some PHP scripts to run
    > a photo database. New users have to register them selfs. After registring
    > the new user is getting an e-mail maid by an php script. But if the user
    > clicks on the button to sent his info, so the PHP can sent him an e-mail, it
    > always results in this error
    > Warning: mail(): SMTP server response: 451 Request action aborted; local
    > processing error in {the file en line number}
    > In the PHP.ini smtp = localhost is set {I'm running apache under windows XP
    > pro) and have a mail server on the same server.
    >
    > Hope someone can help me.
    >
    > Sorry for the bad english..[/color]

    No problem, your English is better than most of my colleagues.

    I don't know if I can help but here are some questions for you anyways:

    1) What mail (SMTP) Server are you using?

    2) Could you post the relevant PHP code, please?

    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 not, then there is something wrong with your localhost mail setup.

    later...

    --
    Jeffrey D. Silverman | jeffrey AT jhu DOT edu
    Website | http://www.wse.jhu.edu/newtnotes/

    Comment

    • Mike Obiku

      #3
      Re: smtp server error

      Jeffrey Silverman wrote:[color=blue]
      >
      > No problem, your English is better than most of my colleagues.[/color]
      Thanks for the complement

      <snip>
      [color=blue]
      > 1) What mail (SMTP) Server are you using?[/color]
      I use ISMail, from Instantservers.
      [color=blue]
      > 2) Could you post the relevant PHP code, please?[/color]

      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='$join date' LIMIT 1";
      $resulta = ppmysql_query($ query,$link);
      list( $theuid ) = mysql_fetch_row ($resulta);
      ppmysql_free_re sult($resulta);

      require_once("l anguages/{$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=\"{$Global s['maindir']}/index.php\"><fo nt
      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.
      [color=blue]
      > 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?[/color]
      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.
      [color=blue]
      > If not, then there is something wrong with your localhost mail setup.
      >
      > later...[/color]


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


      Comment

      Working...