1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Bang, Kar, Ind
    Rep Power
    need to send mail to two people. But the mail returns back to me saying

    The Postfix program
    <vivek@madona.com, vivekk>: bad host/domain syntax: "madona.com, vivekk"

    If i remove one address it works fine.

    My code is here.
    I am running PHP 3.0.11 and Apache 1.3.9 on WinNT4.0 . Our SMTP server
    is a unix box.

    $To= "vivek@madona.com,vivekk@india.hp.com";
    $From = "vivekk@india.hp.com";
    $Headers = "From: " . $From . "n";
    $Headers .= "Return-Path: vivekk@india.hp.comn";
    $Headers .= "MIME-Version: 1.0"."n" ;
    $Headers .= "Content-Type: text/plain; charset=iso-8859-1n";
    $Headers .= "Content-Transfer-Encoding: 8bit" . "n";
    $Headres .= "X-Mailer:PHP/".phpversion();
    $message = " Test message, please ignore";
    $sub = "Test Message, please ignore this mail";

    Please help me.

    Vivek K
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Ontario, Canada
    Rep Power
    Your code seems okay, but to be honest I think there was a problem with mail() in 3.0.11... but I can't be sure, as I only started to tinker with PHP around 3.0.14 and 3.0.16. Check out the PHP3 changelog on www.php.net, you just may find your answer there.

    To alcohol! The cause of, and solution to, all of life's problems. -- Homer Simpson

Similar Threads

  1. display multiple list box problem
    By ningyong in forum PHP Development
    Replies: 4
    Last Post: February 12th, 2004, 11:32 PM
  2. Help with script
    By akastarlight in forum Perl Programming
    Replies: 1
    Last Post: February 6th, 2004, 06:55 AM
  3. WebHost Manager multiple domains under one user problem
    By Matthew Doucette in forum Dev Shed Lounge
    Replies: 9
    Last Post: January 28th, 2004, 01:56 PM
  4. mail function smtp problem
    By emzyme in forum PHP Development
    Replies: 3
    Last Post: January 25th, 2004, 06:59 PM
  5. Java mail problem.
    By Programmer123 in forum Java Help
    Replies: 4
    Last Post: January 24th, 2004, 11:21 AM

IMN logo majestic logo threadwatch logo seochat tools logo