PowerApps-메일 보내기 Microsoft SSPR
Microsoft 365 사용자가 관리자에게 많이 물어보는 것 중 하나가 패스워드를 잃어 버렸어요.
관리자가 외부에 있다면 관련 내용을 설명하기 어려울 수 있다.
아래는 PowerApps으로 메일 주소만 넣고 메일 보내기 버튼을 누루면 자동으로 메일이 발송되게 구성해 보았다.
메일 보내기 기능을 활용하려면 아래의 Office365Outlook 연결을 추가해 주어야 한다.
모바일에서 실행 화면
아래는 네이버메일로 보낸 결과 화면.
메일 보내기에 대한 자세한 방법은 본문 하단에 참고자료에 자세히 정리해 놨습니다.
PowerApps 구성화면
- con_SendMail:
Control: GroupContainer@1.3.0
Variant: ManualLayout
Properties:
Fill: =RGBA(236, 236, 235, 1)
Height: =152
Width: |+
=400
X: =If(Parent.Width>500,40,0)
Y: =If(Parent.Width>500,40,0)
Children:
- txt_SSPR_Mail:
Control: Classic/TextInput@2.3.2
Properties:
BorderColor: =RGBA(245, 245, 245, 1)
Color: =RGBA(50, 49, 48, 1)
Default: =
DisabledBorderColor: =RGBA(0, 0, 0, 0)
DisabledColor: =RGBA(161, 159, 157, 1)
DisabledFill: =RGBA(242, 242, 241, 0)
Font: =Font.'Segoe UI'
HintText: ="메일 주소를 입력하세요"
HoverBorderColor: =RGBA(16, 110, 190, 1)
HoverColor: =RGBA(50, 49, 48, 1)
HoverFill: =RGBA(255, 255, 255, 1)
PressedBorderColor: =RGBA(0, 120, 212, 1)
PressedColor: =RGBA(50, 49, 48, 1)
PressedFill: =RGBA(255, 255, 255, 1)
RadiusBottomLeft: =0
RadiusBottomRight: =0
RadiusTopLeft: =0
RadiusTopRight: =0
Width: =221
X: =28
Y: =80
- btn_SSPR_Send:
Control: Classic/Button@2.2.0
Properties:
BorderColor: =RGBA(0, 0, 0, 0)
BorderStyle: =BorderStyle.None
Color: =RGBA(255, 255, 255, 1)
DisabledBorderColor: =RGBA(0, 0, 0, 0)
DisabledColor: =RGBA(161, 159, 157, 1)
DisabledFill: =RGBA(242, 242, 241, 0)
Fill: =RGBA(0, 120, 212, 1)
Font: =Font.'Segoe UI'
HoverBorderColor: =RGBA(0, 0, 0, 0)
HoverColor: =RGBA(255, 255, 255, 1)
HoverFill: =RGBA(16, 110, 190, 1)
OnSelect: "=Office365Outlook.SendEmailV2(txt_SSPR_Mail.Text,\"Microsoft SSPR 비밀번호 재설정 안내 메일\",\r\n\"<div style=\"\"font-family: 'Segoe UI', Arial, sans-serif; max-width: 100%; background-color: #f5f5f5; padding: 20px;\"\">\r\n \r\n <!-- 헤더 -->\r\n <div style=\"\"background-color: #0078d4; color: white; padding: 20px; text-align: center; border-radius: 8px; margin-bottom: 20px;\"\">\r\n <h2 style=\"\"margin: 0; font-size: 20px;\"\">\U0001F6E1️ Microsoft SSPR 비밀번호 재설정 안내</h2>\r\n <p style=\"\"margin: 5px 0 0 0; font-size: 14px;\"\">Self-Service Password Reset 사용 방법</p>\r\n </div>\r\n\r\n <!-- 인사말 -->\r\n <div style=\"\"background-color: #e3f2fd; border-left: 4px solid #0078d4; padding: 15px; margin-bottom: 20px; border-radius: 4px;\"\">\r\n <p style=\"\"margin: 0; color: #333;\"\"><strong>안녕하세요!</strong><br>\r\n Microsoft SSPR(Self-Service Password Reset)을 통해 비밀번호를 직접 재설정하는 방법을 안내해드립니다.</p>\r\n </div>\r\n\r\n <!-- SSPR 소개 -->\r\n <div style=\"\"margin-bottom: 25px;\"\">\r\n <h3 style=\"\"color: #0078d4; font-size: 16px; margin-bottom: 10px; border-bottom: 2px solid #e0e0e0; padding-bottom: 5px;\"\">\U0001F512 SSPR이란?</h3>\r\n <p style=\"\"color: #666; margin-bottom: 15px;\"\">SSPR은 IT 관리자의 도움 없이 사용자가 직접 비밀번호를 재설정할 수 있는 Microsoft의 셀프서비스 기능입니다.</p>\r\n \r\n <div style=\"\"display: flex; flex-wrap: wrap; gap: 10px;\"\">\r\n <span style=\"\"background-color: #e8f4fd; color: #0078d4; padding: 6px 10px; border-radius: 15px; font-size: 12px; border: 1px solid #b3d9f7;\"\">✅ 24시간 이용 가능</span>\r\n <span style=\"\"background-color: #e8f4fd; color: #0078d4; padding: 6px 10px; border-radius: 15px; font-size: 12px; border: 1px solid #b3d9f7;\"\">⚡ 즉시 재설정</span>\r\n <span style=\"\"background-color: #e8f4fd; color: #0078d4; padding: 6px 10px; border-radius: 15px; font-size: 12px; border: 1px solid #b3d9f7;\"\">\U0001F510 안전한 인증</span>\r\n </div>\r\n </div>\r\n\r\n <!-- 구분선 -->\r\n <div style=\"\"height: 1px; background-color: #e0e0e0; margin: 20px 0;\"\"></div>\r\n\r\n <!-- 단계별 안내 -->\r\n <div style=\"\"margin-bottom: 25px;\"\">\r\n <h3 style=\"\"color: #0078d4; font-size: 16px; margin-bottom: 15px; border-bottom: 2px solid #e0e0e0; padding-bottom: 5px;\"\">\U0001F4F1 비밀번호 재설정 단계</h3>\r\n\r\n <!-- 1단계 -->\r\n <div style=\"\"display: flex; margin-bottom: 15px; padding: 12px; background-color: #f8f9fa; border-radius: 6px; border: 1px solid #e0e0e0;\"\">\r\n <div style=\"\"background-color: #0078d4; color: white; width: 25px; height: 25px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-right: 12px; font-size: 14px;\"\">1</div>\r\n <div>\r\n <h4 style=\"\"margin: 0 0 5px 0; font-size: 14px; color: #333;\"\">SSPR 포털 접속</h4>\r\n <p style=\"\"margin: 0; color: #666; font-size: 13px;\"\">웹 브라우저에서 <strong>aka.ms/sspr</strong> 또는 <strong>passwordreset.microsoftonline.com</strong>에 접속합니다.</p>\r\n </div>\r\n </div>\r\n\r\n <!-- 2단계 -->\r\n <div style=\"\"display: flex; margin-bottom: 15px; padding: 12px; background-color: #f8f9fa; border-radius: 6px; border: 1px solid #e0e0e0;\"\">\r\n <div style=\"\"background-color: #0078d4; color: white; width: 25px; height: 25px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-right: 12px; font-size: 14px;\"\">2</div>\r\n <div>\r\n <h4 style=\"\"margin: 0 0 5px 0; font-size: 14px; color: #333;\"\">사용자 ID 입력</h4>\r\n <p style=\"\"margin: 0; color: #666; font-size: 13px;\"\">회사 이메일 주소(예: user@company.com)를 입력하고 \"\"다음\"\" 버튼을 클릭합니다.</p>\r\n </div>\r\n </div>\r\n\r\n <!-- 3단계 -->\r\n <div style=\"\"display: flex; margin-bottom: 15px; padding: 12px; background-color: #f8f9fa; border-radius: 6px; border: 1px solid #e0e0e0;\"\">\r\n <div style=\"\"background-color: #0078d4; color: white; width: 25px; height: 25px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-right: 12px; font-size: 14px;\"\">3</div>\r\n <div>\r\n <h4 style=\"\"margin: 0 0 5px 0; font-size: 14px; color: #333;\"\">본인 인증</h4>\r\n <p style=\"\"margin: 0 0 8px 0; color: #666; font-size: 13px;\"\">등록된 인증 방법 중 하나를 선택합니다:</p>\r\n <ul style=\"\"margin: 0; padding-left: 15px; color: #666; font-size: 13px;\"\">\r\n <li>휴대폰 SMS 인증</li>\r\n <li>휴대폰 음성 통화</li>\r\n <li>대체 이메일 주소</li>\r\n <li>보안 질문 답변</li>\r\n </ul>\r\n </div>\r\n </div>\r\n\r\n <!-- 4단계 -->\r\n <div style=\"\"display: flex; margin-bottom: 15px; padding: 12px; background-color: #f8f9fa; border-radius: 6px; border: 1px solid #e0e0e0;\"\">\r\n <div style=\"\"background-color: #0078d4; color: white; width: 25px; height: 25px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-right: 12px; font-size: 14px;\"\">4</div>\r\n <div>\r\n <h4 style=\"\"margin: 0 0 5px 0; font-size: 14px; color: #333;\"\">새 비밀번호 설정</h4>\r\n <p style=\"\"margin: 0; color: #666; font-size: 13px;\"\">인증 완료 후 새로운 비밀번호를 입력하고 확인합니다. 회사 비밀번호 정책을 준수해야 합니다.</p>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- 구분선 -->\r\n <div style=\"\"height: 1px; background-color: #e0e0e0; margin: 20px 0;\"\"></div>\r\n\r\n <!-- 비밀번호 정책 -->\r\n <div style=\"\"margin-bottom: 25px;\"\">\r\n <h3 style=\"\"color: #0078d4; font-size: 16px; margin-bottom: 10px; border-bottom: 2px solid #e0e0e0; padding-bottom: 5px;\"\">\U0001F6E1️ 비밀번호 정책</h3>\r\n <div style=\"\"background-color: #fff8e1; border: 1px solid #ffcc02; border-radius: 6px; padding: 15px;\"\">\r\n <h4 style=\"\"margin: 0 0 10px 0; color: #f57c00; font-size: 14px;\"\">⚠️ 새 비밀번호는 다음 조건을 만족해야 합니다:</h4>\r\n <ul style=\"\"margin: 0; padding-left: 20px; color: #f57c00; font-size: 13px;\"\">\r\n <li>최소 8자 이상</li>\r\n <li>대문자, 소문자, 숫자, 특수문자 중 3가지 이상 포함</li>\r\n <li>이전 비밀번호와 달라야 함</li>\r\n <li>사용자 이름이나 표시 이름 포함 금지</li>\r\n </ul>\r\n </div>\r\n </div>\r\n\r\n <!-- 문제 해결 -->\r\n <div style=\"\"margin-bottom: 25px;\"\">\r\n <h3 style=\"\"color: #0078d4; font-size: 16px; margin-bottom: 15px; border-bottom: 2px solid #e0e0e0; padding-bottom: 5px;\"\">❗ 문제 해결</h3>\r\n \r\n <div style=\"\"border: 1px solid #e0e0e0; border-radius: 6px; padding: 12px; margin-bottom: 10px; background-color: #fafafa;\"\">\r\n <h4 style=\"\"margin: 0 0 5px 0; color: #333; font-size: 14px;\"\">SSPR이 활성화되지 않은 경우</h4>\r\n <p style=\"\"margin: 0; color: #666; font-size: 13px;\"\">IT 관리자에게 SSPR 등록을 요청하거나 기존 방법으로 비밀번호 재설정을 문의하세요.</p>\r\n </div>\r\n\r\n <div style=\"\"border: 1px solid #e0e0e0; border-radius: 6px; padding: 12px; background-color: #fafafa;\"\">\r\n <h4 style=\"\"margin: 0 0 5px 0; color: #333; font-size: 14px;\"\">인증 정보가 없는 경우</h4>\r\n <p style=\"\"margin: 0; color: #666; font-size: 13px;\"\">휴대폰 번호나 대체 이메일을 먼저 등록해야 합니다. IT 관리자에게 문의하세요.</p>\r\n </div>\r\n </div>\r\n\r\n <!-- 연락처 -->\r\n <div style=\"\"background-color: #e3f2fd; border: 1px solid #90caf9; border-radius: 6px; padding: 15px; margin-bottom: 20px;\"\">\r\n <h3 style=\"\"margin: 0 0 10px 0; color: #0078d4; font-size: 16px;\"\">\U0001F4E7 추가 지원이 필요한 경우</h3>\r\n <p style=\"\"margin: 0 0 10px 0; color: #1565c0; font-size: 14px;\"\">SSPR 사용에 어려움이 있으시면 IT 헬프데스크로 연락주세요.</p>\r\n <div style=\"\"color: #1565c0; font-size: 13px; line-height: 1.6;\"\">\r\n \U0001F4E7 <strong>이메일:</strong> helpdesk@company.com<br>\r\n \U0001F4DE <strong>전화:</strong> 02-1234-5678<br>\r\n \U0001F552 <strong>운영시간:</strong> 평일 09:00 - 18:00\r\n </div>\r\n </div>\r\n\r\n <!-- 빠른 링크 -->\r\n <div style=\"\"text-align: center; margin: 20px 0;\"\">\r\n <div style=\"\"background-color: #0078d4; color: white; padding: 12px 25px; border-radius: 6px; display: inline-block; font-weight: 500;\"\">\r\n <a style=\"\"text-decoration-line: none;\"\" href=\"\"https://aka.ms/sspr\"\" target=\"\"_blank\"\">\r\n \U0001F512 SSPR 포털 바로가기</a> \r\n </div>\r\n <p style=\"\"font-size: 12px; color: #666; margin: 8px 0 0 0;\"\">aka.ms/sspr 또는 passwordreset.microsoftonline.com</p>\r\n </div>\r\n\r\n</div>\",\r\n{From:\"No-Reply@globalsoft.onmicrosoft.com\"}\r\n);\r\nReset(txt_SSPR_Mail);\r\n"
PressedBorderColor: =RGBA(0, 69, 120, 1)
PressedColor: =RGBA(255, 255, 255, 1)
PressedFill: =RGBA(16, 110, 190, 1)
RadiusBottomLeft: =0
RadiusBottomRight: =0
RadiusTopLeft: =0
RadiusTopRight: =0
Size: =13
Text: ="메일 보내기"
Width: =100
X: =261
Y: =80
- lbl_SSPR_Title:
Control: Label@2.5.1
Properties:
BorderColor: =RGBA(0, 0, 0, 0)
BorderStyle: =BorderStyle.None
BorderThickness: =2
Color: =RGBA(50, 49, 48, 1)
DisabledBorderColor: =RGBA(0, 0, 0, 0)
DisabledColor: =RGBA(161, 159, 157, 1)
FocusedBorderThickness: =4
Font: =Font.'Segoe UI'
FontWeight: =FontWeight.Bold
Height: =30
Text: ="Microsoft 비밀번호 재설정 안내 메일 보내기"
Width: =368
X: =28
Y: =28
메모장에 위의 코드를 붙여넣고 출처를 지운 후 다시 저장
원하는 화면에 붙여넣기 하면 자동으로 양식이 만들어 진다.
메일 하단의 값을 회사 관리자 값으로 변경
보낸 사람 주소 수정
회사의 메일 주소로 설정하여 사용
Apps에서 사용하는 메일은 회신이 필요 없음으로 회신 불가형식으로 만들어 사용하는 것을 권장한다. 아래 참고자료 참고
[참고자료]
Power Apps - 메일 보내기 정리
Power Apps 에서 메일 보내는 방법은 1. 메일 보내기 버튼의 OnSelect 설정으로 아래와 같이 보낼 수 있다. Office365Outlook.SendEmailV2(User().Email,"제목","본문") 2. 보내는 사람 변경 여기서 보내는 사람이 앱
leemcse.tistory.com
Power Automate - No-Reply 공유 사서함 만들기 (Exchange Online)
[문의내용] Power Automate에서 특정 계정으로 메일을 보내고 해당 계정에 메일 회신 불가 설정을 하고 싶다. SharePoint HTTP 리디렉트 메일 보내기에는 여러가지 제약 조건이 있어 다른 방법으로 하고
leemcse.tistory.com