Skip to:

Opened 8 years ago

Closed 8 years ago

#7233 closed defect (bug) (no action required)

Updating user profile produces confirmation email error

Reported by: stuartshepherd's profile stuartshepherd Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.6.2
Component: Core Keywords:


If I update a user profile, especially changing their email address I get the following error:

Fatal error: Uncaught exception 'phpmailerException' with message 'Invalid address: test' in /home/content/p3pnexwpnas07_data02/50/2624950/html/wp-includes/class-phpmailer.php:946 Stack trace: #0 /home/content/p3pnexwpnas07_data02/50/2624950/html/wp-includes/pluggable.php(352): PHPMailer->setFrom('test', 'stuart.shepherd...') #1 /home/content/p3pnexwpnas07_data02/50/2624950/html/wp-includes/user.php(1841): wp_mail('stuart@bluebell...', '[Shropshire Adv...', 'Hi caroline.mas...', ) #2 /home/content/p3pnexwpnas07_data02/50/2624950/html/wp-admin/includes/user.php(182): wp_update_user(Object(stdClass)) #3 /home/content/p3pnexwpnas07_data02/50/2624950/html/wp-admin/user-edit.php(147): edit_user(999) #4 {main} thrown in/home/content/p3pnexwpnas07_data02/50/2624950/html/wp-includes/class-phpmailer.php on line 946

I am on Wordpress v4.6 and Buddypress 2.6.2

It looks like a test email setting is in place but I cannot find any settings to support this. It has appeared since updating to the latest Buddypress version

Any help appreciated

Stuart Shepherd

Change History (6)

#1 @DJPaul
8 years ago

Hi @stuartshepherd, thanks for getting in contact. This looks pretty weird. I am going to assume you do not have a record in the wp_users database with a user_email = test, but please check and confirm.

It has appeared since updating to the latest Buddypress version

What version did you upgrade *from*?

Also, can you supply a list of all active plugins on the site, and any other code customisations? I'm looking for things that may use or affect emails in any way.

#2 @stuartshepherd
8 years ago

Hi @DJPaul

Thanks for getting on the case.

Checked the wp_users table and there is nothing with test in it..

The previous version of Buddypress was 2.5.x (sorry, do not know the last element).

Other plugins are:

Akismet v3.1.11
Appointments Lite 1.4.4 beta
Attachments v3.5.7
Buddypress v2.6.2
Buddypress Edit User Profiles v1.0
Captahc by BestWebSoft v4.2.4
Confirm User Registration v2.1.5
Easy SMTP v1.0
Easy WP SMTP v1.2.3
Email Log v1.9.1
Emu2 - Email Users 2 v0.83b
Events Manager v5.6.5
Events Manager Pro v2.4.4.2
EWWW Image Optimizer v2.9.6
Fast Secure Contact Form v4.0.43
Hide Admin Bar and Toolbar v1.6.1.1
Jonimo Simple Redirect v1.5
Lazy Social Buttons v1.0.7
Mail From v.1.0.1
Mass Messaging in BuddyPress v2.1.3
NextGEN Image Cropping v1.2
Photo Gallery v1.3.6
SideKick v2.6.8
Social Media Widget v4.0.5
TablePress v1.7
Ultimate Follow Me Plugin by Free Blog Factory v1.3.3
Unconfirmed v1.3.1
User Role Editor v4.27.1
WordPress FAQ Manager v1.331
WP to Twitter v3.2.13
WP101 Video Tutorials v0.3

#3 @r-a-y
8 years ago

Do you have both SMTP plugins activated? If so, try deactivating one or both of them and try to duplicate the problem again.

#4 @stuartshepherd
8 years ago

Hi @r-a-y

Thanks for the simple tip. Deactivating them both still produced the error. However, when I re-activated the first SMTP plugin, checked the settings (which are going to a none godaddy relay) and tried sending a test email, I got an error showing that 'invalid address: test' happened.

So it is obviously something inside these settings.

I am sure I read somewhere that GoDaddy does not allow you to use external SMTP relays on port 25.

Do you know if this is actually the case ?.

For info, the settings are using an SMTP relay we have at work for other general stuff and we know it is active although I will get this double checked.


#5 @DJPaul
8 years ago

Sorry to pick this up a month or two later, but I think if the SMTP plugins you are using can't send a test email (many of these plugins have an option to do that to verify it's working), then that problem needs to be figured out first. To a degree, BuddyPress builds on top of WordPress' email handling for SMTP, and we make the assumption that WordPress is always able to send emails.

#6 @DJPaul
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Closing, given my last comment above. There might be an issue here but we shouldn't spend too much time investigating edge-cases if WordPress' own emails can't be sent by it.

Note: See TracTickets for help on using tickets.