Auto sending email for mobile app - java

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

Related

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.

Twilio sms with interactive replies (we're doing Startup Weekend please help!)

Is it possible to use the Twilio API with the Java SDK to accept/parse replies to SMS messages.
Can anyone point to any documentation that might explain this. So far I have not seen anything that suggests this is possible, but it was possible with Tropo - although it wasn't always "fun".
I would normally take the time to do this research myself, but I'm in the middle of a Startup Weekend so would really appreciate any help.
When Twilio receives an SMS it will request, either via GET or POST the URL you have configured against the number that has just received the SMS at.
You can see the process here: http://www.twilio.com/sms/api
A user texts your number
Twilio receives the text
Twilio makes a request to your application and your app responds.
In the request Twilio makes to your app there will be a body parameter in the GET or POST request. You also have some other data which gets sent - more information can be found in the Twilio documentation here: http://www.twilio.com/docs/api/rest/sms
Once your app receives the request you just need to do any processing required and you could then even SMS the person back to confirm it's being recieved.

Can an app send an email without opening the email interface in Android?

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.

outlook calendar connectivity with java web service

We currently have a java/jsp online web service that includes it's own custom calendar. I am trying to do some research into the possibility of connecting it to a users outlook. Our basic needs that are most simple is some way to sent the person a meeting request that can be added to their outlook from our service.
I know the ideal solution is to sync back and forth but simply being able to import the data from our calendar into someone's outlook would be sufficient.
Does anyone have any resources they can point me to that might help with information gathering, or any example/comments?
Here is a sample to sync calendars using javascript,ie and ActiveX
http://www.codeproject.com/KB/office/OutlookDemo.aspx
I found a simple solution to getting what we needed. Outlook can email an event invite, I had one emailed to me... then copied the format of the email and just have the system sending event invites as emails. That is sufficient for our needs.

Categories