Author |
|
Kearney Newbie
Joined: 21 May 2013 Location: United Kingdom
Online Status: Offline Posts: 5
|
Posted: 21 May 2013 at 5:25am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 21 May 2013 at 5:30am | IP Logged
|
|
|
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 |
|
|
Kearney Newbie
Joined: 21 May 2013 Location: United Kingdom
Online Status: Offline Posts: 5
|
Posted: 21 May 2013 at 6:39am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 21 May 2013 at 6:43am | IP Logged
|
|
|
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 |
|
|
Kearney Newbie
Joined: 21 May 2013 Location: United Kingdom
Online Status: Offline Posts: 5
|
Posted: 21 May 2013 at 8:02am | IP Logged
|
|
|
Perfect Igor! Top quality support, and a great product!
|
Back to Top |
|
|