SmtpClient: An extension to send emails using SMTP server

if anyone has working aia code to share, I'd appreciate it, as there is on most every extension. It would lead to a quick solution about which I could then make one posting. Thanks

see the first post in the topic for an example of how to use the blocks.

Hi @jhn
If there had been designer properties or complex logics for setup/initialization of extension, then I would have surely posted the aia file.
You can find the demo blocks in first post.

Hi may I ask how can I make attached?

Get the absolute file path to the file on your device (ensuring it is readable), put that in a list, attach the list to the attachments socket in the extension block. Read posts 44,45,46 in this topic.

Hi thank you for replay, but the path i setting it doesn't sent attachment, can you help me look , thank you very much !!

Can you try with a path like /storage/emulated/0/filename.pdf ?

Replace the (red) crossed-out part with:
/storage/emulated/0

That is work for me, thank you :grin:

Thank you very much!!

This extension is not working anymore. A new attribute was added with the name component. What value should I place, I don't Know.

You mean in Android 12?

could not connect to host smtp.gmail.com port 465;timeout 10000

Hi i am getting this error for all the below setting

TLS - 587
SSL-465

please advise

Please get the logs and post here. And show the blocks.

Buenas tardes vknow360, estoy intentando usar tu extensión y al compilar sale el siguiente error:
App Inventor is unable to compile this project.
The compiler error output was
________Preparing application icon
________Creating animation xml
________Creating style xml
________Creating provider_path xml
________Creating network_security_config xml
________Generating adaptive icon file
________Generating round adaptive icon file
________Generating adaptive icon background file
________Generating manifest file
________Attaching native libraries
________Attaching Android Archive (AAR) libraries
________Attaching component assets
________Invoking AAPT
AAPT time: 1.636 seconds
________Compiling source files
(compiling appinventor/ai_gdelucchi/ClicCorreo/Screen1.yail to appinventor.ai_gdelucchi.ClicCorreo.Screen1)
(compiling /tmp/runtime25095738737420226.scm to com.google.youngandroid.runtime)
Kawa compile time: 3.604 seconds
________Invoking DX
DX time: 42.775000 seconds
YAIL compiler - DX execution failed.

Hi @Gustavo_Delucchi ,
What other extensions are you using?

TaifunMail, pero ya vi que otros usuarios han tenido problemas de incompatibilidad entre extensiones, voy a probar la extensión sin otras extensiones, gracias.

Quité la otra extensión y funciona perfectamente, excelente extensión. :slight_smile:

1 Like

As both extensions use the same library you have to choose one of them. .

Taifun

For Now It won't Work