Form2Mail v2 Plugin Architecture

by Andy Prevost

Monday December 11 2023

The Form2Mail v2 Plugin supports three entry/exit points:

  1. Pre-Send Plugin
  2. Auto Responder Plugin
  3. Post-Send Plugin

All three have access to the same information:

  • process after fields are checked for required status (Form2Mail does not proceed if any required field is missing)
  • process after $_FILES are validated and uploaded ... have access to the count, and uploaded file names (and types)
  • process after form fields are processed into raw format
  • process after TEXT message and HTML message portions are composed

The Post-Send Plugin also has access to the Send status (Send success, Send failure)

With the Pre-Send Plugin, the developer can validate email addresses and modify the recipient email addresses, text message and HTML message.

With the Auto Responder Plugin, the developer can monitor access by any user (via email address) and modify the attachment stream to remove attachments or substitute/include additional attachments. Excellent for lesson outlines, or up-selling process. 

With the Post-Send Plugin, the developer can maintain user mailing lists and sending status.

 

◀ Previous Next ▶

Post a Comment