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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -