mail_in_a_box v0.1.7 MailInABox View Source
Email accounts administration. Adding/removing new email accounts dynamicly with this module is possible.
For adding a new account:
{:ok, account_info} = PTE.MailAdmin.add_account("something", "secret")
Removing account:
:ok = PTE.MailAdmin.remove_account("something")
Link to this section Summary
Functions
Add a new email account if not already available.
gets list of email accounts with their status
Removes an email account
Link to this section Functions
Add a new email account if not already available.
{:ok, account_info} =
PTE.MailAdmin.add_account("something@english-learning.ir", "secret")
Returns {:error, reason} in case of error.
gets list of email accounts with their status
Removes an email account
:ok = PTE.MailAdmin.remove_account("something@english-learning.ir")
Returns {:error, reason} in case of error.