Is there a plugin or snippet that would:
- Add an email input form to each post
- Send a predefined message when new media (or attachments) has been uploaded for that post only
The requested functionality here is different from other plugins I am aware of because it targets only the end user and only on new media upload (as compared to comments).
Any insight at all would be helpful!
As for the email input form, you can use any plugin for Custom Fields ( I use Advanced Custom Fields or Custom Content Type Manager ) or add you own meta box ( tutorial ).
And for sending an email to the address inserted as a custom field, use the following code.
The custom field is named email_warn.
The filter
wp_mail_content_type
enables html content for emails.And
add_attachment
will fire at each upload, pull the parent ID and send an email if the custom field is defined and is a valid email