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
void setSender(const QString &aEmail, const QString &aName=QString())
Set email address and name of sender.
QStringList images() const
void setHtml(const QString &aHtml)
Set the message body HTML.
BpsMail & operator=(const BpsMail &aOther)
Assign value from an other mail object.
void setImages(const QStringList &aFiles)
Sets the list of images to embedd for use in HTML.
void setSubject(const QString &aSubject)
Set the subject.
QList< QPair< QString, QString > > ccRecipients() const
Get "CC" recipients email addresses and names.
void setText(const QString &aText)
Set the message body text.
BpsMail(const BpsMail &aOther)
The copy constructor.
QStringList bccRecipients() const
Get "BCC" recipients email addresses.
void addToRecipient(const QString &aEmail, const QString &aName=QString())
Add a "TO" recipient.
void setToRecipients(const QList< QPair< QString, QString >> &aRecipients)
Set the list of "TO" recipients.
void addBccRecipient(const QString &aEmail)
Add "BCC" recipient.
QStringList files() const
void clear()
Clear the object to start over.
void setBccRecipients(const QStringList &aRecipients)
Set the list of "BCC" recipients.
void addImage(const QString &aFile)
Adds an image to embedd for use in HTML.
void setCcRecipients(const QList< QPair< QString, QString >> &aRecipients)
Set the list of "CC" recipients.
void addCcRecipient(const QString &aEmail, const QString &aName=QString())
Add a "CC" recipient.
QString senderName() const
Get sender display name.
QList< QPair< QString, QString > > toRecipients() const
Get "TO" recipients.
QString senderEmail() const
Get sender email address.
void addFile(const QString &aFile)
Adds a file to attach to the email.
BpsMail()
Constructor for the BpsMail object.
void setFiles(const QStringList &aFiles)
Sets the list of files to attach to the email.