Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create Yahoo email id through java code?

 
Shefali Sharma
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody help me out to create yahoo email id through java code??
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.
First step would be to find out if Yahoo provides some API which would let you create accounts "externally"
Without such an API, there is nothing you can do*.

*You might try to monitor (using tools like firebug) the calls made and the data/data format used when you manually create an account using the browser, and then use something like say URLConnection to do the same from your code, but this would not be a reliable solution.
 
Richard Tookey
Bartender
Posts: 1166
17
Java Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shefali Sharma wrote:Can anybody help me out to create yahoo email id through java code??


Robot type registration is normally frowned upon and I would be surprised if this were allowed by Yahoo either technically or legally. A quick look at the source of the Yahoo registration page shows that there are a ton of hidden fields which it would be easy to emulate but I'm betting (though I don't have a Yahoo account) that one needs some form of post-registration confirmation to complete the registration.
 
Shefali Sharma
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you !! I would be starting from searching Yahoo API if something exists like this and get back to here.
Any help in meanwhile would be appreciated.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The requirement to create a yahoo email account or for that matter any third party email account from Java code isn't common. Why do you want it that way? Can you explain a bit more about what you are after?

 
Shefali Sharma
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually I am working on a project where user needs to register and give his email id with any of the domain
and if user do not have any account so I want to provide the user with the facility to generate email account right there by
just giving his desired userId and password(and email account would be created at back-end with java code for this emailid) , so that my application can send email to this new generated email id through java API(which I am already doing with my existing code for user
who has email account) also user can access this account.

In-short I want to register at yahoomail by java code.

Revert for more queries.

Thanks.
 
Richard Tookey
Bartender
Posts: 1166
17
Java Linux Netbeans IDE
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suspect you should be looking for a different solution. I would not be happy with you creating an email account for me or giving my user name and password to an email account as part of the installation of your program. The standard approach is just to ask the user for his email address and then send him an email with a confirmation link.
 
Shefali Sharma
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would just create email account with username and password that would be given by user itself , however user can change his/her password anytime
as we do normally. This will remove the user's burden to create email account by filling registration form.
And this would be applied only if user does not have any email account.

Thanks
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shefali Sharma wrote:Actually I am working on a project where user needs to register and give his email id with any of the domain
and if user do not have any account so I want to provide the user with the facility to generate email account right there

It would be easier (and better) to provide a link to open a new tab/window with the page at yahoo.

When a human registers at yahoo, there is the option to accept their policies. You'd be skipping that if you used your code to do it.
 
Shefali Sharma
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah , of-course that is the obvious way which i would be doing in last if i won't find any way
to accomplished by task according to my requirement.
 
Richard Tookey
Bartender
Posts: 1166
17
Java Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shefali Sharma wrote:according to my requirement.


I would go back to whoever gave you those requirements and explain the security implications, explain the difficulty of implementation and suggest the more normal and secure approach of sending a confirmation email that the user needs to acknowledge. I have always found that the security argument is the best trump card.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic