How to send mail in background use android - android

I need make an application send email automatic when user click a button
I use Java mail but it not working now because policy security of google.
I can use other mail server but I not found other solution.
Please help me.

Related

Sending Welcome Email to User when he/she Sign Up for the First Time in Firebase

I am developing and android app that uses google Firebase as an authentication provider.I searched out a lot but can not find appropriate answer.I want to send custom Welcome email to user when he/she sign up for the first time.Like the email contain simple "Welcome to Our service Hope you would enjoy our service etc.
Any One have any idea would be appreciated and thank in advanced.
My question is not about how to send the email from phone using intent service but i want to send the email in background without opening any email sending dialog just like email service from amazon that contain info about their service or products.i just want to send email once when the user sign up in firebase for the first time.
You need to use Firebase Cloud Function !
This sample will help you.
With Firebase Cloud Function you can add a trigger on the user account creation and send him a welcome email.
Other sample here.
you can use NodeJs with nodemailer link and check this tutorial or a little trick if you will not use the reset password option, go to firebase console> authentication > templates, for the email verification you can not change the template but for the password reset you can change it with the body you wants. After your user sign in use auth.sendPasswordResetEmail(email) to send the email, nothing will happens to the account and you still have access on it.

How to send Application installation friend request for app installation from mobile via sms?

I tried and researched invite friends to use application by entering their phonenumber and sending the invitation. While send refer friend by using google api it will ask from which mail id to send request then it will automattically get all the mail detais which is available in the circle of sender mail.The same way like is there any possibliity for sending app request via sms can anyone please let me know. Thanks in advance.
You should consider using AppInvite to share app

Send mail in Background for gmail id have 2-layer security

I am trying to send mail in background using the method provided in the accepted answer of This Question. Earlier the mails were sending easily. But due to new gmail's 2-step verification, the I am not able to send mail from email id having this feature. Please suggest any method or change in the code by which I can send mail through the mail id having the 2-step verification.
Thanks.
With 2 Step security, you will need to generate an application specific password, and use that from your app.
This Link will bring you to the creation page for new application specific passwords.

how to send mail directly in android?

In my requirement i need to send a mail directly when user click on the send button without using intents.I have done it with java mail API.But it ask password.Can i send without giving my password?. Is it possible with any other ways? Please tell me.I used bellow link for sending mail.
http://androidcodeexamples.blogspot.in/2012/05/android-send-email-via-gmail-actually.html
Thanking in Advance.
To answer your question I first ask you one.. Can you send mail with any of the available acount without logging in with your password? the answer is no. Because before sending mail you need to authenticate your acount with password. So this is must. If you can send mail without password then anybody can do the same which is definitely not wanted.
Can i send without giving my password?
Your mail server administrator is unlikely to allow password-less email sending, as soon a billion spammers will use your mail server.
You are welcome to write a Web service that will send email to your dedicated "contact-us" account. Or, have the Web service store the "contact-us" information elsewhere, such as a database.
You need to to authenticate to send mails. If you device already has applications you can use intents which will allow you the user to make a choice to sent mails using the desired application.
To send mails using intents
http://www.mkyong.com/android/how-to-send-email-in-android/
You can also hard code username and password and sent mails using javamail api.
Sending Email in Android using JavaMail API without using the default/built-in app
The above requires users to have gmail account.

Send Email as Notification

Hey, i'm creating an application and would like to know, is there a way to automatically send an email from my application, lets say at 3:00, automatically without any input from the user. So instead of creating an intent to open gmail then user has to hit 'send' is there a way to just send it? Thanks!
This is all you need:
Sending Email in Android using JavaMail API without using the default/built-in app
Using AlarmManager to Schedule Activities on Android
I don't think so (I look forward to an answer that proves me wrong) but I think there are security concerns for that. BUT what I know you could do is make a webservice call that could send an e-mail (on behalf of the user) that has the reply-to set to the user's e-mail address.

Categories

Resources