I do have a win32 system (I think I mentioned it before).
but actually the documentation also says
On Win32 systems the default setting is equivalent to:
MIME::Lite->send("smtp");
so... ?
Anyway just so I won't skip any possibility,
I tried to sub the
MIME::Lite->send('sendmail', 'C:\\xampp\xampplite\sendmail\sendmail.exe');
line for
MIME::Lite->send('smtp','C:\\xampp\xampplite\sendmail\sendmail.exe');
making it die saying:
SMTP Failed to connect to mail server: Invalid argument
The same goes when I try
MIME::Lite->send('smtp','sendmail','C:\\xampp\xampplite\sendmail\sendmail.exe');
So just to be safe I even tried
MIME::Lite->send('smtp');
which dies saying
class method send must have HOW... arguments
I have no idea whats the problem.
Also I find my code exactly like in the documentation as it is a copy/paste of it with the from/to strings changed.
If you find my code that off-base, please tell me how to fix it.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.