Skip to content

Email and SMTP hardcoded in publisher scripts #515

@mschoettle

Description

@mschoettle

Various publisher (Perl) scripts have functionality to inform of a potentially hanging script.

The from, to, and SMTP host are all hardcoded.

See for example:

# email error
my $mime = MIME::Lite->new(
'From' => "opal\@muhc.mcgill.ca",
'To' => "gregormitchell\@gmail.com",
# 'Cc' => "someone\@gmail.com",
'Subject' => "Potential hanging script - Opal announcementControl.pl",
'Type' => 'text/html',
'Data' => \@logs,
);
my $response = $mime->send('smtp', '172.25.123.208');

This either needs to be configurable, or, since all scripts that run periodically are executed via Ofelia (which takes care of sending an email if a script fails), we remove this functionality completely.

I am tending to the latter option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions