in reply to Re^3: Error upon "send()" with MIME::Lite (help please)
in thread Error upon "send()" with MIME::Lite (help please)

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.

Replies are listed 'Best First'.
Re^5: Error upon "send()" with MIME::Lite (help please)
by Anonymous Monk on Sep 15, 2011 at 03:29 UTC

    I have no idea whats the problem.

    Why? Try some flavor of

    ### use Net:SMTP to do the sending $msg->send('smtp','some.host', Debug=>1 );