This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

i should use or not use javamail api?

 
dhaval thakor
Ranch Hand
Posts: 53
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

My requirement is when user fill up contact form on my website then contact details should go to directly preconfigured email address.

I dont know how to do it without using any alternative email address like now i am using one alternative email(my email id) address through which i am contact info by mail to particular email address.
but when i do this way at every time user from different pc try fill up contact form i am being noticed that some application is trying to access and i have to approve so i can not do it for 1000 users.
so does any one have other idea please share with me..
i badly need it.

Here i want to tell you that i am not using any database to store contact info my application does not have any database . i am just trying to move all data to my preconfigured email.
thanks
 
Paul Clapham
Sheriff
Posts: 21298
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And are you trying to connect to your mail server from something in your web application (on the application server) or from something on the client side, like an applet?
 
dhaval thakor
Ranch Hand
Posts: 53
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
from web application not from client side..
 
Paul Clapham
Sheriff
Posts: 21298
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So where is this "application trying to access" thing happening? And also, what does it say? Exactly what does it say? Basically your original post says "I'm getting this message, what should I do" and that isn't very useful if you want help with the message. Read our FAQ entry TellTheDetails for more about that.
 
dhaval thakor
Ranch Hand
Posts: 53
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually as a alternative i am using gmail account to send data to preconfigured mail id.

so it gives me message that currently some one is trying to access your gmail account.
and then i have to confirm that this is ok.

but i dont want to use this alternative mail. is there any way to send data to preconfigured mail?
 
Paul Clapham
Sheriff
Posts: 21298
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure, you can use any mail server which you have access to. Of course if you don't have access to any mail servers then you're stuck with the current setup. So if this is a real-life project then you should get your ISP or hosting company to configure a mail server for you. And you'll want the e-mail messages to come from your organization's domain, rather than from Gmail.

In other words it all depends on how serious you are about making this setup work.
 
dhaval thakor
Ranch Hand
Posts: 53
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I will try your suggestion , if i have any problem, i will be back.

Thanks for help dude.
 
dhaval thakor
Ranch Hand
Posts: 53
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank all of you giving me solution and suggestion for that..
I should really appreciate for that

I have got solution what @paul has said..

I have used mail server of preconfigured mail on my server ..
and it's working successfully for my application.
thanks a lot guys.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic