public Mail Deny() { var subject = string.Format("You are not member ({0} ML)", _mlAddr.Name); var bodyStr = _mlAddr.Conv(_docs[(int)MlDocKind.Deny]); return(Create(ContentTyep.Sjis, subject, bodyStr)); }
//メンバー以外は投稿できません public bool Deny(Mail orgMail, MlEnvelope mlEnvelope) { //メール生成 var subject = string.Format("You are not member ({0} ML)", _mlAddr.Name); var bodyStr = _mlAddr.Conv(_docs[(int)MlDocKind.Deny]); var mail = Create(ContentTyep.Sjis, subject, bodyStr); //宛先設定 from<->To from = mailDaemon mail.ConvertHeader("from", _mlAddr.Admin.ToString()); mail.ConvertHeader("to", ReturnTo(orgMail, mlEnvelope)); //送信者をそのまま受信者にする mail.ConvertHeader("date", Util.LocalTime2Str(DateTime.Now)); //日付 //配送 return(_mlSender.Send(mlEnvelope.Swap().ChangeFrom(_mlAddr.Admin), mail)); }