Problem re-sending an email

Jan 9, 2016 at 5:32 PM
I am reading a POP3 account, and attempting to re-sent that message.

I am getting the POP message and creating the SMTP message using the code below.
                    Dim OriginalMessage As HigLabo.Mime.MailMessage = cl.GetMessage(counter)
                    Dim NewMessage As HigLabo.Net.Smtp.SmtpMessage = HigLabo.Net.Smtp.SmtpMessage.Create(OriginalMessage)
                    rs = SmtpServer.SendMail(NewMessage)
Why I try to send, I get the following Error:
String reference not set to an instance of a String.
Parameter name: s
I have noticed when inspecting OriginalMessage, there are 2 content objects, both populated.
when I inspect NewMessage, there are 3 content objects. The first one was data, but the other two have no length. If I remove the empty content objects the message sends.

It seems like the HigLabo.Net.Smtp.SmtpMessage.Create is not copying all the content objects.

Any suggestions?
Mar 14, 2016 at 12:31 AM

Do you show me the line that throw Exception?
Or Do you show the original raw message of your mail?