2. DevSendMail 프로젝트에 FrmSendEmailWithMicrosoftEmail.aspx 웹 페이지를 생성하고, 다음과 같이 코드를 작성한다.

    ▼  FrmSendEmailWithMicrosoftEmail.aspx

    <%@ Page Language=“C#” AutoEventWireup=“true”
      CodeBehind=“FrmSendEmailWithMicrosoftEmail.aspx.cs”
      Inherits=“DevSendMail.FrmSendEmailWithMicrosoftEmail” %>
    <!DOCTYPE html>
    <html xmlns=http://www.w3.org/1999/xhtml">
    <head runat=“server”>
      <meta http-equiv=“Content-Type” content=“text/html; charset=utf-8” />
      <title>ASP.NET에서 마이크로소프트 이메일 계정으로 메일 보내기</title>
    </head>
    <body>
      <form id=“form1” runat=“server”>
          <div>
              <asp:Button ID=“btnSendEmail” runat=“server”
                  Text=“MS계정으로메일보내기테스트”
                  OnClick=“btnSendEmail_Click” />
          </div>
      </form>
    </body>
    </html>
    

    신간 소식 구독하기
    뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.