mail() returns FALSE, no err msg

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default 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: [email]aaaa@aaa.aa,bbbb@bbb.bb,cccc@ccc.cc[/email]\n";

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


    Thanks,
    Gerhard

    --
    [url]http://www.meta-chrom.com/[/url]

    Gerhard Buergmann Guest

  2. Similar Questions and Discussions

    1. #40234 [NEW]: gethostbynamel always returns false when using PHP as CGI
      From: silverbanana at gmx dot de Operating system: Windows XP SP2 PHP version: 6CVS-2007-01-25 (snap) PHP Bug Type: Network...
    2. #39281 [NEW]: glob() returns false
      From: johan dot ekman1 at comhem dot se Operating system: windows xp, apache PHP version: 5.1.6 PHP Bug Type: ...
    3. #12335 [Com]: mail() function returns false but the email was sent.
      ID: 12335 Comment by: liliana at civc dot inf dot cu Reported By: sascha dot winkler at ks dot sel dot alcatel dot de...
    4. mail() function returns FALSE
      Hi All, I'm having trouble getting sendmail to behave with the php mail() function. The function is returning FALSE. Today it doesn't seem to want...
    5. #24627 [NEW]: feof always returns false
      From: duerra at yahoo dot com Operating system: XP Pro PHP version: 4.3.3RC1 PHP Bug Type: Filesystem function related Bug...
  3. #2

    Default 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: [email]aaaa@aaa.aa,bbbb@bbb.bb,cccc@ccc.cc[/email]\n";

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


    Thanks,
    Gerhard

    --
    [url]http://www.meta-chrom.com/[/url]

    Gerhard Buergmann Guest

  4. #3

    Default Re: mail() returns FALSE, no err msg

    Hi,

    Gerhard Buergmann wrote:
    > 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: [email]aaaa@aaa.aa,bbbb@bbb.bb,cccc@ccc.cc[/email]\n";
    >
    > I currently have approx. 30 addresses in the line.
    > Are there any limits?
    > And how can I get an error message?
    Does it work if you use \r\n instead? Some mailers might be more picky
    about line endings.

    Just a thought.

    Luke

    Luke Ross Guest

  5. #4

    Default Re: mail() returns FALSE, no err msg

    Luke Ross wrote:
    > Hi,
    >
    > Gerhard Buergmann wrote:
    >
    >> 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: [email]aaaa@aaa.aa,bbbb@bbb.bb,cccc@ccc.cc[/email]\n";
    >>
    >> I currently have approx. 30 addresses in the line.
    >> Are there any limits?
    >> And how can I get an error message?
    >
    >
    > Does it work if you use \r\n instead? Some mailers might be more picky
    > about line endings.
    >
    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

    --
    [url]http://www.meta-chrom.com/[/url]


    Gerhard Buergmann Guest

  6. #5

    Default 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.buergmann@puon.at> wrote in message news:<3f65a287$0$265$4d4ebb8e@read-nat.news.nl.uu.net>...
    > Luke Ross wrote:
    > > Hi,
    > >
    > > Gerhard Buergmann wrote:
    > >
    > >> 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: [email]aaaa@aaa.aa,bbbb@bbb.bb,cccc@ccc.cc[/email]\n";
    > >>
    > >> I currently have approx. 30 addresses in the line.
    > >> Are there any limits?
    > >> And how can I get an error message?
    > >
    > >
    > > Does it work if you use \r\n instead? Some mailers might be more picky
    > > about line endings.
    > >
    >
    > 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
    Vijay Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139