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 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 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 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 SMTP Email does not work in receiver/service - drgottjr (first post)    Jan 03, 2024   (1 reaction) my interest was to show that it is possible to send an email using a receiver and a service. i thought that was the most important thing for you to know. i put something together for you quickly without "wait for". wait for is what we use nowadays (when i change my example to "wait for", mail is 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 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 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. B4A Question Build a form with B4A - Brian Dean (first post)    May 16, 2021   (1 reaction) Here is an absolutely basic app that will collect data and send you an email, which is what you asked for in your first post. It is just a starting point.
Sending emails from Android is not very slick, but this might do if your app is only meant to be used by a limited number of people. If it is in B4A Question Object should first be initialized (B4XView) - BOHANG (first post)    Aug 14, 2024 Can I send you an email Page: 1   2   3   4   5   6   7   Powered by ColBERT |