|
Posted by ZeldorBlat on 06/14/07 17:29
On Jun 14, 1:22 pm, nob...@gmail.com wrote:
> On Jun 14, 5:55 pm, ZeldorBlat <zeldorb...@gmail.com> wrote:
>
>
>
> > On Jun 14, 12: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
>
> > What do you mean by "doesn't work?" As in you never get the mail? As
> > in the script dies with "shit?" As in you get an error message?
>
> No email, mail function returns false, and the die clause kicks in ...
Turn up error_reporting and enable display_errors in php.ini. That
will give you any error messages that might be there.
Navigation:
[Reply to this message]
|