본문 바로가기
UiPath

[UiPath] 이메일 자동화 1

by 린앤율맘 2023. 10. 24.

이메일 읽기_ Get Imap Email Message

 

초기 설정

- 이메일 환경 설정에서 Imap, Pop3 사용 Check

- imap 서버명, 포트명 정보 복사 

 

Get Imap Email Message 액티비티 

Properties > Port

                  > Server

                  > Email

                  > Password

                  > Output > Messages 내에 변수 생성 ex)listMail

 

For Each 액티비티

List of Items : listMail

WriteLine

제목 읽기

currentitem.Subject

바디 읽기

currentitem.Body

수신자 읽기

currentitem.To.Tostring 

발신자 읽기

currentitem.From.Tostring 

 

 

이메일 보내기

 

스크린샷_Take Screenshot

Properties > 변수 설정

 

데스크톱에 이미지 저정_Save Screenshot

(이미지로 첨부파일 사용을 위한 저장 작업)

Imgae: 변수

Filename: "이름"  (프로젝트 폴더 내 저장)

 

메모장 읽어오기_ Read Text File

(메모장에 저장한 이메일 문안 가져오기)

 

Properties >  변수 설정

 

이메일 보내기_Send SMTP(보낼때) Mail Message

To > "수신자이메일"

Subject > "제목"

Body > 변수 읽기 ex) strEmailBody

Attach Files > 파일 경로 추가

Host > Port , Server,  Email, Password

'UiPath' 카테고리의 다른 글

[UiPath] Gmail 자동화2  (0) 2023.10.25
[UiPath] Gmail 자동화  (0) 2023.10.24
[UiPath] Path.Combine에 대한 정리  (0) 2023.10.24
[UiPath] 데이터 가공_Array, List, Dictionary 이론 및 실습  (1) 2023.10.24
[UiPath] Outlook 활용 1  (0) 2023.10.24