Jump to content

[SOLVED] mail()


DataRater

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.