We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

System.ArgumentNullException: Value cannot be null in Aspose.Email.MailMessage.set_From(MailAddress value)

We are moving a mail by creating a new one that gets its properties copied from an existing, locally saved mail. In a special case, we get the following error stack:

System.ArgumentNullException: Value cannot be null.
Parameter name: value
at Aspose.Email.MailMessage.set_From(MailAddress value)
at

The only thing that we see that is different from other e-mails that can be processed succesfully, is that the from address in the mail ends in a dot (e.g. copiers@company.com. => there is a dot after com). Could that be the cause of the exception? From what I read, this is allowed, and gmail processes such mails without any issues.

With kind regards,

Paul D’hertoghe

@accounts.recomatics

To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input file.
    desired behavior.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.