Jump to content

Avoid sending duplicate emails...


rmelino

Recommended Posts

Hello,

 

I have a unique problem that I can't seem to figure out...

 

I have a directory of members on my site.  A user that comes to the site can contact a member by sending a form message through that member's profile page.  When a user contacts a member, that user's message is sent directly to that member but is also sent to other members within close geographic proximity.

 

The problem I am having is that if the same user chooses to contact say 5 different members through the contact form on each of the 5 member profile pages, the members within close proximity get a copy of all 5 of those form submissions.  I'd like to instead have it only send the members within close proximity 1 copy of the message from that same user. 

 

I'm having trouble coming up with an if statement that essentially says 'if user has submitted a message previously, only send his message to other members one time'

 

I hope this makes sense and that perhaps someone has run into the same problem previously...

Link to comment
https://forums.phpfreaks.com/topic/173824-avoid-sending-duplicate-emails/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.