Solved

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

Posted on 2004-09-02
7
915 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: 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!

 
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

717 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