While sending an email with attachment using the qtp , I am able to send the email using outlook object but while sending the email it gives me popup window “A program is trying to automatically send an e-mail on your behalf ,Do you want to allow this”.
Function SendMail(SendTo, Subject, Body, Attachment)
If (Attachment <> "") Then
Set Mail = Nothing
Set ol = Nothing
Can any of you point me in the right direction?
Thanks in advance.