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.
Related
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
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
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.
I have developed an android app and almost done with it, but I'm stuck with the mail option. I want to set an auto send option for my mail, through which it sends an email by the end of the day. Can anyone please give me a hint or link of any example for that kind of coding.
Check the following link for sending the email How to send a simple email programatically? (exists a simple way to do it??)
And schedule an alarm using AlarmManager to fire at the end of the day and there you can send the mail...
I would suggest you look into the JavaMail API - there are also a number of similar questions here on SO to get you started:
See this answer
Can an app send an email without opening the email interface? How?
Simple Answer:
Its pretty easy to write an SMTP client yourself. See a sample here:
http://davanum.wordpress.com/2007/12/22/android-send-email-via-gmail-actually-via-smtp/
Elaborate Answer:
If you want to write a full featured mail client supporting SMTP, POP, IMAP etc then you should look at the android mail client source code:Email app source
I'm 98% sure that they only way you can do this is to write your own SMTP client and point it at a SMTP server you have a valid account on (or is open for relay). ie, you can't use the standard email app or gmail to do this.
My answer is probably a few months too late for you Mubix, but maybe someone else can benefit from it. I've seen many people refer to this tutorial which shows how to send an email when a button is clicked within your app.