public bool AcceptRecipient(SMTPContext context, EmailAddress recipient) { bool match = recipient.Username.ToLower() == "text"; ServiceLocator.Current.Log.WarningIf(!match, "Received mail not to [email protected]. Instead, " + recipient.ToString()); return match; }
/// <summary> /// Accepts only local email. /// </summary> /// <param name='context'>The SMTPContext</param> /// <param name='recipient'>TODO - add parameter description</param> public virtual bool AcceptRecipient(SMTPContext context, MailAddress recipient) { return _domain.Equals(recipient.Host); }
public bool AcceptRecipient(SMTPContext context, EricDaugherty.CSES.Common.EmailAddress recipient) { return true; }
public bool AcceptRecipient(SMTPContext context, EmailAddress recipient) { return(true); }