Email to User When a Custom Field is updated

Hi to All,

I am developing a Restaurant Card site for my client in WordPress using s2 Member Plugin.

We have a custom field called “Card Number”. What we want is that once a user registered, he/she sees a message that your card is being prepared and you will get notified once your card is ready.

Then Admin open that user in edit and put his card number and save.

Now at this point we want that as soon Admin put card number and save user, an email should send to that user that your card is ready.

Everything I figured out but only this email i am unable to figure it out.

Can anyone help me how can I send such kind of email in s2 Member plugin.

Regards,
Khurram Sikandar

A bit tricky, but can be done: find a good hood before s2M saves the new info of the user. Check if the card field have a value (admin adds card number) in _REQUEST array. If so, check in the DB if custom field has value. If none, send the email.

Oh that looks very complicated.
OK leave that auto email.

Is there anyway that I can send private email to users from WP Admin area using s2 Member. So in that way after adding Card Number, admin will send email to that user manually hence no complications simple is that.

Please guide me how to send private emails manually to clients in s2 Member.

Well, same difficulty, as for me: add hidden mail form in the “Edit user”, as additional form (to not mess with the main form to save user), but position it next to the card number field. Pre-fill email address and some text. Then pop-up it when admin fills the card code. When email is submitted, hide the mail form. But I would do automated way above - admin can not forget, or submit free email etc.

Or, create own page with a mail form, where admin should put email address and text, and submit the email. Can do that with a plugin, and can attach this page to the main WP admin menu. Fully manual way.