Excuse me sir, Are you saved? (선생님, 구원받으셨습니까?)

If you died tonight, Are you going to heaven? (당신이 만약 오늘 밤 죽는다면, 천국에 갈 수 있습니까?)

For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life. (하나님이 세상을 이처럼 사랑하사 독생자를 주셨으니 이는 그를 믿는 자마다 멸망하지 않고 영생을 얻게 하려 하심이라)

-John 3:16 (요한복음 3장 16절)

분류 전체보기 (178)
Embeded (3)
.NET (13)
DB (6)
Javascript (0)
Visual Studio (0)
Project (7)
Experience (0)
General (13)
Car (0)
Story (12)
YBC (4)
Book (6)
Movie (1)
구 MiniHomepy (109)
Visitors up to today!
Today hit, Yesterday hit
daisy rss
2009. 5. 26. 14:38

Server.Transfer("MonthExamMark.aspx");
2009. 5. 26. 14:37

#region 메일보내기[EasyMail]
public static void SencCDOMail(string strFrom, string strTo, string strSubject, string strBody)
{

// string strLicense = "abcd (Unlimited Developer)/A0C86200120615006940";
//
// EASYMAILSMTPLib.EasyMailSMTPObj objSMTP;
// objSMTP = new EASYMAILSMTPLib.EasyMailSMTPObj();
//
// objSMTP.LicenseKey = strLicense;
// objSMTP.MailServer = ConfigurationSettings.AppSettings["SmtpServer"];
// objSMTP.CharSet ="euc-kr";
// objSMTP.BodyFormat = 1;
// objSMTP.From = "EasyMail";
// objSMTP.FromAddr = strFrom;
// objSMTP.AddRecipient ("", strTo, 1);
// objSMTP.Subject = strSubject;
// objSMTP.BodyText = strBody;
//
// int x = objSMTP.Send();


CDO.MessageClass msg = new CDO.MessageClass();
CDO.ConfigurationClass conf = new CDO.ConfigurationClass();
ADODB.Fields Flds = conf.Fields;
Flds[CDO.CdoConfiguration.cdoSendUsingMethod].Value = ConfigurationSettings.AppSettings["SendUsingMethod"];
Flds[CDO.CdoConfiguration.cdoSMTPServer].Value = ConfigurationSettings.AppSettings["SmtpServer"];
Flds[CDO.CdoConfiguration.cdoSendUserName].Value = ConfigurationSettings.AppSettings["sendUserName"];
Flds[CDO.CdoConfiguration.cdoSendPassword].Value = ConfigurationSettings.AppSettings["sendPassword"];

Flds[CDO.CdoConfiguration.cdoSMTPAuthenticate].Value=1;//보내는메일인증


Flds.Update();

msg.Sender = ConfigurationSettings.AppSettings["Sender"];

msg.Configuration = (CDO.Configuration)conf;
msg.From = strFrom; //보내는 사람
msg.To = strTo; //받는 사람
msg.Subject = strSubject; //제목
msg.HTMLBody = strBody;



//파일 첨부(제가 만든 클래스의 속성입니다.collection)
// foreach(object an in email.AttachFiles)
// {
// //an = 파일전체 경로
// msg.AddAttachment(an.ToString(),"","");
// }

msg.Send();

Flds = null;
conf = null;
msg = null;
}
#endregion
2009. 5. 26. 14:35

string script ;

Type cstype = this.GetType();
Page.ClientScript.RegisterStartupScript(cstype, "NO", script);

'구 MiniHomepy > Experience' 카테고리의 다른 글

asp.net에서 딴 페이지로 post submit  (0) 2009.05.26
메일보내기  (0) 2009.05.26
iframe 안의 파일에서 iframe 밖의 파일 제어  (0) 2009.05.26