Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


VB.NET and Groupwise how do I send a CC or BC ?

Posted on 2004-09-02
Medium Priority
Last Modified: 2009-05-12
I have wrote a couple examples and posted them on my site for sending Groupwise email through VB.NET. I just had someone ask how would you go about sending a Bcc or Cc to someone. I tried and outlook example that is similair to it but did not work. Any ideas??

This is a link to my examples
Question by:iamtgo3
  • 4
  • 3
LVL 34

Accepted Solution

flavo earned 500 total points
ID: 11969298
not sure how to in .net, but have alot of GW stuff in VBA

used like

Recipient Add(String EmailAddress, [String EmailType],
[AddressTargetTypeConstants TargetType])


oMsg.recipient.add ("me@there.com", , 1)

Constant Value Description
egwTo 0 To. A primary recipient.
egwCC 1 Carbon Copy. A secondary recipient.
egwBC 2 Blind Copy. This address is hidden to all users except the sender and the receiver.

Hope this helps

LVL 34

Expert Comment

ID: 11969329
lookig at you're code its looks very similar, should be no worries mate.

Dave (i know your pain with GW, there isnt much help out there..)

Author Comment

ID: 11974715
I am trying this three different ways not sure which is right just yet.

Add all to Recipient at the end seems to have a desired effect except for egwBC.
            objRecipients.Add(myEmailTo, "egwTo", 0)
            objRecipients.Add("info@ipdg3.com", "egwCC", 1)
            objRecipients.Add("test@ipdg3.com", "egwBC", 2)
            objRecipient = objRecipients

Add all at the same time does not seem to decipher between egwTo, egwCC or egwBC
            objRecipient = objRecipients.Add(myEmailTo, , 0)
            objRecipient = objRecipients.Add("info@ipdg3.com", , 1)
            objRecipient = objRecipients.Add("test@ipdg3.com", , 2)

Not sure just yet on this one.
            objRecipient = objRecipients.Add(myEmailTo, "egwTo", 0)
            objRecipient = objRecipients.Add("info@ipdg3.com", "egwCC", 1)
            objRecipient = objRecipients.Add("test@ipdg3.com", "egwBC", 2)
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 11977774
Hey Flavo,

I finally got it thanks to your help. I will accept your answer so you get some points for leading me in the right direction. Either one of these work. I will be updating the one I have online.

Solution #1
            objRecipient = objRecipients.Add(myEmailTo, , 0)
            objRecipient = objRecipients.Add("myemail@hotmail.com", , 1)
            objRecipient = objRecipients.Add("myemail@yahoo.com", , 2)

Solution #2
            objRecipients.Add(myEmailTo, , 0)
            objRecipients.Add("myemail@hotmail.com", , 1)
            objRecipients.Add("myemail@yahoo.com", , 2)
            objRecipient = objRecipients

On Novells Site
LVL 34

Expert Comment

ID: 11978311
Glad its all sused out...

i spose my original post should have been

oRecp = oMsg.recipient.add ("me@there.com", , 1)  'forgot about the .Net bit ;-)


Author Comment

ID: 11978451
NP not a lot of people out there are doing a lot GW programming in VB.NET. If you would like the revised final results or anyone else use the link above. I may post this on cool solutions with my other one.

George - www.ipdg3.com
Helping Developers and Programmers Find Resources
LVL 34

Expert Comment

ID: 11979190
>> NP not a lot of people out there are doing a lot GW programming in VB.NET

I'd say even less than in VBA... I couldnt find any doc's on it, had lots of fun with the Intelisense, then finally found the NDK after i had finished the project.  If you find away to catch events from GW (ie Mail Arrived, MailSent, MailDeleted, MailOpen etc..) i would be very very interested!!!!

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Loops Section Overview
Suggested Courses

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question