How can send mail in java, nonlogin process [closed] - java

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I have a requirement of sending the email with the attachment of a file. I found few online java code but that is through gmail/yahoo with login credentials. But I want to send it as anonymous instead of logging in.
Similar to what is available in oracle plsql UTIL_SMTP
Any body can help here!
Thanks inadvance

Basic steps:
Have your server configured to allow you to send mail without authentication.
Use Java Mail API. Create a session using Java Mail API as described here in another SO question: Send mail in javax.mail without authentication

Related

Java app to receive reCaptcha, make the user solve it and send Http request [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 days ago.
Improve this question
I am working on a third party client for a website.
Instead of interacting with the website, my app does the job (filling forms and send http request).
but I face an issue with google reCaptcha;
So, is there a way to show the reCaptcha in a popup in my app so that the user can solve then send the solved token with the httprequest
Any ideas on how to receive the reCaptcha and send the solution alongside the Http request in my app?
I'm using Apache HttpClient with Java.
I have no idea from where to start solving the issue.

how much is it secure to share login data using java-bean using socket [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to build a chat Server and client using sockets.
For this first i want to be user login.
I have created a java-bean class and i want to know
How much it is secure to send this java-bean containing username ,email and password to server ?
Unless you use an SSLSocket, its not secure at all. Also it is really not clear what you mean by sending a java bean (Spring, EJB...).

Codename One Sockets Send Message to Client [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
i want to write a simple App for me (Android). For this it is necessary that the server can send data to my client (only one client at a time) but unfortunately i have no idea how to use sockets or websockets with codename one.
Can someone please post a small examplecode how to establish connection, listen on it and send some small data?
greetings
Captain
You need to use the cn1lib from Steve Hannah to access websockets. Its available here: https://github.com/shannah/cn1-websockets
Found thru looking at https://www.codenameone.com/cn1libs.html
Sockets are a bit problematic though, you might want to look at push, pubnub or just https if applicable. See the chat app demo parts 5 & 6 for the former:
https://www.codenameone.com/blog/building-a-chat-app-with-codename-one-part-5.html
have a look at this example code: https://towhidz.wordpress.com/2012/03/03/simple-chat-applicationclient-server-in-android/
Google is your friend

Sms API for java web application? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to make a technology where x person sends a message to buy a ticket for his train and after that he gets his message "Your train ticket is booked successfully". In that case what SMS API should i use? And yes i'm making web application using java, jsp and servlet.
Surely, Help would be appreciated!!
You should get an SMS provider for this.
They also provide you with an API for their own service, there is no free "out there" API for this.

How to hide my IP address when sending emails using Javamail? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I made a Java application that sends emails using JavaMail and it works fine.
The problem is, I want to hide my IP(like when you send an email using Gmail on a browser) before sending it to another user on my app.
I tried to use the setFrom() method to change the from field, but it still reveals my IP.
Is there any way to do this?
It's not possible to hide your IP in the mail header. It's not actually undeer your control. The server at the receiving end know which IP it received the message from and add's that IP to the header of the message.
Spammers generally search the net for more or less open relays to exploit those. A good configuration for your SMTP server will do a lot to prevent those.

Categories

Resources