<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap:break-word; font-size:14px; font-family:Calibri,sans-serif; color:rgb(0,0,0)">
<div>
<div>Hi Douglas</div>
<div><br>
</div>
<div>I think that functionality shouldn't be only limited to OMERO.web. We already have in place working (I hope so) email sending bean on the server side to reset password.</div>
<div><br>
</div>
<div>Please look at omero.properties # reset password</div>
<div><br>
</div>
<div>
<div>############################################</div>
<div># Reset password properties</div>
<div>############################################</div>
<div>omero.resetpassword.bean=defaultMailSender</div>
<div>omero.resetpassword.config=false</div>
<div>omero.resetpassword.from=ADDRESS@domain</div>
<div>omero.resetpassword.host=smtp.domain</div>
<div>omero.resetpassword.port=25</div>
<div>omero.resetpassword.username=</div>
<div>omero.resetpassword.password=</div>
<div>omero.resetpassword.mail.transport.protocol=smtp</div>
<div>omero.resetpassword.mail.smtp.auth=false</div>
<div>omero.resetpassword.mail.debug=false</div>
<div>omero.resetpassword.mail.smtp.starttls.enable=false</div>
<div>omero.resetpassword.mail.smtp.socketFactory.class=javax.net.SocketFactory</div>
<div>omero.resetpassword.mail.smtp.socketFactory.fallback=false</div>
<div>omero.resetpassword.mail.smtp.socketFactory.port=25</div>
<div>omero.resetpassword.mail.smtp.timeout=25000</div>
</div>
<div><br>
</div>
<div>
<div>If you look in IAdmin for</div>
<div><span style="font-family:Monaco; font-size:11px; color:rgb(147,26,104)"><br>
</span></div>
<div><span style="font-family:Monaco; font-size:11px; color:rgb(147,26,104)">private</span><span style="font-family:Monaco; font-size:11px">
</span><span style="font-family:Monaco; font-size:11px; color:rgb(147,26,104)">boolean</span><span style="font-family:Monaco; font-size:11px"> sendEmail(Experimenter e, String newPassword)</span></div>
<div><span style="font-family:Monaco; font-size:11px"><br>
</span></div>
<div>
<div>I think with the small adjustment we could move it to LocalAdmin interface and make it public.</div>
<div>If you need any help with this please let me know.</div>
<div><br>
</div>
<div>I hope that make sense</div>
<div><br>
</div>
<div>Kind regards</div>
<div>Ola</div>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; border-bottom:medium none; border-left:medium none; padding-bottom:0in; padding-left:0in; padding-right:0in; border-top:#b5c4df 1pt solid; border-right:medium none; padding-top:3pt">
<span style="font-weight:bold">From: </span>Douglas Russell &lt;<a href="mailto:douglas.russell@bioch.ox.ac.uk">douglas.russell@bioch.ox.ac.uk</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Saturday, 23 November 2013 16:48<br>
<span style="font-weight:bold">To: </span>Devel &lt;<a href="mailto:ome-devel@lists.openmicroscopy.org.uk">ome-devel@lists.openmicroscopy.org.uk</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>[ome-devel] Email Util Design<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr"><span style="font-family:arial,sans-serif; font-size:13px">Hi,</span>
<div style="font-family:arial,sans-serif; font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif; font-size:13px">Posted this on the wrong list initially, please follow up here.</div>
<div style="font-family:arial,sans-serif; font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif; font-size:13px">I'm adding an email announcement page to the admin tabs in the web client. Chris mentioned there was a desire to add more email capability to the CLI so I've implemented the web app to use an email sending
 back-end in utils.</div>
<div style="font-family:arial,sans-serif; font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif; font-size:13px">I've already written the actual email sending functions in utils, but now there are some design decisions to make.</div>
<div style="font-family:arial,sans-serif; font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif; font-size:13px"><b>OMERO Connection in Utils</b></div>
<div style="font-family:arial,sans-serif; font-size:13px">Is it desired that utils are not dependant on an OMERO connection? The web client interface I've designed offers an admin the opportunity to select all-users, some groups, some users and there is a text
 field for arbitrary cc. I can do the resolution of omeName/id and groupId to sets of email addresses in the webclient code, but if it would be useful, I can put it in utils instead? Obviously this relies on having an OMERO connection in the utils, I would
 just pass it in from the calling function.<br>
</div>
<div style="font-family:arial,sans-serif; font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif; font-size:13px"><b>Configuration</b></div>
<div style="font-family:arial,sans-serif; font-size:13px">The current configuration parameters are for the web:</div>
<div style="font-family:arial,sans-serif; font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif; font-size:13px">omero.web.server_email &quot;<a href="mailto:webmaster@example.com" target="_blank">webmaster@example.com</a>&quot;<br>
</div>
<div style="font-family:arial,sans-serif; font-size:13px">omero.web.email_host &quot;<a href="http://email.example.com/" target="_blank">email.example.com</a>&quot;<br>
</div>
<div style="font-family:arial,sans-serif; font-size:13px">omero.web.email_host_user &quot;username&quot;<br>
</div>
<div style="font-family:arial,sans-serif; font-size:13px">omero.web.email_host_password &quot;password&quot;<br>
</div>
<div style="font-family:arial,sans-serif; font-size:13px">omero.web.email_host_port &quot;2255&quot;<br>
</div>
<div style="font-family:arial,sans-serif; font-size:13px">omero.web.email_use_tls &quot;True&quot;<br>
</div>
<div style="font-family:arial,sans-serif; font-size:13px">omero.web.email_subject_prefix &quot;Subject prefix for outgoing e-mail&quot;<br>
</div>
<div style="font-family:arial,sans-serif; font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif; font-size:13px">Options:</div>
<div style="font-family:arial,sans-serif; font-size:13px">
<ol>
<li style="margin-left:15px">Use these settings everywhere (wont make much sense)<br>
</li><li style="margin-left:15px">Define additional settings (bit clumsy)<br>
</li><li style="margin-left:15px">Change these setttings to more general ones and have the web use those (more work and requires config changes on existing servers).<br>
</li></ol>
<div>Also, obviously the web currently has the capability to send email. Should this be modified to use this generic email system?</div>
<div><br>
</div>
<div>Thoughts?</div>
<div><br>
</div>
<div>Douglas</div>
</div>
</div>
</div>
</div>
</span><br>
<span style="font-size:10pt">The University of Dundee is a registered Scottish Charity, No: SC015096</span>
</body>
</html>