WebGUI
      Click here to register.
      
PBWG Banner


     Request Features > Request For Enhancement

SMTP authentication missing

User SourceForge
Date 5/26/2006 11:56 am
Version WebGUI
Views 2064
Rating 10    Rate [
|
]
Difficulty 8
Karma So Far 718
Karma Rank 89.750000
Transfer Karma
Previous · Next
User Message
SourceForge
Most SMTP servers today requires authentication when
connecting to them.
I miss a user/pword field for this in the mail settings and
that WebGUI utilize theese field when sending
messages.

Back to Top  
 
koen

package WebGUI::Mail::Send uses Net::SMTP or the sendmail command to actually send the mail (from 7.5.8 beta)  see: /data/WebGUI/lib/WebGUI/Mail/Send.pm.

If you are using the sendmail command (or script), then obviously authentication is not needed.

In case you are using Net::SMTP then auth could be used:

auth ( USERNAME, PASSWORD )

Attempt SASL authentication. 

So the these things would have to be done to implement this:

  1. Edit the Settings form to have fields to add smtpAuthUser and smtpAuthPassword to the settings table.
  2. Edit WebGUI::Mail::Send to insert this (starting at line 463) of /data/WebGUI/lib/WebGUI/Mail/Send.pm :  

 

if ($self->session->setting->get("smtpAuthUser")) {

$smtp->auth( $self->session->setting->get("smtpAuthUser"), $self->session->setting->get("smtpAuthPassword") ) or $self->session->errorHandler->error("Couldn't authenticate user:$self->session->setting->get("smtpAuthUser")  to mail server: ".$self->session->setting->get("smtpServer") );
 

 

Koen de Jonge - ProcoliX
http://www.procolix.com
Hosting - WebGUI - Virtualization



Back to Top  
 
koen

Oh, and ofcourse you would need the perl Authen::SASL module.

Koen de Jonge - ProcoliX
http://www.procolix.com
Hosting - WebGUI - Virtualization



Back to Top