Hi,
Does anyone know which of the php packages from the Raspbian apt-get repositories you need to install to get the php mail() function to work?
Repository http://archive.raspbian.org/raspbian/pool/main/p/
Any help appreciated NB i've tried php-horde-mail and php-mail
-
- Posts: 12
- Joined: Sun Aug 26, 2012 9:52 pm
Re: PHP Mail() function
The mail function is documented as part of the php core. So no package should be required.
Re: PHP Mail() function
I did some hacking around postfix to get mail running on my Ubuntu server and it uses PHP5 to forward mail from a webform.
If you want to post out onto the internet you need to find out the SMTP for your service provider it's to do with spam prevention
If you want to post out onto the internet you need to find out the SMTP for your service provider it's to do with spam prevention
Noob is not derogatory the noob is just the lower end of the noob--geek spectrum being a noob is just your first step towards being an uber-geek 
If you find a solution please post it in the wiki the forum dies too quick

If you find a solution please post it in the wiki the forum dies too quick
-
- Posts: 12
- Joined: Sun Aug 26, 2012 9:52 pm
Re: PHP Mail() function
What do you do with the SMPT once you have found it?
Re: PHP Mail() function
To run postfix mail to the outside wold you need to route any outgoing mail through a relay host this is to stop (or at least reduce) spam generation programs running from home users. If you don't have this you need a fixed ip address from your isp and that will cost you. Its not usually free.
After installing postfix you need to edit the main.cf file to do this you need root access. sudo will do and you need to find the main.cf file it is a text file so you can edit it with the likes of nano and it is usualy in the folder //etc/postfix/
I don't know what your planning for SMPT but SMTP (note spelling) address is the relay host for your ISP and each ISP has it's own and it is not allways obvious.
If you are running outlook allready for your mail it will be in the account settings. But get those last two letters the right way round or it will fail.
The line
That is also in this file must contain a valid mail address. There's a blog page
http://lenss.nl/2009/01/making-php-mail ... h-postfix/
That runs through setting up and covers some issues that arise out of a clash with sendmail.
This blog also shows you how to use telnet to send a test mail from the command line this will let you know that everything is working before you get all knotted up in the php stuff.
Get it right and you get an email keep going till this telnet exercise works it will save you a lot of heartache.
After installing postfix you need to edit the main.cf file to do this you need root access. sudo will do and you need to find the main.cf file it is a text file so you can edit it with the likes of nano and it is usualy in the folder //etc/postfix/
I don't know what your planning for SMPT but SMTP (note spelling) address is the relay host for your ISP and each ISP has it's own and it is not allways obvious.
If you are running outlook allready for your mail it will be in the account settings. But get those last two letters the right way round or it will fail.

The line
Code: Select all
myorigin =
http://lenss.nl/2009/01/making-php-mail ... h-postfix/
That runs through setting up and covers some issues that arise out of a clash with sendmail.
This blog also shows you how to use telnet to send a test mail from the command line this will let you know that everything is working before you get all knotted up in the php stuff.
Get it right and you get an email keep going till this telnet exercise works it will save you a lot of heartache.
Noob is not derogatory the noob is just the lower end of the noob--geek spectrum being a noob is just your first step towards being an uber-geek 
If you find a solution please post it in the wiki the forum dies too quick

If you find a solution please post it in the wiki the forum dies too quick
-
- Posts: 12
- Joined: Sun Aug 26, 2012 9:52 pm
Re: PHP Mail() function
SMTP - Typo Sorry
I'll try this out when i next powerup and let u know
Thanks in advance

I'll try this out when i next powerup and let u know
Thanks in advance
-
- Posts: 12
- Joined: Sun Aug 26, 2012 9:52 pm
Re: PHP Mail() function
Can't seem to get it working might try this http://www.vishalkumar.in/2009/06/php-m ... -tutorial/
-
- Posts: 12
- Joined: Sun Aug 26, 2012 9:52 pm
Re: PHP Mail() function
PHP Mailer works but dont follow tutorial go to google code