1 Reply Latest reply on Mar 29, 2013 6:48 PM by dhollebeek

    SMTP setup for Windows 7


      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.”




        Set objmessage = Nothing


      End Sub



      Please help.




      Thank you.