All Products
Search
Document Center

Direct Mail:Issues related to API, SDK, and SMTP

Last Updated:Sep 22, 2022

java sdk abnormal sending SDK.InvalidProfile,No active profile found

What are the differences between API and SMTP sending methods?

java sdk abnormal sending SDK.InvalidProfile,No active profile found

To troubleshoot the error, perform the following steps:

  • Does the AccessKey Secret you provided during the request match the AccessKey ID? Make sure that the AccessKey secret you provide is valid.

  • Make sure that the DefaultProfile object has been correctly initialized and its parameters are correctly specified.

What are the differences between the API and SMTP sending methods?

  • If you use the API to send emails, the mailagent is called. If you use the SMTP to send emails, the standard SMTP protocol is used. We recommend that you use the SMTP in most scenarios.

  • If an email contains attachments, we recommend that you use the SMTP.