// -*- c++ -*- /*************************************************************************** sendmail.h - description ------------------- begin : dim may 15 16:56:00 CET 2003 copyright : (C) 2003 by Romain Vinot email : vinot@aist.enst.fr ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef _SENDMAIL_H_ #define _SENDMAIL_H_ class QString; class Mail { public: Mail(QString &from, QString &to); ~Mail(); void createMail(char *attach,int len, QString &filename, QString &playermsg); void base64Encode(char *attach, int len); void newLine(int &idx); void sendMail(QString &smtp, QString &port, bool useAuth, QString &login, QString &password); private: QString msg; QString &from; QString &to; }; #endif