You are here: newbie: problem sending email from php web site « PHP Language « IT news, forums, messages
newbie: problem sending email from php web site

Posted by Jeff on 01/08/07 14:14

Hey

I'm developing a web site using php version 5.2.0. Users are offered to
register at the web site. To complete the registration the user will get an
email containg a link he need to use for to activate his account....

But sending email from my web site isn't working.
I get this error:
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or
custom "From:" header missing in C:\Inetpub\wwwroot\demo\registration.php on
line 21

This is the code the errror message above is refering to:
mail($email, "test av website", "helloworld", "it_consultant1@hotmail.com");

my php.ini:
; For Win32 only.
sendmail_from = it_consultant1@hotmail.com

; For Unix only. You may supply arguments as well (default:
"sendmail -t -i").
;sendmail_path =

This is on a winXP computer, so I didn't set the sendmail_path (the php.ini
says sendmail_path is for unix only)

Any suggestions on what I should do to solve this?

Jeff

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация