add flexible emailing+solution

Set cards can have a +*send setting that points to one or more Email cards.  Upon creation, any card with a *send setting will send out email(s) accordingly.  When Email cards are sent in this context, "_self" will be interpreted as referring to the newly created card.

 

Email cards can have these fields:

  • *to
    • phrase (email address)
    • pointer - points to cards with accounts
    • search - returns cards with accounts
  • *cc (same as *to)
  • *bcc (same as *to)
  • *from - defaults to current user.  if explicit, works like to.
  • *subject
  • *message
  • *attach

Email cards can also be used to send single emails

 

Note:

  1. change notifications are *not* stored as cards! (can you spell recursion?)
  2. all relative urls must be absolutized
  3. need to embed 'new' view inside other cards, make redirect work
  4. configure redirect after save (*thanks) via pattern?
  5. we may want some sort of "confirm" option (or some way to turn all emails off) so that lots of bogus emails don't get sent during configuration.

Questions:

  1. how can we make it easy to switch between cardtypes on to, cc, bcc, and from?