16 |
|
|
17 |
$sth->execute($email); |
$sth->execute($email); |
18 |
|
|
19 |
die "can't find registered user with e-mail $email" unless $sth->rows == 1; |
die qq|<error>Can't find registered user with e-mail $email| unless $sth->rows == 1; |
20 |
|
|
21 |
my ($ime,$prezime) = $sth->fetchrow_array; |
my ($ime,$prezime) = $sth->fetchrow_array; |
22 |
my $to = qq{"$ime $prezime" <$email>}; |
my $to = qq{"$ime $prezime" <$email>}; |
23 |
|
|
|
$body =~ s{FREY_HOSTNAME}{192.168.1.13:3000}gs; |
|
24 |
$body =~ s{^\s+}{}gm; # strip whitespace at beginning of line |
$body =~ s{^\s+}{}gm; # strip whitespace at beginning of line |
25 |
|
$body =~ s{<br>}{\n}gs; |
26 |
$body =~ s{<[^>]+/?>}{}gs; # strip html |
$body =~ s{<[^>]+/?>}{}gs; # strip html |
27 |
|
|
28 |
my $m = Email::Simple->create( |
my $m = Email::Simple->create( |