mail config option doesn't appear to actually do anything
TV4Fun opened this issue · comments
My Perl is not the greatest, so I could be wrong, but it looks a lot like there is a mail
config option that presumably is meant to send an email on a successful IP address check that is used by the sendmail()
function, which sends the contents of the $msgs
variable, but the $msgs
variable is only set on errors, so a successful IP read is a complete no-op. I do not have dynamic DNS available from my DNS hosting (Wordpress, migrated from Google Domains), so I would like to have ddclient send me an email whenever my machine's public IP changes. Have configured sendmail and set mail
in the config to my email address, but it never emails me except when there's an error. Is this intended behavior? If so, what is mail
supposed to be used for? There is a separate mail-failures
option for an email to use on errors, so why is this option here?
Never mind, I was misreading the code. Submitted a PR to address my use case.