thx
after reading what you suggested I've reached the conclusion that I'm suppose to pre-set the sendmail somehow before use,
as far as I can understand (after searching my computer for "sendmail.exe"),
I need to refer to the path of my sendmail.exe, so I added
MIME::Lite->send('sendmail', 'C:\\xampp\xampplite\sendmail\sendmail.exe');
before the "my" line.
it doesn't die not, but it prints/warns (not sure whats the difference),
that: "sendmail.exe: no recipients found" (it does this with & without the "use diagnostics;").
I used both a "from" and a "to" which actually exists so what does it want ?
Also it printed that line way to fast for it to look as if it actually went online and got something back!
Any more ideas ??? (please :~|)
| [reply] [d/l] |
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?
| [reply] [d/l] [select] |
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.
| [reply] [d/l] [select] |