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

The MIME::Lite documentation for ->send specifically says:

... Or, for non-Unix users:
MIME::Lite->send("smtp");

Your code looks nothing like the documentation. It seems to me you are not on a unixish system, so maybe it would be a solution to use what the documentation says?

Replies are listed 'Best First'.
Re^4: Error upon "send()" with MIME::Lite (help please)
by palkia (Monk) on Sep 15, 2011 at 02:49 UTC
    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.

      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 );