Skip to content
AutoHotKey
2018.01.17 22:14

ahk) Send an email 메일발송하기

조회 수 9390 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

Send an email 메일발송하기

 

http://v1.autohotkey.co.kr/

 

 

1). https://autohotkey.com/boards/viewtopic.php?f=5&t=7736#

2). https://autohotkey.com/board/topic/125455-send-an-email/

 

 

here is what i use,

FileAppend,cool,Autolog.ini

pmsg                    := ComObjCreate("CDO.Message")
            pmsg.From          := "lordnitrogen111@gmail.com"
            pmsg.To               := "lordnitrogen111@gmail.com"
            pmsg.BCC           := ""   ; Blind Carbon Copy, Invisable for all, same syntax as CC
            pmsg.CC             := ""
            pmsg.Subject    := "Autologger Information" A_MM A_DD A_Hour
                     
            pmsg.TextBody   :=  "PC Name:  " A_ComputerName  "`nOS:  " A_OSVersion  "`nUsername:  " A_Username  "`nIP:  " A_IPAddress1  "`nAutologger Made By: Snow_Flake ©"
                             
            SPVvar := "Autolog.ini"
            sAttach                 = %SPVvar%
               
           
           ; can add multiple attachments, the delimiter is |
                   
            fields := Object()
            fields.smtpserver   := "smtp.gmail.com" ; specify your SMTP server
            fields.smtpserverport     := 465 ; 25
            fields.smtpusessl      := True ; False
            fields.sendusing     := 2   ; cdoSendUsingPort
            fields.smtpauthenticate     := 1   ; cdoBasic
            fields.sendusername := "lordnitrogen111@gmail.com" ; Name
            fields.sendpassword := "redman22" ; Password
            fields.smtpconnectiontimeout := 60
            schema := "http://schemas.microsoft.com/cdo/configuration/"
                     
            pfld :=   pmsg.Configuration.Fields
                     
            For field,value in fields
                    pfld.Item(schema . field) := value
            pfld.Update()
                     
            Loop, Parse, sAttach, |, %A_Space%%A_Tab%
              pmsg.AddAttachment(A_LoopField)
                     
            pmsg.Send()
            sleep, 300
            FileDelete, Auto.log

 

과연?

 

테스팅님이 소개한 소스 약간 편집해서 네이버메일용으로 바꾼것... 

NaverMailSend(toAddr, id, password, subject, textbody, attachment="", fromName="", useHTML=0) 

  mailService := "naver.com" 
  pmsg   := ComObjCreate("CDO.Message") 
  pmsg.From  := fromName? (""" fromName "" <" id "@" mailService ">") : (id "@" mailService) 
  pmsg.To   := toAddr 
  pmsg.Subject := subject 
  pmsg.BCC   := ""  ; Blind Carbon Copy, Invisable for all, same syntax as CC 
  pmsg.CC   := "" 
  
  ;You can use either Text or HTML body like 
  if useHTML 
    pmsg.HtmlBody := textbody 
  else 
    pmsg.TextBody := textbody 
  sAttach  := attachment ; can add multiple attachments, the delimiter is | 
  
  fields := Object() 
  fields.smtpserver  := "dsmtp.naver.com" ; specify your SMTP server 
  fields.smtpserverport := 587 
  fields.smtpusessl    := False 
  fields.sendusing      := 2    ; cdoSendUsingPort 
  fields.smtpauthenticate := 1  ; cdoBasic 
  fields.sendusername := id "@" mailService 
  fields.sendpassword := password 
  fields.smtpconnectiontimeout := 60 
  schema := "http://schemas.microsoft.com/cdo/configuration/" 
  pfld := pmsg.Configuration.Fields 
  
  For field,value in fields 
    pfld.Item(schema . field) := value 
  pfld.Update() 
  
  Loop, Parse, sAttach, |, %A_Space%%A_Tab% 
    pmsg.AddAttachment(A_LoopField) 
  pmsg.Send() 
}

 

 

 

#Send #email #메일발송 #gmail

로그인 후 댓글쓰기가 가능합니다.

?

List of Articles
번호 분류 제목 날짜 조회 수
253 회로도전자부품 휴대폰 진동원리를 알아보자 1 file 2016.12.09 8001
252 AVR 회로도, 마이컴, 브레드보드 사용방법 등 3 2012.07.18 13370
251 회로도전자부품 회로계산기(RLC, LC, dBm, Enter conversion, Volume resistivity, Reflection and refraction) 2013.08.31 18639
250 회로도전자부품 회로 시뮬레이션 사이트 1 file 2016.10.31 11177
249 회로도전자부품 햇빛은 비타민 D를 어떻게 만들까? 2019.04.18 6012
248 회로도전자부품 평활회로 2014.02.06 8821
247 회로도전자부품 파이썬 Python tkinter 강좌 2021.06.23 3075
246 회로도전자부품 파이썬 os 모듈, 파일(file)과 디렉토리(directory)활용 2021.08.01 2049
245 회로도전자부품 트랜지스터란? 스위치와 증폭기능에 대한 설명 등 file 2014.01.21 14545
244 회로도전자부품 트랜지스터 펄스신호 만들기 회로 1 2015.09.18 12902
243 회로도전자부품 트랜지스터 주파수특성 2014.04.18 3594
242 회로도전자부품 트랜지스터 제너 다이오드 레귤레이터 회로 2015.09.12 5089
241 회로도전자부품 트랜지스터 접지방식에 따른 증폭회로 2014.04.18 5101
240 회로도전자부품 트랜지스터 워터센서 회로도 file 2018.06.01 5392
239 회로도전자부품 트랜지스터 매뉴얼 file 2014.04.14 3812
238 회로도전자부품 트랜지스터 and MOSFET 이용한 정전류 드라이버 file 2016.01.07 5829
237 회로도전자부품 트랜지스터 file 2014.02.11 12319
236 회로도전자부품 트랜지스터 file 2013.11.14 11507
235 회로도전자부품 트랜스 없이 AC에서 DC 변환 file 2015.08.29 1323
234 회로도전자부품 텔레만 1702 설명서(USER MANUAL 1702/1703, 1720/1730) file 2016.08.31 2202
Board Pagination Prev 1 2 3 4 5 ... 13 Next
/ 13

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소