Android studio : Send email with gmail impossible - java

I create an application. In this application, the users can send me an email (with gmail, my user and password are write in the script).
Unfortunately, I received several emails from Google warning me that a third party knows my password or other. In fact, it was just someone trying to send me an email. So, I did not receive the email. Can you help me solve this, this part is extremely important in my application.
thank you in advance

Related

how to make custom email adress verification in android app with firebase?

I'm designing an app in android studio using Firebase Realtime. There is a problem that has been bugging me for some time.
Indeed, the firebase authentication function allows you to send a link to validate your email address. However, firebase does not allow you to customize the template of the email sent for spam prevention reasons. Does anyone know how to proceed (with tools (SMTP ...), and other ancillary services) to have a sufficiently dressed email (images, application logo .... ect).
ps: I am a beginner.
I found many answers on many sites but none that is clear enough.
thank you friends for your help :)
enter image description here

Best way to receive images uploaded by a user on Android app?

I'm working on an app that lets users submit orders, and also make custom orders where they upload an image. I then want to receive all this information by email. Initially, I was using JavaMail API with Gmail, but I heard that it can cause a blocking of the account due to "Suspicious Activity". Apparently a way around this is to use the Amazon SES SMTP server, but with that I cannot seem to find any documentation whatsoever on sending emails with attachments for Android (there is one but it's for general Java and it does not work on Android).
There must be a better way to to do this, I'm just not sure where to start looking. This is my first dev project (I'm in my 2nd year of computer science), so I'm pretty green with this stuff. If someone could point me in the right direction I would be so grateful. I'm open to learning new things, I'm just not even sure about what I need to learn in the first place for this.
your email will be blocked if you are sending emails in huge amount like hundreds of email in a second if you are not sending email in such amount so don't worry about getting blocked and if you are sending in email in such amount then you can take external email service theirs a lot of marketing via email services i hope this might help

What's the use of mailCatcher?

I'm working on a spring bot application , i want to send notification to my user's gmail account , i found many useful tutorial about that , so i tried working on it ..
But i saw in some forum that i should use mailCatcher instead , i tried to understand what it stands for but there is a lot of a little bit different explanations .
So my questions are :
do i really need MailCatcher ?
As i know mailcatcher can only help us debug and see our messages sent even thought these emails doesnt exists in reality , isnt it ?
Does MailCatcher catches mails and deliver it again for exemple to gmail accounts ? ( supposed im using real emails..) ?
Using gmail api pushs us to activate some security condition in our account for the whole app as i saw in some questions .. , how can we avoid that , or is it necassery ?
I wish i could get some good answers about this.
Thank you in advance .
No. To send mail, you dont' need MailCatcher.
MailCatcher is used to check whether you are going to send correct mails.
MailCatcher runs a super simple SMTP server which catches any message sent to it to display in a web interface. Run mailcatcher, set your favourite app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server, then check out http://127.0.0.1:1080 to see the mail that's arrived so far.
To send email, you need another server, which can really send mail for you, and an account on the sever. You can run this sever by your self, or use public server, like google. But do please not send spams.
On the other hand
send notification to my user's gmail account
doesn't means "send mail". You should consider, do you send email, or just notification.

Swing app login to gmail

I'm building a standalone swing application that connects to all modern mail services like Hotmail, Outlook, Gmail.
My case is:
Show to user small window like "enter you mail and pass"
Obtain all emails and show them to user
And this is place where problems started. All guidelines and tutorials send me to use OAuth protocol. It's not obvious to me and i really can't get where the user login+pass is. Also I can't use any other way to connect to gmail 'cause this is part of functionality (and what customer wants). How to make user connect to his mail without any interaction except entering mail and pass?
Any help will be appreciated. Thanks in advance.

Encrypting/hiding portions of the source code

I've made a simple mailing app that takes in email credentials and uses it to send emails of certain kinds to selected addresses. Problem is, I've had to input the credentials right into the code, so anyone who uses dex2jar can get the source code and get the email used for forwarding and easily make the app obsolete.
I imagine I'm not the only one facing this issue, so what are some ways to make my code secure?
No matter how good of a technique you use to hide the credentials, if it's in the code then it can always be found.
Instead of hard coding them in, you could perhaps let the user specify them when he starts the app? If that can't be avoided you could instead have a remote service that will do the sending and forward your request to that.
You can not both connect to an e-mail account and keep those same users out of said e-mail account. Consider using a hosted server as part of the project to securely connect to the e-mail account from the server level and process these e-mails remotely.

Categories