//destinatari and message are 2 variables from sendMail
//destinatari and message are 2 variables from sendMail
int QwwSmtpClient::sendMail(const QString & from, const QStringList & to, const QString & content) {
To copy to clipboard, switch view to plain text mode
string mesaj="From: TopMovieS@gmx.us\r\nTo: "+to+"\r\nSubject: TopMovie Notification\r\n\r\n";
mesaj=mesaj+"Congratulations, \r\n\r\nYour uploaded Movie, \""+film+"\", is First in "+genre+" Top with "+votes+" votes!\r\n\r\n";
mesaj=mesaj+"TopMovie Server";
string mesaj="From: TopMovieS@gmx.us\r\nTo: "+to+"\r\nSubject: TopMovie Notification\r\n\r\n";
mesaj=mesaj+"Congratulations, \r\n\r\nYour uploaded Movie, \""+film+"\", is First in "+genre+" Top with "+votes+" votes!\r\n\r\n";
mesaj=mesaj+"TopMovie Server";
QString message=mesaj.c_str();
QStringList destinatari=QString(to.c_str()).split(";");
To copy to clipboard, switch view to plain text mode
Bookmarks