SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist
    Join Date
    Apr 2004
    Location
    Boston
    Posts
    482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mail(): Mail header contains implicit recipients

    Hello,

    I have a script that creates a report and emails it to certain people that I've been using for a year but I recently switched hosts. When I run the script in a browser manually it works fine. The problem comes when I schedule the script as a cron job. I get this error:

    mail(): Mail header contains implicit recipients.

    I know it has something to do with the BCC and CC fields which are both being utilized. Does anyone have an idea on how to fix it? Should i Just removed those fields? I would like to hide the subsidiary recipients which is why i use the BCC.

  2. #2
    SitePoint Addict skunkbad's Avatar
    Join Date
    Apr 2008
    Location
    Temecula, CA
    Posts
    278
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should at least remove them temporarily for debugging purposes. Then you would know for sure if that caused your problem.

    If it were me, I would loop through your email addresses to send the mail, instead of BCCing everyone.


Bookmarks

Posting Permissions

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