• Bleary-eyed from trying to figure this out.

    I’m writing a plugin which both restricts access to posts based on user level and has an option to email posts to users.
    The second part has me at a loss.
    The emails are sent in batches with users addresses in BCC.
    I think i’ve narrowed the issue down to if just ONE of the addresses doesn’t exist then none of the emails in that batch will be sent. note, this is “does not exist” i.e. i just made up a dummy address for testing, as opposed to not valid as in something which is not an email address. Addresses in other “clean” batches without the rogue address go out just fine. I believe my formatting of headers etc is fine.
    after much searching i’ve not found anything on the interwires which matches this problem.
    I’ve tried using @wp_mail(), wp_mail() and just good old mail().
    Nothing can be found in the error log, wp_mail just returns FALSE.
    I’m hoping someone here with a better understanding of the vagaries of SMTP and such will have a clue.
    Using a test install of wordpress 3.1 on
    Linux
    Apache 2.2.17
    php 5.2.16
    MySQL 5.1.47
    Thanks for the clear eyes.

Viewing 1 replies (of 1 total)
  • Thread Starter lekandu

    (@lekandu)

    In a minor breakthrough.
    The bogus email address was on a domain which does exist (one of mine) – just the name was for an account which didn’t exists i.e. [email protected]
    I changed it to a totally fake address ([email protected]) and things cleared up.
    so it’s somehow related to the setup on my host?
    not sure how that would affect other emails, to other domains, on the same BCC though. doesn’t make sense to my tired brain.

Viewing 1 replies (of 1 total)
  • The topic ‘Rogue email address stopping sending with wp_mail’ is closed to new replies.