mirror of
https://github.com/anope/anope.git
synced 2026-06-24 18:26:37 +02:00
31 lines
946 B
C++
31 lines
946 B
C++
#ifndef MAIL_H
|
|
#define MAIL_H
|
|
|
|
#include "anope.h"
|
|
|
|
extern CoreExport bool Mail(User *u, NickRequest *nr, const Anope::string &service, const Anope::string &subject, const Anope::string &message);
|
|
extern CoreExport bool Mail(User *u, NickCore *nc, const Anope::string &service, const Anope::string &subject, const Anope::string &message);
|
|
extern CoreExport bool Mail(NickCore *nc, const Anope::string &subject, const Anope::string &message);
|
|
extern CoreExport bool MailValidate(const Anope::string &email);
|
|
|
|
class MailThread : public Thread
|
|
{
|
|
private:
|
|
Anope::string MailTo;
|
|
Anope::string Addr;
|
|
Anope::string Subject;
|
|
Anope::string Message;
|
|
|
|
bool Success;
|
|
public:
|
|
MailThread(const Anope::string &mailto, const Anope::string &addr, const Anope::string &subject, const Anope::string &message) : Thread(), MailTo(mailto), Addr(addr), Subject(subject), Message(message), Success(false)
|
|
{
|
|
}
|
|
|
|
~MailThread();
|
|
|
|
void Run();
|
|
};
|
|
|
|
#endif // MAIL_H
|