Ticket #5294 (closed defect: duplicate)

Opened 10 months ago

Last modified 8 months ago

$phpmailer->Sender line prevents comment notifications from being received

Reported by: stitzelj Assigned to: westi
Priority: normal Milestone:
Component: General Version: 2.3.1
Severity: normal Keywords:
Cc:

Description (Last modified by foolswisdom)

$phpmailer->Sender line prevents comment notifications from being received on hosts that do "callout verification" unless wordpress@[domain] is a valid email address.

WORKAROUNDS

Ensure, that the email address wordpress@[domain] is a valid email address.

OR

Remove the following line in wp-includes/pluggable.php which was added in WP 2.3.1:

228  $phpmailer->Sender = apply_filters( 'wp_mail_from', $from_email ); 

Attachments

no-sender.php (379 bytes) - added by westi on 10/31/07 21:43:12.
WordPress plugin to reverse the change

Change History

10/31/07 13:14:39 changed by Viper007Bond

  • version set to 2.3.1.
  • milestone changed from 2.5 to 2.3.2.

Works just fine for me, so it must be a server configuration thing.

10/31/07 13:47:44 changed by stitzelj

Hm, that figures. And I have no control over server settings, so I guess I'll just have to tag that line out everytime I upgrade from now on.

10/31/07 15:02:21 changed by foolswisdom

stitzelj, hopefully not, the trick is figuring out why it doesn't work for you, and how general the problem is.

10/31/07 15:39:46 changed by stitzelj

Any suggestions on what I can check on my end are welcome.

10/31/07 16:41:20 changed by foolswisdom

My guess is this relates to #5273, and "callout verification". If you create an email address of wordpress@[blogdomain] do you receive the comments? (Or update $from_email in pluggable.php to be equal to an existing email address)

10/31/07 17:42:16 changed by stitzelj

Neither of those corrected the problem.

10/31/07 18:01:23 changed by stitzelj

As it turns out, ticket #5273 that you pointed out is a problem for me, as well. I have a multi-author blog I'm also running that takes new contributors as they come, and neither of the last two that have signed up (both since I upgraded to 2.3.1) have received their verification emails and get email server connection errors when they try to request a new email with a password.

10/31/07 19:13:10 changed by westi

  • owner changed from anonymous to westi.
  • status changed from new to assigned.

(follow-up: ↓ 11 ) 10/31/07 19:23:02 changed by danahuff

I am having the same problem, and it appears that the e-mails being sent out to people who subscribe to my blog might not be receiving them. I had quite a few bounced e-mails in my main box.

10/31/07 20:02:53 changed by stitzelj

Problem solved once I set up the wordpress@[domain] email address. I messed up the initial setup of the account earlier, which is why it didn't seem to fix the problem. I've re-uploaded the original 2.3.1 version of the pluggable.php file, and it works fine. Apparently, the original root email address that was set up when bought my account was no longer adequate when I upgraded to 2.3.1.

(in reply to: ↑ 9 ) 10/31/07 20:11:16 changed by foolswisdom

Followed up with danahuff by email, and her issue doesn't seem to relate. It seems to be a hosting issue.

10/31/07 20:14:26 changed by foolswisdom

  • description changed.
  • summary changed from $phpmailer->Sender line prevents comment notifications from being sent to $phpmailer->Sender line prevents comment notifications from being received.

10/31/07 20:15:08 changed by foolswisdom

  • description changed.

10/31/07 21:10:21 changed by Sportech

Removing the line in pluggable.php solved my problem. I would hate to have to make this fix everytime I upgrade wordpress

10/31/07 21:43:12 changed by westi

  • attachment no-sender.php added.

WordPress plugin to reverse the change

(follow-up: ↓ 16 ) 10/31/07 21:44:30 changed by westi

Could you try the attached plugin to see if this also fixes the issue for you.

This should ensure you don't have to change core files

(in reply to: ↑ 15 ) 10/31/07 22:12:45 changed by Sportech

Replying to westi:

Could you try the attached plugin to see if this also fixes the issue for you. This should ensure you don't have to change core files

This plugin worked.

11/13/07 23:17:47 changed by haniobaid

I've been running without issues for several months. Stopped getting comment notification emails as soon as I upgraded from 2.3 to 2.3.1

Added wordpress@haniobaid.com email to my bluehost cpanel. it didn't help.

Tried the plugin above, also didn't help

11/13/07 23:24:13 changed by haniobaid

I removed the line mentioned above from pluggable and now I get the emails

11/26/07 03:06:36 changed by silkenhut

I followed the instructions here like

creating the wordpress@silkenhut.com deleting line 228 from pluggable.php and even installing/activating the plug-in

but I still can't receive any emails.

11/26/07 20:40:41 changed by lloydbudd

silkenhut, the 1st step may be to work with your host to confirm that the emails are being sent, and what happens to them.

11/30/07 15:50:23 changed by geoffarnold

Just one more data point: I installed 2.3.1, and had no problem with email notifications; then I upgraded to PHP5 (yeah, I know), and started losing most (but not all) notifications. I deleted the infamous line 228, but it didn't help.

11/30/07 16:08:53 changed by santosj

Upgrading to PHP5 shouldn't have caused this issue. Is it possible to downgrade to PHP4 and see that it works? Also, if you still have the old PHP4 installation on another site, see what the phpinfo() says. Specifically, about send_mail (or sendmail), compare the two, if you can and report back.

01/05/08 00:40:44 changed by lloydbudd

  • status changed from assigned to closed.
  • resolution set to duplicate.
  • milestone deleted.

Duplicate of #5273 .