Unified Functional Testing Practitioners Forum
cancel

Sending an email with attachment by using QCUtil.QCConnection

Highlighted
MateLord
Contributor.

Sending an email with attachment by using QCUtil.QCConnection

I`m using this code to send an email from UFT, i`m receiving it, but without an attachment. 

 

Set con = QCUtil.QCConnection
attachment = "D:\File\File.jpg" 
to_email = "admin@admin.admin"
from_email =  "admin2@admin.admin"
con.SendMail to_email, from_email, "topic" , "text", attachment

Any ideas how to send an email from uft by using QCUtil with attached files?