develooper Front page | perl.perl6.users | Postings from August 2017

Re: How do I do SSL/TLS with eMail::MIME ?

Thread Previous | Thread Next
August 20, 2017 04:42
Re: How do I do SSL/TLS with eMail::MIME ?
Message ID:
On 08/19/2017 08:46 PM, Alexis wrote:
> ToddAndMargo <> writes:
>> How do I do SSL/TLS with eMail-Mime?
> It looks like that module is only handles creating/modifying an email,
> not /sending/ it; SSL/TLS will be handled (or not) by whatever module you
> use for actually sending the email you create with Email::MIME.
> Alexis.

Hi Alexis,

I am trying to use SSL/TLS on post 465 to

That would be  Net::SMTP

$client = $smtp ), :port( $port ), :debug( 0 ) )

So I modified my line to

$client = $smtp ), :port( $port ), :ssl, 
:starttls, :debug( 1 ) )

And now I get:

$ eMail.zoho.test.pl6
err code: 336130329
error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad 
record mac
Use of uninitialized value of type Str in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to 
something meaningful.
   in method get-response at 
(Net::SMTP::Raw) line 13
Start argument to substr out of range. Is: 3, should be in 0..0; use *-3 
if you want to index relative to the end
   in method get-response at 
(Net::SMTP::Raw) line 13
   in method start at 
(Net::SMTP::Simple) line 59
   in method new at 
(Net::SMTP) line 38
   in sub eMail at ./eMail.zoho.test.pl6 line 30
   in block <unit> at ./eMail.zoho.test.pl6 line 49

Sniffle.  Sniffle.

Thank you for the help!

Computers are like air conditioners.
They malfunction when you open windows

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About