Solved

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

Posted on 2004-09-02
7
893 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 1

Author Comment

by:iamtgo3
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
>> 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now