Author |
|
starlisa Newbie
Joined: 30 July 2014 Location: United States
Online Status: Offline Posts: 1
|
Posted: 05 January 2021 at 2:26am | IP Logged
|
|
|
I have an incoming mail where MailBee sees the number of To addresses as 0. So when I try and grab the first To address, it gives me an "Index was out of range" error. But I'm looking at the email on the server, and there's definitely a To address.
Code:
client.InboxPreloadOptions = MailBee.Pop3Mail.Pop3InboxPreloadOptions.List
Dim list As MailBee.Mime.MailMessageCollection = client.DownloadEntireMessages()
Dim msg As MailBee.Mime.MailMessage
Response.Write("list.Count:" + list.Count.ToString + "<br>")
For Each msg In list
response.write("-msg.To.Count.ToString:" + msg.To.Count.ToString + "<br>")
response.flush
response.write("-msg.Cc.Count.ToString:" + msg.Cc.Count.ToString + "<br>")
response.flush
response.write("-msg.Bcc.Count.ToString:" + msg.Bcc.Count.ToString + "<br>")
response.flush
Next
|
|
|
This is returning:
-msg.To.Count.ToString:0
-msg.Cc.Count.ToString:2
-msg.Bcc.Count.ToString:0
You can't send an email with only CC addresses. You can send with only To addresses and you can send with only BCC addresses. So why is MailBee reporting this incorrectly?
Thanks,
Lisa
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 05 January 2021 at 11:08am | IP Logged
|
|
|
It's perfectly OK for an email to have just CC addresses.
Regards,
Alex
|
Back to Top |
|
|