SF.net SVN: postfixadmin: [398] trunk/VIRTUAL_VACATION/vacation.pl
Brought to you by:
christian_boltz,
gingerdog
From: <Gin...@us...> - 2008-07-02 19:51:18
|
Revision: 398 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=398&view=rev Author: GingerDog Date: 2008-07-02 12:51:26 -0700 (Wed, 02 Jul 2008) Log Message: ----------- patch from tabmowtez - allow smtp server to be specified - see https://sourceforge.net/tracker/index.php?func=detail&aid=2008468&group_id=191583&atid=937966 Modified Paths: -------------- trunk/VIRTUAL_VACATION/vacation.pl Modified: trunk/VIRTUAL_VACATION/vacation.pl =================================================================== --- trunk/VIRTUAL_VACATION/vacation.pl 2008-07-02 19:50:00 UTC (rev 397) +++ trunk/VIRTUAL_VACATION/vacation.pl 2008-07-02 19:51:26 UTC (rev 398) @@ -83,6 +83,9 @@ my $db_password = ''; my $db_name = 'postfix'; +# smtp server used to send vacation e-mails +my $smtp_server = 'localhost'; + my $syslog = 1; # path to logfile, when empty logging is supressed @@ -198,6 +201,7 @@ my $vacation_subject = encode_mimewords($subject, 'Encoding'=> 'q', 'Charset'=>'utf-8', 'Field'=>'Subject'); my %mail; %mail = ( + 'smtp' => $smtp_server, 'Subject' => $vacation_subject, 'From' => $from, 'To' => $to, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |