You are here: Re: Mail not working « PHP Programming Language « IT news, forums, messages
Re: Mail not working

Posted by nobrow on 06/15/07 09:43

On Jun 14, 5:22 pm, nob...@gmail.com wrote:
> I cannot get php to send an email. This works:
>
> $ mail -s "My Subject" nob...@gmail.com
> My Message
> ^D
> Cc:
> [enter]
>
> But this doesnt:
>
> <?php
> mail('nob...@gmail.com', 'My Subject', 'My Message')
> or
> die('shit!');
> ?>
>
> I don't know where to look for error messages so I have no further
> info. Anyone got a clue?
>
> P.S.
>
> Im using ssmtp, and php.ini contains:
>
> sendmail_path =ssmtp

It works from the interactive php shell, so the conclusion is that
this is actually an apache problem, perhaps related to running in a
chroot.

 

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

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