http://qs321.pair.com?node_id=11102089


in reply to Re^2: sending email under windows 10
in thread sending email under windows 10

Your program used port 25 but now you're telnetting port 587... could that be the problem?

Edit (in response below):

$Message->send_by_smtp('localhost:587'); #-- assuming program runs o +n same host as mailserver # (otherwise also adapt ' +localhost' or try to # set it to '127.0.0.1' +in case of IP6 confusion)

Replies are listed 'Best First'.
Re^4: sending email under windows 10
by afoken (Canon) on Jun 30, 2019 at 10:58 UTC
    port 25 but now you're telnetting port 587

    Generally, mail clients should submit to port 587. Port 25 is more and more restricted to communication between mail servers. See also https://www.mailgun.com/blog/which-smtp-port-understanding-ports-25-465-587 (first Google result).

    Of course, as long as you work in an isolated lab environment, you are free to use port 25 (or, in fact, any port you like). But when it comes to using real world mail servers, use port 587.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
Re^4: sending email under windows 10
by *alexandre* (Beadle) on Jun 29, 2019 at 12:50 UTC
    My mail server run within the port 587