plugins - Play Framework [play-mailer]: how to ensure each receiver sees only his or her email address in the TO field -


here below code send email play-mailer:

import play.api.libs.mailer._ ...  val email = email(   "my subject",   "me <j3d@domain.com>",   seq("john@domain.com", "joe@domain.com", "jack@domain.com"),   bodytext = some("some text..."),   bodyhtml = some("<p>some text...</p>") ) mailerplugin.send(email) 

the problem receivers see recipients email sent to. of course, option invoke mailerplugin.send every single recipient... i'm wondering if there better way ensure each receiver sees or email address in to field.

perhaps best solution using hidden recepient aka bcc. emailer plugin has method addbcc(string address):

 public void addbcc(string address) {     this.bcc.add(address);   } 

regards!


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -