Portal Home > Knowledgebase > Articles Database > mail on vps server?
mail on vps server?
Posted by Nortorious, 05-30-2010, 03:27 PM |
i won't have cpanel installed on it, so what do i need to be able to send mail correctly from php websites?
do i need sendmail and exim? ive never done this before and could use guideance as to what services i need.
|
Posted by madaboutlinux, 05-31-2010, 04:22 AM |
Just install sendmail and make sure to edit the configuration file to allow external emails. Once that is done, you will be able to send emails using a php script. Install sendmail
Edit the file /etc/mail/sendmail.mc
search for the line
and comment it as follows:
Save the file and execute the following:
This will make sure emails will flow in either direction. Now, write your PHP script and specify the email address in it to which you want the email to sent to.
|
Posted by orbixworks, 05-31-2010, 07:37 AM |
Hello,
You can use sendmail and you need to use php mail function to send the mails from php.
|
Posted by shawn_linux, 05-31-2010, 02:02 PM |
Install postfix its a better MTA
|
Posted by Nortorious, 05-31-2010, 04:45 PM |
Is postfix easy to install and setup? How is it better then sendmail?
|
Add to Favourites Print this Article
Also Read