in reply to Re^4: send mail with STARTTLS
in thread send mail with STARTTLS

As a funny sidenote, depending on the Date library used, just make sure the weekday name calculation is correct. Many, many, many years ago i once ran into that exact problem. Sudenly, my mails started getting rejected by some server, leading me on a long bug hunt... until i found a leap year bug that messed up weekday names...

PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP
Also check out my sisters artwork and my weekly webcomics

Replies are listed 'Best First'.
Re^6: send mail with STARTTLS
by afoken (Chancellor) on Dec 16, 2025 at 10:05 UTC
    [...]mails started getting rejected by some server [...] until i found a leap year bug that messed up weekday names [...]

    Now that's a cool bug. I never expected servers to actually validate weekdays. Checking for one of the seven weekday names at the right position, yes, of course. But not actually matching the name to the date. On the other hand, there might have been some lazy spammers that simply always sent "Monday" or something like that.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)