SmtpClient: An extension to send emails using SMTP server

Yes, but you can generate app specific passwords to sign in to Google in third party apps.

1 Like

I did not understood what u want to say please elaborate

You can read more about it here.

I already know it I am asking for a solution

It does not look like you read my previous answer...

what exactly prevents you from creating an app specific password as it has been mentioned earlier?

Taifun

Great extension.
Managed to send email using Gmail smtp, however I cannot send attachment
I get this error "IOException while sending message"
Any ideas?
Could the error trapping be more specific?

Thanks

Hello Apostolos

Welcome to the Forum!

What is the file type and size of the attachment?

It's a png of ~500K

You could try putting it in a zip file.

Actually, this happens even with a few byte text file.
Has anyone ever been able to send attachments?

Hmm - not good. Post your Blocks here. Right-mouse in the Blocks work area and select "Download Blocks as image".

@vknow360 Any known issues with attachments?

Pretty simple logic
Working fine without attachment
File path definitely exists

The path may exist, but Google Security Measures will prevent your App from accessing that path. It must either be in the Android Shared folder 'Pictures' or in the App's ASD folder.

Also, you will need to set the file scope. If accessing the file from the ASD, set the Scope to App. If accessing from 'Pictures', set the scope to Shared.

The issue is because of file path.

Make sure you have READ_EXTERNAL_STORAGE permission and if you are testing on Android 11 and above device then you can only access files from Shared Directories ( Download , Pictures etc) only.
Also don't prefix file://.


Hello can you help i get this message , i checked username and password are wright.

Please read.

Awesome! Congratulations!!

Ok thanx for the help, i fixed it also found this video on youtube LESS SECURE APPS (GMAIL) IS OVER | LEARN HOW TO FIX THIS AND CONTINUE USING FREE STMP SERVER DJANGO - YouTube