[tpm] sending email from cgi on windows
Vinny Alves
vinny at usestrict.net
Sat Dec 31 16:32:24 PST 2011
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)
As a class method:
MIME::Lite->send('smtp','some.host',Debug=>0);
or when sending the message:
### use Net:SMTP to do the sending
$msg->send('smtp','some.host', Debug=>1 );
Cheers
Vinny
http://cronblocks.com
On Sat, Dec 31, 2011 at 3:00 PM, Tom Legrady <legrady at gmail.com> wrote:
> 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.
>
> 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.
>
>
> Tom
>
> _______________________________________________
> toronto-pm mailing list
> toronto-pm at pm.org
> http://mail.pm.org/mailman/listinfo/toronto-pm
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20111231/baf75955/attachment.html>
More information about the toronto-pm
mailing list