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
両方とも私を働かせていません。