Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Sep 2007 22:41:03 +0200
From:      VeeJay <maanjee@gmail.com>
To:        FreeBSD-Questions <freebsd-questions@freebsd.org>, maanjee@gmail.com
Subject:   fatal: Recipient addresses must be specified on the command line or via the -t option
Message-ID:  <2cd0a0da0709131341v4f6da28xae9040afb4b40dfb@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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("<p>Message successfully sent!</p>");
 } else {
  echo("<p>Message delivery failed...</p>");
 }

-- 
Thanks!

BR / vj



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2cd0a0da0709131341v4f6da28xae9040afb4b40dfb>