XF 2.0 Finding users who havent entered email.

andybond

Well-known member
I have an add in that pings an email to a user who has not visited us in some time.

I am receiving an error that some users have no entered an address.

Is there any way I can query who , and modify to suit ( even if a dummy address )
 
I have an add in that pings an email to a user who has not visited us in some time.

I am receiving an error that some users have no entered an address.
The add-on is bugged and it should be ensuring the users have an email address before attempting to send to them.

Having a user without an email isn't generally possible - you can't register without an email - but it is possible for an admin to remove an email address when editing them in the Admin CP and creating a user in the Admin CP does not require entering an email address.

As such, any code within XF that attempts to send emails, actually checks first whether they have an email address and if they don't, it silently skips them. That's the behaviour we'd expect from any add-ons being released here that send emails to users.
 
The add-on is bugged and it should be ensuring the users have an email address before attempting to send to them.

Having a user without an email isn't generally possible - you can't register without an email - but it is possible for an admin to remove an email address when editing them in the Admin CP and creating a user in the Admin CP does not require entering an email address.

As such, any code within XF that attempts to send emails, actually checks first whether they have an email address and if they don't, it silently skips them. That's the behaviour we'd expect from any add-ons being released here that send emails to users.

I assume a user could remove an email once then have entered one to register?
 
No, only an admin can remove it. Another way you could get an empty email is if they were imported into XF like that, but generally a user can't do it themselves.
 
Back
Top Bottom