Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

with the minimal exemple

#!/usr/bin/perl -w use MIME::Lite; use strict; use warnings; my$msg = MIME::Lite->new ( From => '', To => '', Subject => 'test' ); $msg->send('tls','domaine.tld',Hello => 'domaine.tld', Port => "587", +User => "john" , Password => "azerty" , Debug => 4 );

attempting to issue an email fails . I quote the response of perl -d

~]# perl -d Loading DB routines from version 1.28 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. main::( my$msg = MIME::Lite->new ( main::( From => '', main::( To => 'john.swilting@wanado', main::( Subject => 'test' main::( ); DB<1> c SMTP mail() command failed: MIME::Lite::SMTP::TLS=HASH(0x875a62c) at /usr/lib/perl5/vendor_perl/5.8.8/MIME/ line 2941 MIME::Lite::send_by_tls('MIME::Lite=HASH(0x845e204)', 'mail.fa', 'Hello', '', 'Port', 587, 'User', 'fakessh', 'Pa +ssword', ...) called at /usr/lib/perl5/vendor_perl/5.8.8/MIME/ + line 2581 MIME::Lite::send('MIME::Lite=HASH(0x845e204)', 'tls', 'mail.fa', 'Hello', '', 'Port', 587, 'User', 'fakessh', ... +) called at line 13 Debugged program terminated. Use q to quit or R to restart, use o inhibit_exit to avoid stopping after program termination, h q, h R or h o to get additional info. DB<1> q

is the mail command that happens with errors

In reply to Re^2: question bad encoding data to MIME::Lite by swilting
in thread question bad encoding data to MIME::Lite by swilting

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    Discipulus what?! penitentiagite monaci!

    How do I use this? | Other CB clients
    Other Users?
    Others taking refuge in the Monastery: (7)
    As of 2018-06-21 20:26 GMT
    Find Nodes?
      Voting Booth?
      Should cpanminus be part of the standard Perl release?

      Results (119 votes). Check out past polls.