Web: Smpt::New (RM #23)

git-svn-id: svn://ultimatepp.org/upp/trunk@3139 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2011-01-31 15:11:10 +00:00
parent de44c7d041
commit 01bcc08a0b
2 changed files with 16 additions and 0 deletions

View file

@ -424,4 +424,16 @@ bool SmtpMail::Send()
}
}
SmtpMail& SmtpMail::New()
{
to.Clear();
to_name.Clear();
as.Clear();
text.Clear();
mime.Clear();
error.Clear();
transcript_text.Clear();
return *this;
}
END_UPP_NAMESPACE

View file

@ -23,7 +23,11 @@ public:
SmtpMail& Attach(const char *name, const String& data, const char *mime = 0);
SmtpMail& Auth(const String& user, const String& pwd) { auth_user = user; auth_pwd = pwd; return *this; }
SmtpMail& New();
bool Send();
void Reset();
String GetError() const { return error; }
String GetTranscript() const { return transcript_text; }