From owner-freebsd-questions@FreeBSD.ORG Sun May 6 15:47:20 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 98CDF16A404 for ; Sun, 6 May 2007 15:47:20 +0000 (UTC) (envelope-from oregnier@oregnier.net) Received: from 30.mail-out.ovh.net (30.mail-out.ovh.net [213.186.62.213]) by mx1.freebsd.org (Postfix) with SMTP id F1C1213C45B for ; Sun, 6 May 2007 15:47:19 +0000 (UTC) (envelope-from oregnier@oregnier.net) Received: (qmail 4654 invoked by uid 503); 6 May 2007 15:47:37 -0000 Received: (QMFILT: 1.0); 06 May 2007 15:47:37 -0000 Received: from b7.ovh.net (HELO mail185.ha.ovh.net) (213.186.33.57) by 30.mail-out.ovh.net with SMTP; 6 May 2007 15:47:37 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 6 May 2007 15:47:17 -0000 Received: from mac76-2-82-241-6-173.fbx.proxad.net (HELO ?192.168.1.2?) (postmaster@oregnier.net@82.241.6.173) by ns0.ovh.net with SMTP; 6 May 2007 15:47:17 -0000 Message-ID: <463DF8B5.5000906@oregnier.net> Date: Sun, 06 May 2007 17:48:05 +0200 From: Olivier Regnier User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Ovh-Remote: 82.241.6.173 (mac76-2-82-241-6-173.fbx.proxad.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|H 0.5/N Subject: sending email with perl X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 May 2007 15:47:20 -0000 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 :)