#!/usr/bin/perl Ok I've gone back to previous replies and put SendEasy and the folders and files below it in mylib directory as described:-
use CGI; use warnings; use strict; use lib 'd:/domains/sarahsfleeces.co.uk/wwwroot/cgi-bin/mylib'; use CGI::Carp qw/fatalsToBrowser/; use Mail::SendEasy;
and it then produces this error:-
Can't load 'd:/perl/lib/auto/IO/IO.dll' for module IO: load_file:Acces +s is denied at d:/perl/lib/XSLoader.pm line 64. at d:/perl/lib/IO.pm line 11 Compilation failed in require at d:/perl/lib/IO/Handle.pm line 263. BEGIN failed--compilation aborted at d:/perl/lib/IO/Handle.pm line 263 +. Compilation failed in require at d:/perl/lib/IO/Socket.pm line 11. BEGIN failed--compilation aborted at d:/perl/lib/IO/Socket.pm line 11. Compilation failed in require at d:/domains/sarahsfleeces.co.uk/wwwroo +t/cgi-bin/mylib/Mail/SendEasy/SMTP.pm line 50. BEGIN failed--compilation aborted at d:/domains/sarahsfleeces.co.uk/ww +wroot/cgi-bin/mylib/Mail/SendEasy/SMTP.pm line 50. Compilation failed in require at d:/domains/sarahsfleeces.co.uk/wwwroo +t/cgi-bin/mylib/Mail/SendEasy.pm line 29. BEGIN failed--compilation aborted at d:/domains/sarahsfleeces.co.uk/ww +wroot/cgi-bin/mylib/Mail/SendEasy.pm line 29. Compilation failed in require at d:\domains\sarahsfleeces.co.uk\wwwroo +t\cgi-bin\Send_Details.pl line 10. BEGIN failed--compilation aborted at d:\domains\sarahsfleeces.co.uk\ww +wroot\cgi-bin\Send_Details.pl line 10.
Which is odd because I thought it wasn't dependant on anything else?! So presumably I can go to the latest version of these files (that's compatible with this version of SendEasy) and copy these into 'mylib' too can I? Presumably I could end up copying half of Perl into the 'mylib' area though? Cheers Sarah

In reply to Re^4: Why won't call to SendEasy 'send' sub won't work? by Stoney
in thread Why won't call to SendEasy 'send' sub won't work? by Stoney

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.