Sending e-mail without sender's mailbox - android

In my application I send e-mail using mail.javax. In this case, I have two e-mail address of the sender and recipient. I would like to send e-mail directly to the recipient. without using the sender's mailbox. Is there a way?

Just go ahead and specify spambot or whatever else.
But be aware that most likely your mail will be either blocked by your provider SMTP or by users mail server.

Related

send an email with content that can not be edited

I make an application that allows users to send an email. when i use the usual procedure to send an email with intents the user is redirected to gmail app, and he can edit the mail. I would like to prevent the user from modifying the content of the email. would anyone know how to do it please?
This is too long for a comment, so I am posting the answer. The short answer is that if you rely on the user's phone as the email client, then there is no guaranteed way to prevent the user from editing the email message, because the Gmail app is out of your control. So, what you should instead do here is to use a server side webapp to send the message instead. As an example, I have used an email service (e.g. HawkHost) on the server side behind an Android app to send the message. With this setup, you can completely control what message gets sent from the user or on behalf of the user.

WhatsApp like verification in Android app

I am trying to make an app which requires WhatsApp like validation of number, as heard from many people I sent a SMS from the same number to same number and check if the number is same and in message I sent a hashid generated from number and IMEI number and send the same to Server.
Now when the use receives the SMS and put the hashid on an input field and it got stored to Shared Preference and sent to server to match.
Is this the right way and same way WhatsApp doing?
See these links
SMS registration like in the mobile app: whatsapp
How to verify the phone number similar to Whatsapp?
As it says
Send the phone number to be verified, receive a unique hash.
The verification system sends a unique code to the user.
Once the user passes that code to your application, the original hash and the code are sent to the verification system to be validated.
Flow for MSG verification is:
User sent a request for a verification over a particular mobile
number.
Server sends an SMS to that mobile number with verification code,
along with device IMEI number sent by the phone while asking for
verification [Must be encrypted].
SMS broadcast receiver receives an incoming SMS checks if it's
type and if it's an verification SMS, Decrypt the contents,
validates the IMEI number, gets the verification number and sends
this verification number back to the server.

obtain a callbacks of sending mail

I am developing an application that needs to send inside an ordinary email.
The mail must be sent with the account set up on your smartphone. Through Intent.ACTION_SEND sending the mail goes smoothly.
Is there a way to know if the email was sent and if the sending has been successful?
The mail must be sent with the account set up on your smartphone
You assume the existence of such an account, and this is not a valid assumption. Bear in mind that just because they may have a Google account (e.g., for use with the Play Store), they may not be using Gmail, and there is nothing forcing users to use their Android device for any other email.
Is there a way to know if the email was sent and if the sending has been successful?
No.
ACTION_SEND does not send email. ACTION_SEND lets the user share content of a specified MIME type. Whether the user chooses to send via email, who they send the email to, whether they change the content, whether they send the email at all, and so forth is up to the user, and your app is not informed of any of this.

Getting primary email for using C2DM in android

I want to use a C2DM which will allow my Java Server to send Data to Android phone. Since for
using C2DM each device need its gmail ID, my Question is that how can i get the default email
associated with the android phone and use this email in C2DM.
is it possible to use this email for using C2DM.. if yes then how should i get default email of android phone.
First of all you cannot get which email is associated with the device and secondly you dont need client email you only need a registered email for sending C2DM notification but the condition is that you must have gmail account logged in on android
I think you misunderstand. You do not send C2DM messages to an email address, you send to a RegistrationID that the C2DM library issued to a copy of your application registered on a device. The only email address you need is your sender.
For reference: C2DM documentation
You do not need the users email for C2DM. This email address you have to specify is an address of yours. Have a look at the chrome2phone source - it is a good example for C2DM http://code.google.com/p/chrometophone/source/browse/

how to display toast when email or mms is received to the other person

I am sending emails and mms in my project. I want to show a tost when email or mms is received to the recipient. I am using built-in email and messaging application. I don't know how to implement this please help.
thanx
Is the recipient has your software installed on their machine also?
If not - I can't think of a way to do that.
In general, Both Email & SMS are guaranteed to either deliver your message, or return with an error. So you don't really need this functionality. you can toast the sender that the message was sent.
If the recipient will not get it, your user will get an indication from their email / sms sending facility.

Categories

Resources