ahalimy

SMTP setup for Windows 7

Discussion created by ahalimy on Mar 28, 2013
Latest reply on Mar 29, 2013 by dhollebeek

Hi All,

 

Need help on how to setup SMTP in Windows 7 so that I can send email via visual basic in PI Processbook. I have no problem in Windows XP by adding the Windows Component.

 

I will use the scripts as below:

 

 

 

Sub SendEmail()

 

 

 

Set objmessage = CreateObject("CDO.Message")

 

      objmessage.Subject = "TNB Market Stock Update"

 

      objmessage.From = "myemailaddress@tnb.com.my"

 

     objmessage.To = “myemailaddress@tnb.com.my"

 

      objmessage.HTMLBody = “This is a test.”

 

      objmessage.Send

 

  Set objmessage = Nothing

 

End Sub

 


 

Please help.

 

 

 

Thank you.

Outcomes