send mail in android application without smtp.gmail.com - android

I should send email trough app but I want send it from another mail account (no gmail). I've coded a class Mail and I set host="mail#xxxxxx.xx" but in debug mode I've seen that variable host is = "smtp.gmail.com". How is possible? There is a trick?

You're using the JavaMail API to send the mail, right?
Check the JavaMail FAQ, there's several ways to specify the host you want to connect to, including setting a property or passing it explicitly in the call to the connect method. Without more detail on what exactly you're doing, it's hard to say where you went wrong.

Related

Android mobile number verification

Hi guys I need help from you all in Android mobile number verification process. I have a android phone I just need to verify the otp but in this case they using the auto verification method is it possible to verify my otp through fwd the msg or by using prank message app Pls anyone help me to solve my problem and thx in advance...
Assuming that you are asking for "how to implement OTP verification". There are number of ways to tackle this. Please look at the below link for two ways of achieving this using Google authenticator or using a SMS gateway.
Android one time password (OTP)
here is the tutorial to read the incoming messages using Broadcast receiver if you are going to use the second method.
"Reading incoming messages using broadcast receiver."
I believe you are trying to implement a way you can implement your own TTS (Text-To-Speech) Verification system that prompts the user to enter in the code.
If so, you can use Nexmo's Text To Speech Prompt.
All you have to do is make an HTTP call (For example: https://api.nexmo.com/tts-prompt/json)
From here you can use the parameters you want such as,
text - Body of the text message to be read to the end user
machine_detection - How to react when an answering machine is detected
lg - To determine what language the text is read in
bye_text - Body of the text message played after digits are entered successfully
failed_text - Body of the text message played after 3 failed attempts
There are many other parameters you can work with and customize your TTS prompt to capture/confirm data.
Full disclosure, I work at Nexmo
You can see more information how to implement this here

how to make email app in Android?

today I'm working with network in Android.I want to get mail from Gmail/Yahoo account and show them in textbox.Can anyone teach me how to fetch mail content ? I need a point to do it.
You can use javamail – android jar files to get and send email from android. From following you can also find a example to send email using android. This work is based on the opensourced version of JavaMail and activation (JAF) available in the glassfish repository, and some parts of Apache. You can find these files to download from this link https://code.google.com/p/javamail-android/downloads/list.
For Receiving email you can use following link. this link will be helpful for you http://www.javatpoint.com/example-of-receiving-email-using-java-mail-api

What is the APP­KEY in Truecaller API?

I need to verify the spam score of mobile numbers using Truecaller API .I found documentation here . In the API URL , I need to send a APPKEY , But how to get that ? there is no registration page for Truecaller API .
https://api.truecaller.com/v1.0/search.json?userKey=APP­KEY&phone=NUMBER
Any help will be appreciated...
You should Read this Document for Name Search API
it Says that....
The one thing to keep in mind is that all requests to our API require
authentication. For that, you will need to use a User Key (userKey)
along with your requests. These access details basically associate,
your server, script or program with a specific application. All
requests to the API must be made over SSL (https:// not http://).
It means you have registered Truecaller developer account then Do Login and get your Access Key(USER KEY) and pass it everytime you request to access API..
But I Think Truecaller API is not accessible for public users...
Read This Article for More Details : http://www.3scale.net/2013/05/truecaller-api-search-among-over-600-million-phone-numbers-worldwide/
Why don't you try this?
callerpy
Here is the explanation from the developer:
Truecaller Name Retriever.
Since my request for the API was rejected, I commenced using python parsing libraries.
Callerpy emulates the process one would encounter if using a web-browser.
I tried it, and it works like a charm from the command line.

Email dialog HTML ignores some tags Titanium Moblie

I'm currently building an app that has Email sending capabilities. I'm trying to send an Email with the relevant information and includes a link to the original post that is being sent. the original post is created as an HTML code segment, so I have to send the Email as an HTML. i create the Email dialog like this:
var mail = Ti.UI.createEmailDialog({
subject:'FW:'+post.desc,
html:true,
messageBody: '<br><br>view original post<br><br><b style="font-size:1.5em;font-family:Arial">'+post.desc+'</b><br><br><i>'+metaData.text.toString().replace(/\n/g,'<br>')+' </i><br><br>'+post.htmlData
});
Ti.API.debug(mail.messageBody)
mail.open();
when I ran the app on my device, I got the option of sending via "mail" or via "Gmail". when sent via "mail", all the link tabs and and were ignored and striped so the Email didn't include them. however, the "Gmail" option left everything as suppose to.
any thoughts?
the question was asked also in Titanium Q&A
Apparently, the default Email client for Android doesn't have a HTML renderer and disregards it, and the Gmail Android client won't parse certain tags like .
it seems to me like the answer will be using temporary files and attachments.
if anybody comes up with a better answer I'll be very happy.
happy X-mas | Hanukah | festivus for the rest of us

Ijetty deployed war, need ijetty's context

I am using ijetty and I have a war deployed on it. One service it provides it to send emails out from the phone remotely. The recipients/subject/body are all POSTed to the server and I want to send them out of the phone.
I am using this method and it send the mail fine but I need the users credentials. Even if I could just get the email and then the user posted the password that would be fine but to do this I need to use
AccountManager accountManager = AccountManager.get(context);
The problem is that I do not know how to get ijetty's context so that I can get the accounts.
If anyone can help or provide some other direction I would greatly appreciate it.
Ok so I got an awnser from the ijetty mailing list and here it is,
android.content.ContentResolver resolver =
(android.content.ContentResolver)getServletContext().getAttribute("org.mortbay.ijetty.contentResolver");
android.content.Context androidContext =
(android.content.Context)getServletContext().getAttribute("org.mortbay.ijetty.context");
With these 2 objects you should be able to do what you want. Alternatively,
you could always subclass i-jetty to provide access to more android objects.

Categories

Resources