0
QTP Outlook 객체 모델을 사용하여 전자 메일을 보내고 있습니다.QTP, 우편 발송자 주소
여기 코드 조각이 있습니다.
'Create an object of type Outlook
Set objOutlook = CreateObject("Outlook.Application")
Set myMail = objOutlook.CreateItem(0)
'Set the email properties
myMail.To = "[email protected]"
myMail.CC = "[email protected]; [email protected]" 'Sending mails to multiple ids
myMail.BCC = "" 'If BCC is not required, then this line can be omitted
myMail.Subject = "Sending mail from MS Outlook using QTP"
myMail.Body= "Test Mail Contents"
myMail.Attachments.Add("D:\Attachment.txt") 'Path of the file to be attached
'Send the mail
myMail.Send
은 지금은 환경 변수에 보낸 사람의 이메일 주소 & 가게를 검색 할 필요가 있었다.
myMail.Sender
또는
myMail.sendermailaddres
둘 다 저에게 효과가 없습니다.
objOutlook.Session.Accounts.Item(0)
는 내가이 같은에서 보내려는 계정을 찾기 위해 루프를 사용 :