Anope IRC Services  Version 2.0
Data Structures | Functions
Mail Namespace Reference

Data Structures

class  Message
 

Functions

CoreExport bool Send (User *from, NickCore *to, BotInfo *service, const Anope::string &subject, const Anope::string &message)
 
CoreExport bool Send (NickCore *to, const Anope::string &subject, const Anope::string &message)
 
CoreExport bool Validate (const Anope::string &email)
 

Function Documentation

bool Mail::Send ( User from,
NickCore to,
BotInfo service,
const Anope::string subject,
const Anope::string message 
)
bool Mail::Send ( NickCore to,
const Anope::string subject,
const Anope::string message 
)
bool Mail::Validate ( const Anope::string email)

Checks whether we have a valid, common e-mail address. This is NOT entirely RFC compliant, and won't be so, because I said common cases. ;) It is very unlikely that e-mail addresses that are really being used will fail the check.

Parameters
emailEmail to Validate
Returns
bool

Definition at line 115 of file mail.cpp.

References Anope::string::empty(), Anope::string::find(), Anope::string::length(), Anope::string::npos, and Anope::string::substr().

Referenced by CommandNSRegister::Execute(), WebCPanel::NickServ::Info::OnRequest(), and CommandNSSetEmail::Run().