I haven't touched Windows in quite a while, but you could check if Windows/IIS has .pl files associated with Perl (if memory serves, Windows bypasses the shebang line). If executing the script isn't the issue, then you can try to set MIME::Lite to send using smtp with the following (taken from CPAN docs)<br>
<br>As a class method:<br><br><pre class="sh_perl sh_sourceCode"> MIME<span class="sh_symbol">::</span>Lite<span class="sh_symbol">-></span><span class="sh_function">send</span><span class="sh_symbol">(</span><span class="sh_string">'smtp'</span><span class="sh_symbol">,</span><span class="sh_string">'some.host'</span><span class="sh_symbol">,</span>Debug<span class="sh_symbol">=></span><span class="sh_number">0</span><span class="sh_symbol">);</span></pre>
or when sending the message:<br><pre class="sh_perl sh_sourceCode"> <span class="sh_comment">### use Net:SMTP to do the sending</span>
<span class="sh_variable">$msg</span><span class="sh_symbol">-></span><span class="sh_function">send</span><span class="sh_symbol">(</span><span class="sh_string">'smtp'</span><span class="sh_symbol">,</span><span class="sh_string">'some.host'</span><span class="sh_symbol">,</span> Debug<span class="sh_symbol">=></span><span class="sh_number">1</span> <span class="sh_symbol">);</span></pre>
<br>Cheers<br clear="all">Vinny<br><a href="http://cronblocks.com" target="_blank">http://cronblocks.com</a><br>
<br><br><div class="gmail_quote">On Sat, Dec 31, 2011 at 3:00 PM, Tom Legrady <span dir="ltr"><<a href="mailto:legrady@gmail.com">legrady@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
My brother is moving a simple web site for someone, but while he is competent handling HTML, he doesn't program. I developed a simple CGI script to email the contents of the form .... not expected to be large volume, but it will be information that needs to be incorporated into the history being presented, along with pictures and such files to be added.<div>
<br></div><div>The script worked fine on my website and on my brother's, but arriving to the server actually being used, it's a windows machine ( so I changed the #! as instructed ); they won't let me do more that ftp up the file. They don't have sendmail. How can I send mail from a windows machine using MIME-Lite, without having local sendmail. All mail will be going to one address.</div>
<div><br></div><font color="#888888"><div><br></div><div>Tom</div>
</font><br>_______________________________________________<br>
toronto-pm mailing list<br>
<a href="mailto:toronto-pm@pm.org">toronto-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/toronto-pm" target="_blank">http://mail.pm.org/mailman/listinfo/toronto-pm</a><br>
<br></blockquote></div><br>