...
Add functioning e-mail in
app/util/Mail.scala
if you use a 'fake' e-mail in your local Clowder developmental branchCode Block language scala collapse true def sendEmail(subject: String, user: Option[User], recipient: User, body: Html) { if (recipient.email.isDefined) { Logger.debug("Subject:" + subject + ", From:" + emailAddress(user) + ", Recipient: " + emailAddress(Some(recipient)) + ", Body:") //sendEmail(subject, emailAddress(user), emailAddress(Some(recipient))::Nil, body) sendEmail(subject, emailAddress(user), List("yourEMail@illinois.edu"), body) } }
Use functioning
smtp
insecuresocial.conf
or override it by settingsmtp.host
and (optional)smtp.from
in yourcustom.conf
Code Block language scala smtp.host=smtp.ncsa.illinois.edu smtp.from="ondrejce@illinois.edu"
Note that the host above can be used only within the NCSA's network.
- whatever
- Disable
scheduler.updateLastRun(‘jobName’)
inmyAction.scala
(or inmodels/Event.scala
for sending email digests) by commenting it out. Your events (followed objects for example) will become 'permanent' and the timer job will always execute since there is no update of thelastJobTime
variable in the MongoDB job object. Don't forget to enable theupdateLastRun()
when you are done debugging. - Set
...