Hi,

I want to use class Transport java.mail that inherits from the class Service to 
authenticate a user:

 String host = "smtp.gmail.com";
        Properties props = new Properties();
        Session session = Session.getInstance(props);
        boolean check = false;
        try {
            Transport t = session.getTransport("smtps");

            t.connect(host, username, password);
            check = true;
        } catch (NoSuchProviderException e) {
            System.out.println(e.getMessage());
        } catch (MessagingException e) {
            System.out.println(e.getMessage());
        }

        if (check) {
            System.out.println(" --- Good --- ");
            return true;

        } else {
            System.out.println(" --- Invalid username or password --- ");
            return false;

        }

But does not pass , I have this error : The Socket API will be enabled for 
this application once billing has been enabled in the admin console.

my question is, if i enable the billing it will work or I'll have another 
problem ?  

-- 
 

This message and any attachments (the "message") is intended solely for the 
addressees and is confidential. If you receive this message in error, 
please delete it and immediately notify the sender. Any use not in accord 
with its purpose, any dissemination or disclosure, either whole  or 
partial, is prohibited except formal approval. The internet can not 
guarantee the integrity of this message. BRAMS (and its subsidiaries) shall 
(will) not therefore be liable for the message if modified.

------------------------------------------------------------------------------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le "message") sont 
etablis a l'intention exclusive de ses destinataires et sont confidentiels. 
Si vous recevez ce message par erreur, merci de le detruire et d'en 
avertir immédiatement l'expediteur. Toute utilisation de ce message non 
conforme a sa destination, toute diffusion  ou toute publication, totale ou 
partielle, est interdite, sauf autorisation expresse. L'internet ne 
permettant pas d'assurer l'integrite de ce message, BRAMS (et ses filiales) 
decline(nt) toute responsabilite au titre de ce message, dans l'hypothese 
ou il aurait ete modifie.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to