Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regarding Email sending from one user to another -Important urgent
#1
Not Solved
HI All ,

After a long back posting thread .Please help[ me in finding the option .

I have a script for sending an email from one user to another .The below mentioned is the script.

Code:
Set objEmail = CreateObject("CDO.Message")

objEmail.From = "sirisha.guntur@ge.com"
objEmail.To = "Arnot.Heron@ge.com"
objEmail.Subject = "Test script passed successfully "
objEmail.Textbody = "Server1 is no longer accessible over the network."

objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "amermsx.med.ge.com"
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objEmail.Configuration.Fields.Update

objEmail.Send


When i execute this script error is poping u[ on the screen AS "Transport faield to connect server"

How canm i rectify the problem .
Niranjan help me in thsi regards ASAP .
Reply
#2
Not Solved
I think only passing an SMTP server value will do this. Besides make sure the machine, you are using to send CDO mails, are having SMTP settings done on it in IIS. I am also using such CDO functionality & initially I use to give those 3 parameters, "SendUsing", "SMTP Server", "SMTP Server Port" & it was working fine. But later our IT department migrated our mail server to Outlook 2007 & then we had to remove the other 2 parameters except "SMTP Serve".
Try doing this & let me know....
Reply
#3
Not Solved
Hi
Code:
Set objEmail = CreateObject("CDO.Message")

objEmail.From = "sirisha.guntur@ge.com"
objEmail.To = "swetha.nellore@ge.com"
objEmail.Subject = "Test script passed successfully "
objEmail.Textbody = "Server1 is no longer accessible over the network."

objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "amermsx.med.ge.com"
objEmail.Configuration.Fields.Update

objEmail.Send


AS per u said i used the only i used SMPT server and removeed Sending Using and Smtp port
Errror is populating like SendUSing is missing
Error is still coming like "Transport faield connecting server "Please help me i need immediate responses from niranjan too
Reply
#4
Not Solved
Check you have 'Default SMTP Server' configured on your machine.

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Send automatic email notification when test run started helmzshelmz 0 922 04-03-2020, 07:54 AM
Last Post: helmzshelmz
  How to get input from the user in QTP? shanthiK 10 18,051 08-07-2017, 11:34 PM
Last Post: zunebuggy
  Sending json file request and validating response in soap UI tool using Groovy script smiley 0 3,648 07-19-2017, 04:58 PM
Last Post: smiley
  How to attach HTML file to Email Naresh 0 2,740 04-06-2015, 02:04 PM
Last Post: Naresh
Exclamation URGENT: ActiveX component can't create object citibank_ani 3 15,272 09-09-2014, 01:02 PM
Last Post: VarunKaushik

Forum Jump:


Users browsing this thread: 2 Guest(s)