Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grantstreetgroup/p5-healthcheck-diagnostic-smtp
Perl HealthCheck Diagnostic for verifying SMTP connectivity - https://grantstreetgroup.github.io/HealthCheck.html
https://github.com/grantstreetgroup/p5-healthcheck-diagnostic-smtp
Last synced: about 1 month ago
JSON representation
Perl HealthCheck Diagnostic for verifying SMTP connectivity - https://grantstreetgroup.github.io/HealthCheck.html
- Host: GitHub
- URL: https://github.com/grantstreetgroup/p5-healthcheck-diagnostic-smtp
- Owner: GrantStreetGroup
- License: other
- Created: 2020-05-12T15:18:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-14T18:22:37.000Z (over 4 years ago)
- Last Synced: 2023-08-20T23:01:13.122Z (over 1 year ago)
- Language: Perl
- Size: 14.6 KB
- Stars: 0
- Watchers: 14
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# NAME
HealthCheck::Diagnostic::SMTP - Verify connectivity to an SMTP mail server
# VERSION
version v0.0.4
# SYNOPSIS
Check that you can talk to the server.
my $health_check = HealthCheck->new( checks => [
HealthCheck::Diagnostic::SMTP->new(
host => 'smtp.gmail.com',
timeout => 5,
]);# DESCRIPTION
Determines if the SMTP mail server is available. Sets the `status` to "OK" if
the connection was successful, or "CRITICAL" otherwise.# ATTRIBUTES
Can be passed either to `new` or `check`.
## host
**required** Either a string of the hostname or a coderef that returns a hostname
string.## port
The port to connect to. Defaults to 25.
## timeout
The number of seconds to timeout after trying to establish a connection.
Defaults to 5.# DEPENDENCIES
[HealthCheck::Diagnostic](https://metacpan.org/pod/HealthCheck%3A%3ADiagnostic)
[Net::SMTP](https://metacpan.org/pod/Net%3A%3ASMTP)# AUTHOR
Grant Street Group
# COPYRIGHT AND LICENSE
This software is Copyright (c) 2019 - 2020 by Grant Street Group.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)