Hi. I add my use CGI::Carp qw(fatalsToBrowser); and I got: Can't locate Net/SMTP_auth.pm in @INC (@INC contains: C:/Perl64/site/lib C:/Perl64/lib .) at C:\HostingSpaces\zlinkexc\mortgagerefinancingpros.com\wwwroot\cgi-bin\smtp2.cgi line 5. BEGIN failed--compilation aborted at C:\HostingSpaces\zlinkexc\mortgagerefinancingpros.com\wwwroot\cgi-bin\smtp2.cgi line 5. For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.
!C:\Perl\bin\perl.exe -w use CGI::Carp qw(fatalsToBrowser); use Net::SMTP_auth; $smtpserver = 'mail.mortgagerefinancingpros.com'; my $ServerAccount = "admin\@mortgagerefinancingpros.com"; my $ServerPwd = "pianos78997"; my $smtp = Net::SMTP->new($smtpserver, Hello => "mortgagerefinancingpr +os.com", Debug + => 1); $smtp->auth('CRAM-MD5', '$ServerAccount', '$ServerPwd'); $recipient = 'admin@mortgage-pros.com' ; $from = 'admin@mortgagerefinancingpros.com' ; #$smtp = Net::SMTP->new('', Timeout => 60, Debug => 1); ## smtp server requires authentication #$smtp->auth('admin@mortgagerefinancingpros.com','pianos78997'); $smtp->mail($from); $smtp->to($recipient); $smtp->data(); $smtp->datasend("To: $recipient\n"); $smtp->datasend("Subject: test message\n"); $smtp->datasend("\n"); $smtp->datasend("A simple test message\n"); $smtp->dataend(); $smtp->quit;

In reply to Re^2: SMTP mail not working for me by zlinkexchange
in thread SMTP mail not working for me by zlinkexchange

Title:
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, details, 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, summary, 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.