#include <libmail/sync.H>
mail::ACCOUNT *mail=new mail::ACCOUNT;
mail::account::openInfo accountOpenInfo;
std::string errmsg=mail->getErrmsg();
mail::ACCOUNT::login opens a new mail account. The mail account's location is specified by accountOpenInfo. See mail::account::open(3x) for the description of the parameters set by accountOpenInfo.
This method returns true if it succeeds, or fail if it fails. If the method fails, use mail::ACCOUNT::getErrmsg() to read a brief description of the error.
NOTE: | The object must be destroyed if mail::ACCOUNT::login fails. A new mail::ACCOUNT object must be created for another login attempt. |
mail::ACCOUNT::logout(3x), mail::account::loginUrlEncode(3x), mail::account::setAppCharset(3x).
<<< Previous | Home | Next >>> |
mail::ACCOUNT::getTopLevelFolders | Up | mail::ACCOUNT::logout |