From owner-freebsd-questions@FreeBSD.ORG Thu Sep 13 20:41:04 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E79C16A420 for ; Thu, 13 Sep 2007 20:41:04 +0000 (UTC) (envelope-from maanjee@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181]) by mx1.freebsd.org (Postfix) with ESMTP id 56A8713C428 for ; Thu, 13 Sep 2007 20:41:04 +0000 (UTC) (envelope-from maanjee@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so751280waf for ; Thu, 13 Sep 2007 13:41:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=eEDu3fMIoGY1boiUxZIkHWMyx1WvOOE2wV3y+w7emi4=; b=Npv503DcM5N6ObM1Fs3fBxLyHwcnGQbH6rxpuQ7bhs+5gJBUnEbVOkE2uJY49fRjfu2xazAvDRGySpO28br8Uzdmri3LOf6Lqo9usromxS1hObrQdtRNetrPdA5ZUgRd7zLaPqbboTdzvq+3GnB6d13iwOZ1l0mexIbiuYlwMIE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=Z2ZVwc1jBJB4T6N7+3A5PSTm+UuurX6yK80he2RvN8/fwSQfrkhNQIxT1T2SivoFpISlABwwP+lMnN+trtcgAIo6JjDNqH0sZfsnH8dCWSZv3KlqXxvM7xoJgT0HwhrApyXUhcjtmpKP/BkVEX77C+smv11r2nOjG0ZJUru8URY= Received: by 10.114.210.2 with SMTP id i2mr848539wag.1189716063953; Thu, 13 Sep 2007 13:41:03 -0700 (PDT) Received: by 10.114.131.14 with HTTP; Thu, 13 Sep 2007 13:41:03 -0700 (PDT) Message-ID: <2cd0a0da0709131341v4f6da28xae9040afb4b40dfb@mail.gmail.com> Date: Thu, 13 Sep 2007 22:41:03 +0200 From: VeeJay To: FreeBSD-Questions , maanjee@gmail.com MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: fatal: Recipient addresses must be specified on the command line or via the -t option 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: Thu, 13 Sep 2007 20:41:04 -0000 Hello there Could someone help me? I am really tired now spending 24 hours continously makeing it work... I have installed Postfix on my 6.2 freebsd box. Now, whenever, I try to run a php script to send mail out, this error is logged into /var/log/maillog *Sep 13 21:17:28 veejay postfix/sendmail[1396]: fatal: Recipient addresses must be specified on the command line or via the -t option* What is wrong there? Here is the php script. there is address: $to = "info@badawa.com"; $from = "info@example.net"; $subject = "Hi!"; $from_header = "From: $from"; $contents = "this is email test\n\nDoes it work?"; if (mail($to, $subject, $contents, $from_header)) { echo("

Message successfully sent!

"); } else { echo("

Message delivery failed...

"); } -- Thanks! BR / vj