Scenario seemed pretty straightforward:

If I login to the site as user 1, and send a page, it's sent and I receive it, no errors generated.

If I view the site as an anonymous user, and send a page, it's never received. No errors are reported or recorded: I've check Watchdog, the php log and the Apache log for good measure.

After testing, I realized that in all my test cases, the sender address was the same as the recipient address. I don't remember this being a PHP limitation on my platform (see below), but maybe I remember wrongly.

Anyone have a clue what the cause it? Sending from and to yourself with this kind of feature is a really common user behavior, and I'd like to be able to support it.

Here's what Watchdog reports for a typical send attempt:

Type	print_mail
Date	Wednesday, January 7, 2009 - 12:18
User	Anonymous
Location	http://site.dev:8888/printmail/pagename
Referrer	http://site.dev:8888/printmail/pagename
Message	[xxxx.xxxxx@xxxxxxx.com] sent pagename to [xxxx.xxxxx@xxxxxxx.com]
Severity	notice
Hostname	127.0.0.1

(Note matching sender and recipient masks.)

Tests are being done on OS X 10.5 using MAMP Pro (Apache 2, PHP 5).

Comments

escoles’s picture

Status: Active » Closed (fixed)

OK, answer was simple: Our 3rd party spam filterer was holding them. Looks like the rule for sender-same-as-recipient was tipping the weight of the message over the top.

That was simple. Hopefully when these are being sent from a real website with a real DNS entry, that rule won't matter so much.