Changeset 681


Ignore:
Timestamp:
01/20/15 11:26:58 (9 years ago)
Author:
Kris Deugau
Message:

/trunk

Convert SMTP From: address to a configuration entry

Location:
trunk/cgi-bin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/IPDB.pm

    r678 r681  
    8181our $domain = 'example.com';
    8282our $defcustid = '5554242';
     83our $smtpsender = 'ipdb@example.com';
    8384# mostly for rwhois
    8485##fixme:  leave these blank by default?
     
    18481849
    18491850  foreach my $recip (keys %reciplist) {
    1850     $mailer->mail("ipdb\@$domain");
     1851    $mailer->mail($smtpsender);
    18511852    $mailer->to($recip);
    1852     $mailer->data("From: \"$org_name IP Database\" <ipdb\@$domain>\n",
     1853    $mailer->data("From: \"$org_name IP Database\" <$smtpsender>\n",
    18531854        "To: $recip\n",
    18541855        "Date: ".strftime("%a, %d %b %Y %H:%M:%S %z",localtime)."\n",
  • trunk/cgi-bin/MyIPDB.pm

    r674 r681  
    5151#$IPDB::domain = 'bob.com';
    5252#$IPDB::defcustid = '5554242';
     53#$IPDB::smtpsender = "ipdb\@$domain";
    5354# Globals for db2rwhois.pl
    5455#$IPDB::rwhoisDataPath = '/usr/local/rwhoisd/etc/rwhoisd';
Note: See TracChangeset for help on using the changeset viewer.