Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sending emails from QTP
#5
Solved: 11 Years, 4 Months ago
Try this...
Code:
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="from mail address"
myMail.To="to mail address"
myMail.TextBody="This is a message."
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
'Name or IP of remote SMTP server
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") _
="smtp.server.com"
'Server port
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") _
=25
myMail.Configuration.Fields.Update
myMail.Send
set myMail=nothing
Reply


Messages In This Thread
Sending emails from QTP - by AkhilaV - 06-19-2012, 07:13 PM
RE: Sending emails from QTP - by sshukla12 - 06-20-2012, 10:27 AM
RE: Sending emails from QTP - by AkhilaV - 06-20-2012, 07:21 PM
RE: Sending emails from QTP - by sshukla12 - 06-21-2012, 10:22 AM
RE: Sending emails from QTP - by ssvali - 06-21-2012, 10:53 AM
RE: Sending emails from QTP - by QTPScript - 08-29-2012, 10:09 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Sending json file request and validating response in soap UI tool using Groovy script smiley 0 3,884 07-19-2017, 04:58 PM
Last Post: smiley
  How to keep recipients in bcc while sending e-mail using QCUtil.QCConnection.SenMail Surya 0 1,990 01-12-2013, 07:05 PM
Last Post: Surya
  Subject line of QC emails beejfred 0 1,953 05-09-2012, 10:32 PM
Last Post: beejfred
  Error while sending email via outlook reejais 2 5,156 02-09-2011, 11:48 AM
Last Post: ksrikanth2k9
  Regarding Email sending from one user to another -Important urgent siri 3 2,651 10-15-2009, 04:38 PM
Last Post: Saket

Forum Jump:


Users browsing this thread: 1 Guest(s)