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

Posted by Tyrone Slothrop on 01/09/07 02:16

>Thanks, but now I get an new error:
>Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid
>Address in
>
>I'm sure the email addresses I use is valid
>
>This is the code I use to send the email:
>$headers = 'From: me <it_consultant1@hotmail.com>' . "\n";
>mail($email, "test av website", "helloworld", $headers);

Try this:
$headers = "From: me <it_consultant1@hotmail.com>\n";

>in php.ini I have SMTP = localhost
>
>I haven't got microsoft exchange or similar mail program installed on my pc.
>I have outlook express installed on my pc, so I use outlook express when
>browsing newgroups and sending emails. So I thought if I could send email
>via outlook express then maybe it's possible to send email from a web site
>hosted on the same pc.

It is very possible that you do not have a mail daemon set for PHP to
use. I only do work on *NIX servers, so I do not know.

Perhaps the question you should be asking is, what mailer daemon
should I use for Windows?

 

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

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