118 ConnectionTimeout = 2,
121 AuthenticationFailed = 5,
124 FatalServerError = 8,
Public include file for BPS CORE library macros.
#define BPSCORE_EXPORT
Declare class to be an import from the shared library.
Definition: bpscore_global.h:22
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
Mail object used for BpsSmtp.
Definition: bpsmail.h:15
A class for sending mail through a SMTP server.
Definition: bpssmtp.h:88
int port() const
Get host IP port number.
void setPassword(const QString &aPassword)
Set the SMTP user password.
bool busy() volatile
Check processing state.
void setAuth(Auth aAuth)
Set the authentication mode.
Auth auth() const
Get authentication mode.
void setEnc(Enc aEnc)
Set the encryption mode.
Enc
Connection type used.
Definition: bpssmtp.h:97
void setUser(const QString &aUser)
Set the SMTP user name.
QString lastStatusMessage() const
int timeout() const
Get time out value.
Status
Status code.
Definition: bpssmtp.h:115
void setHost(const QString &aHost)
Set SMTP server host name or IP address.
void setPort(int aPort)
Set the SMTP servers IP port number.
Enc enc() const
Get encryption mode.
void sendMail(const BpsMail &aMail)
Send a mail.
Auth
Authentication used.
Definition: bpssmtp.h:106
void sendMail(const QString &aFrom, const QString &aTo, const QString &aSubject, const QString &aText, const QStringList &aFiles=QStringList())
Send a simple mail.
void setTimeout(int aTimeout)
void status(int aStatus, const QString &aMessage)
Status code and message emitted after completion.
void waitForCompletion()
Wait for sendMail completion.
BpsSmtp(QObject *aParent=nullptr)
Constructor for the BpsSmtp objects.