How can I send an email without requiring a mail server and username:password to a specific for e.g.myemail@myserver.com
email address? So basically I just have the message and a to-email address.
Is this the correct way to do it?
- find the mail server using dns mx record of the
myserver.com
- Conncet and send an email using smtp to this address?
if yes, how do I do this in java?
some background info - I have webserver and I want to implement a feedback form to the web app user, the webserver gets this form in a POST request and sends this data to a specific email address
note: there are lots of examples using gmail, but then that needs a username password, I would like to avoid that