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

I'm been trying to send mail through telnet within the Following
$ telnet localhost 587 Trying ::1... Connection failed: Connection refused Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 localhost ESMTP OK 503 Bad sequence of commands ehlo localhost 250-localhost 250-SIZE 20480000 250-AUTH LOGIN 250 HELP mail from:robot@avant-garde.no-ip.biz 250 OK data 503 Must have sender and recipient first. rcpt to:alexjaquet@gmail.com 530 SMTP authentication is required.

Replies are listed 'Best First'.
Re^3: sending email under windows 10
by soonix (Chancellor) on Jun 28, 2019 at 18:43 UTC
Re^3: sending email under windows 10
by Perlbotics (Archbishop) on Jun 28, 2019 at 17:47 UTC

    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)
      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". ;-)
      My mail server run within the port 587
Re^3: sending email under windows 10
by bliako (Abbot) on Jun 30, 2019 at 09:25 UTC