![]() |
Email from qtp to Microsoft outlook through vb script - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Email from qtp to Microsoft outlook through vb script (/Thread-Email-from-qtp-to-Microsoft-outlook-through-vb-script) |
RE: Email from qtp to Microsoft outlook through vb script - siri - 07-29-2008 Hi , I am getting an error while using this code like "The "SendUsing" configuration value is invalid." Code: Set objMessage = CreateObject("CDO.Message") RE: Email from qtp to Microsoft outlook through vb script - surya_7mar - 07-29-2008 Code: objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "amermsx.med.ge.com" This is not correct could you please check this.. I am tring for my server it is working fine. And also you should objMessage.Send use this at the end RE: Email from qtp to Microsoft outlook through vb script - surya_7mar - 07-29-2008 Code: Set objEmail=CreateObject("CDO.Message") RE: Email from qtp to Microsoft outlook through vb script - siri - 07-29-2008 Hi , THis code is working fine . Code: Set objEmail = CreateObject("CDO.Message") RE: Email from qtp to Microsoft outlook through vb script - surya_7mar - 07-29-2008 So you got the solution good.. Have a nice day RE: Email from qtp to Microsoft outlook through vb script - siri - 07-30-2008 Hi Surya , I am not able to send a mail from qtp to outlook with the help of qc cAN UTELL EMTHE SCRIPT RE: Email from qtp to Microsoft outlook through vb script - surya_7mar - 07-30-2008 First make sure you QTP is connected to QC. Then try this below, this should work. I am currently using it. QCUtil.QCConnection.SendMail "yourmailsid@mycompany.com" RE: Email from qtp to Microsoft outlook through vb script - surya_7mar - 07-30-2008 One more is your QC configured Properly to send mails? If not sure contact the concern person RE: Email from qtp to Microsoft outlook through vb script - siri - 07-30-2008 I have worked on some other script . This will post the empty defect from qc to outlook. Noe i need a script if i get a bug in qtp how to post to qc immedialtely 'Create connection Code: Dim QCConnection Code: Set bug = BugFactory.AddItem (Nothing) Code: 'bug.field ("BG_USER_02") = sam "Analyst field 'Clean and and release resources Code: Set BugFactory = Nothing RE: Email from qtp to Microsoft outlook through vb script - surya_7mar - 07-30-2008 I didnt work on this but i think we have a setting QC which will automatically post a defect to QC. |