X400 support

We’ve noticed with the new 25.6 version the default email address being returned is now the SMTP version. Is there a way to default to get the X400 email back as the default?

image.png (13.4 KB)

@KevinAmes

To set the default email address to X400 instead of SMTP in the latest version of Aspose.Email, you can adjust the settings in your code. While there isn’t a direct method provided in the context, you can manage email address formats through the properties of the email message or the configuration settings of your email client.

Cause: The need to set the default email address format to X400 arises from specific requirements for email routing or compatibility with certain systems.

Solution: Here’s a structured approach to achieve this:

  1. Check Email Address Format: Ensure that the email addresses you are working with are in the X400 format. You may need to convert or specify the format explicitly when creating or processing email messages.

  2. Modify Email Properties: When creating or manipulating email messages, set the appropriate properties to use the X400 address. This may involve using specific methods or properties in the Aspose.Email API.

  3. Review Documentation: Since the API may have updated features or methods in version 25.6, check the Aspose.Email API Reference for any new options related to email address handling.

Next Steps: Implement the above steps in your code. If you encounter any issues or need specific code examples, please reach out for further assistance.

If you have any more questions or need additional help, feel free to ask!

I’m not finding anything in the documentation referencing X400

Hello @KevinAmes,

Could you please provide a sample message file where you’re observing this behavior? It would also be helpful if you could share the code you’re using to load the message and retrieve the email address.

Thank you.

RIJ.PC.00000054.zip (28.0 KB)

The first function we call is MailMessage.getSender() for the MailAddress item, and it branches from here based on Aspose version:

in the old version (24.8), we try MailAddress.getAddress first, but it returns blank, so we call MailAddress.getOriginalAddressString and get the x400 address.

In current version (25.6), we call MailAddress.getAddress and receive the SMTP address (I also verified that calling MailAddress.getOriginalAddressString returns the same SMTP address)

@KevinAmes,

Thank you for the details and for providing the sample file.

We’ll investigate this behavior on Monday and get back to you with our findings. We appreciate your patience in the meantime.

@KevinAmes
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): EMAILNET-41615

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.