send_mail error coming

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
qimtiaz
Forum Newbie
Posts: 1
Joined: Fri May 14, 2004 10:07 pm

send_mail error coming

Post by qimtiaz »

Hi
I am trying to create a shopping cart.
when i hit my submit button to add an entry in the database, it saves data in database(mysql) but at the same time -- it tries to send an e-mail to the user but fails showing an error ------

Warning: mail() [function.mail.html]: "sendmail_from" not set in php.ini or custom "From:" header mis in D:\beximco\include\func.php on line 259

Warning: mail() [function.mail.html]: "sendmail_from" not set in php.ini or custom "From:" header mis in D:\beximco\include\func.php on line 259

Warning: Cannot modify header information - headers already sent by (output started at D:\beximco\include\func.php:259) in D:\beximco\include\func.php on line 181

but I am not able to change the php.ini coz I have no admin access in the server.
In php.ini SMTP=""; and SEND_MAIL="me@localhost.com"

can anyone help me to fix this?
thanks
Post Reply