[Cdash] Adding SMTP Mail Authentication

Julien Jomier julien.jomier at kitware.com
Mon Nov 23 14:05:55 UTC 2009


Stefan,

This is great. Could you put a feature request in the bug tracker and 
attach the patch to it? http://www.cdash.org/Bug so we keep track of 
what as changed between releases.

We might want to switch to phpMailer at some point. phpMailer provides a 
complete email mechanism.

Thanks again,
Julien

Stefan wrote:
> Hi,
> 
> since I need to be able to send mails with authentication and CDash did not support this, I added this feature by adding a new function ( sendmail() ) in the common.php and renamed all callings to mail() with this function.
> 
> To reserve compatibility the authentication can be switched of and standard mail() function is used then (CDASH_EMAIL_USE_AUTHENTICATION).
> 
> For configuration of this I added the following variables to config.php :
> 
> $CDASH_EMAIL_USE_AUTHENTICATION = true;
> $CDASH_EMAIL_HOST = 'mail.example.com';
> $CDASH_EMAIL_PORT = 25; //for SSL set 465
> $CDASH_EMAIL_USERNAME = 'smtp_username';
> $CDASH_EMAIL_PASSWORD = 'smtp_password';
> 
> 
> Let's call this a feature request for the next cdash release and a suggested implementation. It seems to work for me but I didn't test it in depth (since I have no idea how to trigger all mail functions of cdash).
> 
> Best,
> Stefan
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Cdash mailing list
> Cdash at public.kitware.com
> http://public.kitware.com/cgi-bin/mailman/listinfo/cdash



More information about the CDash mailing list