Email settings - password missing

Yes, I got the email.

I tried it right now and I got IOException again. Maybe try to send the same email more times.

See my JS code below its simlpy easy.

private sendEmail(attachment: string): Observable<object> {
	const bodyParts = new Backendless.Bodyparts();
	bodyParts.textmessage = 'empty';
	bodyParts.htmlmessage = 'empty';
	
	const attachments = [].concat(attachment);
	const toEmails = [this.invoice.retailer.contact.email].concat(environment.invoiceBccEmails);
	console.log(toEmails);
	
	return from(Backendless.Messaging.sendEmail(
		'TEST ' + this.invoicePeriod,
		bodyParts, toEmails, attachments
	));
}

Additional info:
I use this code for a 5 months in production without problem. Last usage was 9.2.2021 without problem. I checked my GIT hisotry and I dont have any changes in code for last month when the IOException occured. So it have to be related to some changes from 9.2.2021. Do you have some changes in cluster synchronization?

Hi @Martin_Krajcir1 !

Sorry for inconvenience. We enabled extended logging for email sending logic to collect more information about your problem. Could you, please, try to send some emails so we will be able to collect related logs.
Thanks in advance.

Regards, Andriy

Hi @Andriy_Konoz

I did few test with resending the same attachement (file saved on Backendless since last week)

Here is result:

Passed:

mail:37EDF39F-C9B3-FEB3-FFB4-239CC0058100

Not passed (IOException):

mail:18B15510-BB83-8E15-FFB2-1A333E7FE000
mail:CF47ED65-7B59-EEE5-FF12-AAD5A24ADE00
mail:6A5AE35E-90E4-F550-FF47-D2C65D050F00
mail:8A424E9A-49CA-88B1-FF1B-E5E82B56B900

Hi @Martin_Krajcir1 !

Thanks. Could you, please, once more try to send several mails with attachment. We need to collect more information for this error.

Regards, Andriy

Hi @Andriy_Konoz,

I did more tests, only 6 of them were delivered to email.

mail:BC5D0093-0CFA-B9FC-FF6C-A409987D1800
mail:556A4754-500A-0AF0-FF98-4325FB1D8B00
mail:0F64EB12-19F7-F500-FF3B-4E95A06DC300
mail:F634FC73-06FF-D2E2-FF93-AD6606EC9B00
mail:799C3072-B1B8-37D2-FFFA-A7CDD20F3C00
mail:74EE5D25-22C0-C8A4-FF40-234794162B00
mail:766F3315-0746-2DF8-FF00-ABE9DE29F500
mail:370485A8-A8A2-59C5-FF6D-E37246ED6100
mail:BB944FFE-7278-7070-FF8A-1306F38F8800
mail:3BE32CE4-2D92-5566-FFA1-65E1A90C8000
mail:0DC82CCE-9489-8F45-FF4A-17A7A15B9000
mail:3F524391-1C6D-DB91-FF45-9A65E96B0F00
mail:E2AC67AF-4C17-32B7-FFE7-1ACAB66BE400
mail:50D5F27F-9818-61A9-FFEE-436C41334D00

Thank you a lot for your help!

I have located cause of this behavior. Internal ticket BKNDLSS-24407 was created for it. It will be fixed as soon as possilbe. We will let you know when it will be fixed.

Regards, Andriy

1 Like

Thank you @Andriy_Konoz for your help and issue investigation.

@Martin_Krajcir1 , one more question - can you give examples of values which is passed to attachment argument of method?

@Andriy_Konoz this is my string for an attachment parameter
"faktury/202103/202103099.pdf"

You can find this PDF file under my App ID: 3551EF8F-C241-7579-FF0D-45ECE827AF00

Hi guys,

We experience the same problem (App ID: BEEE6CEA-DE04-F56F-FF25-5A366040BE00). Transfering attachments through SMTP used to work flawlessly, but last month it apparently stopped working. Our client is not amused, and rightly so. We tried using different SMTP-providers, but several of the mails are not sent. There is no information in the logs. Could you please keep us up-to date on this fix as well? Thanks in advance!

Hello @Andriy_Konoz
do you have any news about BKNDLSS-24407 issue? When it will be solved?

Thank you for info.

Hi @Martin_Krajcir1 !

Yesterday we located and disabled one of server nodes which caused this kind of error.
Currently it should work without any problems.
Is problem still occurs in your app?

Regards, Andriy

Thank you for info. I will use my scenario in production in next few days. I will let you know when some strange things occurs again.

Hi, @Martin_Krajcir1

We would like to inform you that we have added a new Category Loggers - SMTP Logger, which intended for all processes related to custom smtp servers. It can be found in the Files >> logging folder corresponding to a certain date.

Regards,
Marina