I need "Contact Us" functionality which is generally used in website.How to send emails to mail id's provided by user. I know that using Intent we can send email. Using intent we can open default mail app in phone and able to send mail, But how to send mail without opening mail app.
You could do it server-side: You make an HTTP-POST Request with all the data which you want to send in it.
Use WebView.
your "mailto:" tag will not be picked by any app as they will not have access to your webview.
I think the user needs to open the mail app, as you can't assure from which email he wants to send you a contact message. If the user has an already configured account or not, is something you may not know. Maybe he just wants to send you info without using his email.
If you still want to create a contact us going through email, I'd go for this solution.
Otherwise, something like what #niklas said would be ok, but maybe encrypting the content, and probably not sending it as an email, but storing it into a database (so they can just fill the database with trash, instead of exploiting your service to send spam)
Use JavaMail API ... See this below link.
Sending emails without user intervention
Related
I am developing an application using web services(Volly). I just want to create
Forget password module
I am taking email from user. I just want to send verification code to that particular email address so that user can put that code and rest his/her password.
The reason people are down voting your post is because Stack Overflow isn't meant to be used as a place were people just write code for you. You can easily look this up. If you have a specific question, you can ask it here.
I'm working on an security application in which my application will send a mail to the server automatically without the phone user disturbance. What I need is
Colletct user phone number and imei number
Send a email with the information, but user don't know about the process.
When a user insert a new sim again a new email will be send with the above mentioned process
What I done till is :
Colletct user phone number and imei number using telephony manager
Save the information locally
But I need an instruction or tutorial for doing rest of my work. Can anyone help?
You can do this in Version below M but above M you need to ask permission from the user so i suggest you to make a database and send data to server using background async task.
Here is tutorial to send email without intent http://www.oodlestechnologies.com/blogs/Send-Mail-in-Android-without-Using-Intent
I am building an application where there are many Gmail ID of client.
I need when any user click on a particular client ID then it pass to Other selective application like hangout/Gtalk and they can chat there.
Maybe this can help you. You should be able to do what you need via an Intent.
Intent URI to launch Gmail App
I have designed an application that will send an email to all addresses in an sqlite database to check their availability.
Is there any way that the people receiving these emails can reply with a yes/no and the app would listen and take in what the reply was?
If this is not possible for email, can it be done with a yes/no text message?
Thanks in advance.
The replies could certainly be sent as a response to your message and end up in the mailbox corresponding to the sender of your message. Your app could monitor that mailbox for new messages and process them.
You can't use JS in an email, and forms have spotty support (more info). You can instead use href links with unique urls to respond to a single question.
See here for an example.
Its been some weeks im looking for it, but just cant find. Does anyone know how can you send anonymous email from a Android? Im using Intent like in:
Intent email = new Intent(Intent.ACTION_SEND);
.
.
.
email.putExtra(Intent.EXTRA_EMAIL , new String[]{"sendingToThisEmail#gmail.com"});
email.putExtra(Intent.EXTRA_SUBJECT, "subject");
email.putExtra(Intent.EXTRA_TEXT , "any stuff");
But this, or any other thing ive tryed always send the e-mail from the acc you are already logged by default on your Cell phone.
You won't find a straightforward way to do this (i.e. with Intents) unless you find some third party library. Also keep in mind that even if you send the email anonymously, the client IP will still be logged in the email.
Something like this might help you get started, but the basic idea is you'll want to find (or setup) an open SMTP server, connect directly with TCP and send messages using SMTP which is a mail protocol, obviously setting some sort of dummy from address.
I can think of a solution which takes the user message to a textbox and onSubmit sends the data to the server. At server side user messages are stored in databases where periodically a email sender program checks for the new messages and sends them to respective email ID.
Pros:-
Since emails are now being sent from one side it will be easier for you to send anonymous emails. i.e. you can have a dummy account like userMessage#yourdomain.com.
User IPs wont be tracked by the mail servers since a central server is sending the mails.
You can filter the messages which contain spam messages or abusive language by text filtering techniques.
You can store the messages for future use. For Pattern Analysis / Statistical Analysis. At the end of the year you will be able to generate reports, If needed in future.
Cons:-
Mails may not be sent immediately, well that largely depends how often your mail
sender runs an optimum delay is required.
That may require some extra memory space in your database.
this link may be helpful for sending portion, and finally, You are programming for good, keep it up!!!