Do you have a specific reason for calling Sendmail directly? If not, try
http://www.php.net/manual/en/function.mail.php

Erica

"Uma Shankari T." <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>
>  Hello,
>
>
>      Can anyone help me in solving this problem..
>
>  For sending mail using sendmail i have written the code like this but it
> is giving some error messages in the From address instead of address
>
>  $TO=Me;
>  $[EMAIL PROTECTED];
>
>
>     $fd = popen("/usr/sbin/sendmail -t","w");
>     fputs($fd, "To: $user\n");
>     fputs($fd, "From: $TO\n");
>     fputs($fd, "Subect: Feedback\n");
>     $ver = phpversion();
>     fputs($fd, "X-Mailer: PHP/FI $ver\n\n");
>     fputs($fd, "Hii $user,\n $body \n");
>     pclose($fd);
>
>
>   Can anyone tell the solution for this.....
>
>
> -Uma
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to