javamail - How to send mail from non existing mail mailsender spring? -


how send mail non existing mail? example: no-reply@mydomain.com using spring mail sender configuration. mail doesn't exists reply email address should fail.

solution java mail preferred.

i tried too. not working spring framework. (unknown sender) when sending email pdf attachment created in itext java application

no-reply@mydomain.com

if you're not using smtp authentication doesn't matter whether mail exists or not.

you can send mail addresses doesn't exist without using smtp authentication but that's bad practice because such email's evaluated spam of spam filters.

see answer more details.

hence it's best practice send mail using smtp authentication. when sending mail using way should have credentials email, password, outgoing server, port etc... , you'll need mail exists.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -