java - Return path doesn't get set using mail.smtp.from -


i having problems setting return path yahoo emails i'm sending. here's i'm using:

properties props = new properties(); props.put("mail.transport.protocol", "smtps"); props.put("mail.smtps.auth", "true"); props.put("mail.host", host); props.put("mail.port", port); props.put("mail.user", username); props.put("mail.password", password); props.put("mail.smtp.from", bounceaddress); 

i'm sending mimemessage using transport.sendmessage method. still, after sending few, in full-header yahoo mails return path same sender email. idea might problem?

thanks

you're using "smtps" protocol, setting property "smtp" protocol. set "mail.smtps.from" instead.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -