Solved

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

Posted on 2004-09-02
7
894 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Recommendation vb6 to vb.net or others 14 105
More on Time zones in vb 2010 12 37
How to remove double quotes from a string in VB.Net 5 36
Exit the loop 4 31
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
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…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

932 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

15 Experts available now in Live!

Get 1:1 Help Now