mail() returns FALSE, no err msg

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gerhard Buergmann

    mail() returns FALSE, no err msg

    Sometimes my mail() function returns FALSE, but there is no error message.
    Error reporting is set to E_ALL.

    It seems to be a problem of the bcc: line.
    I use:

    $headers .= "Bcc: aaaa@aaa.aa,bbb b@bbb.bb,cccc@c cc.cc\n";

    I currently have approx. 30 addresses in the line.
    Are there any limits?
    And how can I get an error message?


    Thanks,
    Gerhard

    --


  • Luke Ross

    #2
    Re: mail() returns FALSE, no err msg

    Hi,

    Gerhard Buergmann wrote:[color=blue]
    > Sometimes my mail() function returns FALSE, but there is no error message.
    > Error reporting is set to E_ALL.
    >
    > It seems to be a problem of the bcc: line.
    > I use:
    >
    > $headers .= "Bcc: aaaa@aaa.aa,bbb b@bbb.bb,cccc@c cc.cc\n";
    >
    > I currently have approx. 30 addresses in the line.
    > Are there any limits?
    > And how can I get an error message?[/color]

    Does it work if you use \r\n instead? Some mailers might be more picky
    about line endings.

    Just a thought.

    Luke

    Comment

    • Gerhard Buergmann

      #3
      Re: mail() returns FALSE, no err msg

      Luke Ross wrote:[color=blue]
      > Hi,
      >
      > Gerhard Buergmann wrote:
      >[color=green]
      >> Sometimes my mail() function returns FALSE, but there is no error
      >> message.
      >> Error reporting is set to E_ALL.
      >>
      >> It seems to be a problem of the bcc: line.
      >> I use:
      >>
      >> $headers .= "Bcc: aaaa@aaa.aa,bbb b@bbb.bb,cccc@c cc.cc\n";
      >>
      >> I currently have approx. 30 addresses in the line.
      >> Are there any limits?
      >> And how can I get an error message?[/color]
      >
      >
      > Does it work if you use \r\n instead? Some mailers might be more picky
      > about line endings.
      >[/color]

      It works with one, two, maybe tree adresses, but not with 10 or 20.
      Since there is no error message, I cannot locate the problem.

      Regards,
      Gerhard

      --



      Comment

      • Vijay

        #4
        Re: mail() returns FALSE, no err msg

        Number of CC in the header is limitation of SMTP server .No error msg is returned

        Gerhard Buergmann <gerhard.buergm ann@puon.at> wrote in message news:<3f65a287$ 0$265$4d4ebb8e@ read-nat.news.nl.uu. net>...[color=blue]
        > Luke Ross wrote:[color=green]
        > > Hi,
        > >
        > > Gerhard Buergmann wrote:
        > >[color=darkred]
        > >> Sometimes my mail() function returns FALSE, but there is no error
        > >> message.
        > >> Error reporting is set to E_ALL.
        > >>
        > >> It seems to be a problem of the bcc: line.
        > >> I use:
        > >>
        > >> $headers .= "Bcc: aaaa@aaa.aa,bbb b@bbb.bb,cccc@c cc.cc\n";
        > >>
        > >> I currently have approx. 30 addresses in the line.
        > >> Are there any limits?
        > >> And how can I get an error message?[/color]
        > >
        > >
        > > Does it work if you use \r\n instead? Some mailers might be more picky
        > > about line endings.
        > >[/color]
        >
        > It works with one, two, maybe tree adresses, but not with 10 or 20.
        > Since there is no error message, I cannot locate the problem.
        >
        > Regards,
        > Gerhard[/color]

        Comment

        Working...