TreeFrogFramework  2.8
tsendmailmailer.h
Go to the documentation of this file.
1 #pragma once
2 #include <QByteArray>
3 #include <QObject>
4 #include <QProcess>
5 #include <QStringList>
6 #include <TMailMessage>
7 
8 
9 class T_CORE_EXPORT TSendmailMailer : public QObject {
10  Q_OBJECT
11 public:
12  TSendmailMailer(const QString &command, QObject *parent = 0);
13  ~TSendmailMailer();
14 
15  QString key() const { return "sendmail"; }
16  bool send(const TMailMessage &message);
17  void sendLater(const TMailMessage &message);
18 
19 protected slots:
20  void sendAndDeleteLater();
21 
22 protected:
23  bool send();
24 
25 private:
26  QString sendmailCmd;
27  TMailMessage mailMessage;
28 
31 };
The TSendmailMailer class provides a simple functionality to send emails by sendmail command.
Definition: tsendmailmailer.h:9
QString key() const
Definition: tsendmailmailer.h:15
#define T_CORE_EXPORT
Definition: tdeclexport.h:28
#define T_DISABLE_COPY(Class)
Definition: tdeclexport.h:37
#define T_DISABLE_MOVE(Class)
Definition: tdeclexport.h:41