Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: problem sending mail

by Anonymous Monk
on Aug 05, 2020 at 19:28 UTC ( [id://11120349]=note: print w/replies, xml ) Need Help??


in reply to Re: problem sending mail
in thread problem sending mail

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!

Replies are listed 'Best First'.
Re^3: problem sending mail
by haukex (Archbishop) on Aug 05, 2020 at 20:03 UTC
    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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11120349]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-24 03:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found