Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: SubmitToPickupFolder and .CC, .Bcc Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Kearney
Newbie
Newbie
Avatar

Joined: 21 May 2013
Location: United Kingdom
Online Status: Offline
Posts: 5
Posted: 21 May 2013 at 5:25am | IP Logged Quote Kearney

We have our mailBee working perfect except for one thing!

We use the SubmitToPickUpFolder, but we want to send to .cc and .Bcc

It sends to the .To, but not the .Cc and .Bcc. even though we specify with

mailer.Message.From.AsString = strFromEmail
mailer.Message.Subject = cboSubject.Value
mailer.Message.To.AsString = txtTo.Text
mailer.Message.Cc.AsString = txtCC.Text
mailer.Message.Bcc.AsString = txtBcc.Text

mailer.SubmitToPickupFolder(strMailFolder, Nothing, strFromEmail, txtTo.Text, False)

Can anyone help? I'd be so grateful!
Back to Top View Kearney's Profile Search for other posts by Kearney
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 21 May 2013 at 5:30am | IP Logged Quote Igor

In SubmitToPickupFolder method call, you explicitly supplied txtTo.Text which overrided list of recipients found in the message itself. And if you supply null there, it should work as you expect it to.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Kearney
Newbie
Newbie
Avatar

Joined: 21 May 2013
Location: United Kingdom
Online Status: Offline
Posts: 5
Posted: 21 May 2013 at 6:39am | IP Logged Quote Kearney

Yeah saw that!

mailer.SubmitToPickupFolder(strServerPath & strMailFolder, Nothing, strFromEmail, Nothing, False)

Comes back saying

Overload resolution failed because no Public 'SubmitToPickupFolder' is most specific for these arguments:
    'Public Function SubmitToPickupFolder(pickupFolderName As String, filename As String, senderEmail As String, recipientEmails As String, doubleFirstDotAtLine As Boolean) As String':
        Not most specific.
    'Public Function SubmitToPickupFolder(pickupFolderName As String, filename As String, senderEmail As String, recipients As MailBee.Mime.EmailAddressCollection, doubleFirstDotAtLine As Boolean) As String':
        Not most specific.
Back to Top View Kearney's Profile Search for other posts by Kearney
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 21 May 2013 at 6:43am | IP Logged Quote Igor

Oh, I see. Please follow the approach from this example:

Code:
mailer.SubmitToPickupFolder(strServerPath & strMailFolder, Nothing, strFromEmail, CType(Nothing, EmailAddressCollection), False)


Hope this helps!

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Kearney
Newbie
Newbie
Avatar

Joined: 21 May 2013
Location: United Kingdom
Online Status: Offline
Posts: 5
Posted: 21 May 2013 at 8:02am | IP Logged Quote Kearney

Perfect Igor! Top quality support, and a great product!
Back to Top View Kearney's Profile Search for other posts by Kearney
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide