B4A Tutorial [B4X] Sending emails with Gmail REST API - Erel    Jul 17, 2017   (38 reactions) This solution is compatible with B4A, B4J and B4i.
Up until now there were two ways to send emails:
1. Using the default mobile app which required the user to actually send the message (available in B4A and B4i).
2. Using SMTP from the Net library. This required the user to enter the email account B4A Question Send an email - JohnC (first post)    Oct 22, 2019   (3 reactions) Yes, there are three different methods:
1) Send an email using the user's own gmail account: https://www.b4x.com/android/forum/threads/b4x-sending-emails-with-gmail-rest-api.81736/#content
2) Send an email using SMTP: https://www.b4x.com/android/forum/threads/b4x-net-library-ftp-smtp-pop-with-wait- B4A Question Sending an email - AndreyPozdnyakov    Apr 14, 2023 As the application runs, I send an email.
email.To.Add(emailAddress)
email.Subject = "Program crashed"
email.Body = sBody
StartActivity(email.GetIntent)
I need to wait for the email sending process to complete before my application can continue.
How can I tell if an email has already been sent?
T B4A Question Send an email in background - jahswant (first post)    Nov 22, 2020   (4 reactions) Length - 1
SMTP1.To.Add(SMTPto(i))
Next
'SMTP1.To.Add(SMTPto(0))
#end if
#if debug
SMTP1.To.Add(SMTPto(0))
#End If
SMTP1.Sender = SenderAdr
Log("SenderAdr = "&SenderAdr)
SMTP1.Subject = Subj
Log("SenderAdr = "&Subj)
SMTP1.Body = B4A Question send mail with attachment - zed (first post)    Sep 08, 2024 Using an Email object you can create an intent that holds a complete email message.
You can then launch the email application by calling StartActivity. Note that the email will not be sent automatically. The user will need to press on the send button.
Example:
Dim Message As Email
Message.To.Add("So B4A Question send an email in the background - Erel (first post)    Oct 18, 2023   (4 reactions) You cannot use the user's email settings without user intervention.
Start here: https://www.b4x.com/android/forum/threads/b4x-sending-emails-with-gmail-rest-api.81736/#content
Another "background" option is to make a http call to your server and send an email from the server. This is much better t B4J Code Snippet Send Mail via VBScript/PowerShell from B4J via local installed Outlook 20x/365 - KMatle    Jan 17, 2024   (8 reactions) This is a small example how to send Emails via VBScript/Powershell via Outlook (must be installed on your pc!). Works on Outlook 365, too. The B4J App has two buttons (VBScript or PowerShell), creates the related scripts and executes them. You can add more parameters like to send attachements. See B4A Question send email using gmail - DonManfred (first post)    Sep 04, 2024 clientid is NOT meant to be the api key
Use your CLIENTID B4A Question Send an email(SOLVED) - Josias (first post)    Sep 16, 2018   (1 reaction) This works perfectly for me:
Dim emlMsg As Email
emlMsg.To.Add("peter@gmail.com")
emlMsg.CC.Add("peter@gmail.com")
emlMsg.Subject = "Registration"
emlMsg.Body = "Some text "
'emlMsg.Attachments.Add(File.Combine(File.DirRootExternal, "SomeFile.txt"))
StartActivity(emlMsg.GetIntent)
Don't forget to B4A Question Send email through app - NJDude (first post)    Jul 07, 2016   (2 reactions) If you want your app to send the email then do what DonManfred suggested, if you want to use the installed email client, then just use an intent, the easiest way is using the intent. Page: 1   2   3   4   5   6   7   Powered by ColBERT |