Date: Sun, 06 May 2007 17:48:05 +0200 From: Olivier Regnier <oregnier@oregnier.net> To: freebsd-questions@freebsd.org Subject: sending email with perl Message-ID: <463DF8B5.5000906@oregnier.net>
next in thread | raw e-mail | index | archive | help
Hello, I written a small script in perl to send email. Here is the code: #!/usr/bin/perl -w use strict; use warnings; use MIME::Lite; my $msg = new MIME::Lite From =>'me@domain.tld', To =>'me@domain.tld', Subject =>'test', Type =>'TEXT', Data =>'Hello this is a test'; $msg -> send; I have a .mailrc file : set sendmail="/root/scripts/nbsmtp.sh" I installed a small mta nbsmtp and i use a shell script called nbsmtp.sh with this line : /usr/local/bin/nbsmtp -f me@domain.tld -h ssl0.ovh.net -d elipse -p 465 -U postmaster@domain.tld -P password -M l -s -V When i execute perl script, there is nothing, why i don't know. That work well if i writte in /etc/mail/mailer.conf this line: sendmail /root/scripts/nbsmtp.sh With .mailrc that doesn't work.Can you help me please ? Thank you :)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?463DF8B5.5000906>