SENDING EMAILS USING THE EXPLICIT ACCOUNT CREDENTIALS

Dear team, 

we are preparing to upgrade to version 7.16.x, and as stated in update guide before update to versions 7.16.1 and 7.16.2 we are tryin to remove any customization using the MailBee library and the Terrasoft.Mail.SmtpClient class.

I am following the guide to set up email sending using explicit account credentials but receive errors when trying to compile the process

Using of Terrasoft.Mail.Sender and Terrasoft.Core.Factories

Could you please, help me? Which namespase\class should I additionally include?

 

Best regards, Iuliia

Like 0

Like

8 comments

Hello Iuliia,

 

Please also get sure that you are using System.Linq along with Terrasoft.Mail.Sender and Terrasoft.Core.Factories. Also please provide us with your code since the code from the article you've sent works correctly and the process can be published.

 

Best regards,

Oscar

Oscar, thanks for your reply. Yes, I did include System.Linq, and code that I am using is exact copy of the code in example, no deviations. Please, note my current version is 7.14.0 - could this be an issue? I noticed that this guide is not available for documentation for 7.14

Regards, Iuliia

Iuliia Diakiv,

 

Yes, you are right, we've reproduced the same publishing error in the clean 7.14.0 version and double-checked with the developers and this approach is acceptable for 7.15.* versions applications and higher. This approach won't work in 7.14.0 and please update your app to 7.16.4 version so to implement the functionality described in the article.

 

Best regards,

Oscar

Oscar Dylan,

Thanks for clarification. One last question: in the update guide it says 

"Before you update to versions 7.16.1 and 7.16.2 make sure you do not have any customization using the MailBee library and the Terrasoft.Mail.SmtpClient class", so does it mean that in versions 7.16.x using mentioned classes is impossible (e.g. they are removed) or just deprecated? 

I am just wondering whether I will receive error upon trying to update to higher version with the current logic implemented, if those classes were removed completely.

 

Regards, IUliia

Iuliia Diakiv,

 

you need to remove this process from the system since the system compiles itself once it is updated so as a result you will receive a compilation error and the update process will be unsuccessful. To make sure that the update is correct you need to remove the process and compile the app after that. In case you receive no errors (warnings are acceptable) then you can process with an update.

 

Best regards,

Oscar

Oscar Dylan,

sorry, I did not understand your last response. What i am asking is this: are  MailBee library and the Terrasoft.Mail.SmtpClient class completely deleted or just deprecated starting from version 7.16.1?

If they are deleted, I need to delete my currently working code that uses them before version update and then re-setup all processes for email sending from scratch? - this will be really inconvenient.

 

Best wishes, Iuliia

 

Iuliia Diakiv,

 

They were completely removed so that's why the update guide tells to remove using this library and class. You can use the SQL script provided there to find all the processes where they are used and modify all the processes according to the articles that are mentioned there.

 

Best regards,

Oscar

Oscar Dylan,

thank you very much for clarification!

Show all comments