newsletter-0: A basic newsletter implimentation, using various backends.

Safe HaskellNone
LanguageHaskell2010

Network.Mail.Newsletter.Class

Documentation

class Newsletter p where Source #

Methods

subscribe :: ProcessT p (Address, Value) () Source #

Adds users with specific data to the Newsletter recipient list.

unsubscribe :: ProcessT p Address () Source #

Removes users from the Newsletter recipient list.

subscribers :: SourceT p (Address, Value) Source #

Gets a list of subscribers and all their associated data.

sendEmail :: (Address -> Mail) -> p () Source #

Send an email to the mailing list. Takes as From Address for correctness.

sendSubscribe :: Address -> (Address -> Mail) -> p () Source #

Sends a subscription email to just the person signing up. Takes the From Address to create the mail for correctness.