I am currently developing a web application based on Java EE, JSF, EJB etc. This application is deployd on a Debian 7.6 and there is Postfix installed.
I can use something like this to send emails via commandline:
/usr/bin/mailx -s "SUBJECT" -a "From: [email protected]" [email protected]
This is working so far.
My attempt is, to use this line and run it as linux command in Java. Is that correct?
Can I use JavaMail for this (send email via postfix) and if so, how can I set up the config for this?
I am really struggeling with this part of my webapplication. Maybe you can help me to find out, what the best solution is.
mail
command. Is that possible with with JavaMail? Postfix is installed, is that a SMTP-Server? – Preciosa