DataRater Posted September 2, 2008 Share Posted September 2, 2008 I'm using PHP 5 on a Dell Ubuntu laptop. I've tried keeping it simple with something like this $to = '[email protected]'; $subject = 'the subject'; $message = 'hello'; mail($to, $subject, $message); and get false returned and the email does not arrive at the destination. Have you any thoughts regarding what I need to look at to get this working? Link to comment https://forums.phpfreaks.com/topic/122399-solved-mail/ Share on other sites More sharing options...
DataRater Posted September 2, 2008 Author Share Posted September 2, 2008 I've looked at the php.ini and there is no sendmail_from defined. Is that correct? I'm wondering how it knows which default email address to use if none is passed in the the headers parameter (which I haven't used). Link to comment https://forums.phpfreaks.com/topic/122399-solved-mail/#findComment-632032 Share on other sites More sharing options...
DataRater Posted September 2, 2008 Author Share Posted September 2, 2008 Ahh the following is set in the php.ini Path to sendmail /usr/sbin/sendmail -t -i but there is no sendmail at that location. I've done a 'find' for sendmail but it didn't come back with any results. Has anyone got any ideas how I can find or install sendmail on my Ubuntu laptop? I would have thought it was standard though. Link to comment https://forums.phpfreaks.com/topic/122399-solved-mail/#findComment-632039 Share on other sites More sharing options...
DataRater Posted September 3, 2008 Author Share Posted September 3, 2008 OK I've got to install sendmail Link to comment https://forums.phpfreaks.com/topic/122399-solved-mail/#findComment-632522 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.