PDA

View Full Version : CC using vba/outlook??



ifym
01-28-2003, 05:37 AM
can someobdy tell me how to send a email message with a .vbs cc'ing somebody? this is what i got so far, this sends out a email to test@test.com with the subject test, it works fine. But how would i CC somebody? say i want to send it to test, but cc testmanager@test.com how does that work?

set fso = createobject("scripting.filesystemobject")
set wshell=createobject("wscript.shell")
Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olMailItem)
set myrecip= myitem.recipients.add ("test@test.com@csfb.com")
myitem.subject = ("test")
myitem.send


thanks

ifym
01-28-2003, 08:32 AM
figured it out.

myRecipient.Type = 2