Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: problem sending mail

by soonix (Canon)
on Aug 05, 2020 at 19:03 UTC ( #11120346=note: print w/replies, xml ) Need Help??


in reply to problem sending mail

policy of your email provider, see also https://stackoverflow.com/a/58573839 (not a Perl problem)

perhaps they check only part of the username, and you use the wrong TLD (gmx.net/gmx.com/gmx.whatever), or maybe it's not exactly the same address, because of a typo or an invisible-and/or-unicode character

Replies are listed 'Best First'.
Re^2: problem sending mail
by Anonymous Monk on Aug 05, 2020 at 19:28 UTC

    With powershell i can send a mail. on port 587, using SSL, like so:

    $from = "any@gmx.com" $to = "rob@gmail.com" $subj = "test PShell." $body = "boddy" $server = "mail.gmx.com" $port = "587" Send-MailMessage -From $from -To $to -Subject $subj -body $body -SmtpS +erver $server -Port $port -UseSsl -Credential (Get-Credential)

    Surely i can do the same with Perl!

      Surely i can do the same with Perl!

      Certainly, and the fact that you're having trouble doing so means there is some difference between the command that works and the one that doesn't, so you'll have to figure out what the differences between the two are. (Consider comparing a successful transaction and an unsuccessful one with Wireshark.)

      on port 587, using SSL

      Well, that's at least one difference between the code in the root node.

      You might want to give the more modern Email::* modules by RJBS a try, for example see Email::Sender::Manual::QuickStart.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11120346]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2021-02-26 15:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?