[daisy] smtphost is set how about user and password ?

Paul Focke paul at outerthought.org
Wed Dec 13 01:46:27 CST 2006


On Wednesday 13 December 2006 02:21, YEL wrote:
> hi everyone,
>
> im wondering wherer i can set the user and password for the smtp user
> so that daisy can use it ?
> i found where i can set the smtp server which i already did at install
> time now my mails are being rejected since daisy does not try afaik to
> login ...
> any ideas or hints?
>
> TIA
> yassine

Hi,

At the moment the emailing component isn't implemented to support 
authentication for smtp.  
To add this feature one would have to have a look at the CommonEmailer.  This 
would mean altering the configuration to allow specification of username and 
password.  Then in the class the mail session should have a property 
mail.smtp.auth set to true if there is authentication settings available.  
When opening a connection to the smtp server the username and password need 
to be passed to the Transport.connect() method.
The emailer also only supports smtp.  So if someone wants to use smtps then 
this would also require some extra coding.  I haven't had much experience 
with certificates in java so I'd have to look up on how to go about this.

Paul


More information about the daisy mailing list