Solved

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

Posted on 2004-09-02
7
896 Views
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
http://www.ipdg3.com/sourcecoderesults.php?option=search_sourcecode&sc=NET_&ss=groupwise&match=cp&offset=0
0
Comment
Question by:iamtgo3
  • 4
  • 3
7 Comments
 
LVL 34

Accepted Solution

by:
flavo earned 125 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])

ie

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

AddressTargetTypeConstants
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

Dave
0
 
LVL 34

Expert Comment

by:flavo
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..)
0
 
LVL 1

Author Comment

by:iamtgo3
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)
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 1

Author Comment

by:iamtgo3
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
http://developer.novell.com/ndk/doc/gwobjapi/index.html?page=/ndk/doc/gwobjapi/gwobjenu/data/hrqy17hv.html
0
 
LVL 34

Expert Comment

by:flavo
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 ;-)

Dave
0
 
LVL 1

Author Comment

by:iamtgo3
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
0
 
LVL 34

Expert Comment

by:flavo
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!!!!
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

776 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