/ Published in: Other
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 sudo apt-get install ssmtp sudo geany /etc/ssmtp/ssmtp.conf Paste to config --------------- hostname=ubuntu AuthPass=password FromLineOverride=YES mailhub=smtp.gmail.com:587 UseSTARTTLS=YES sudo geany /etc/php5/apache2/php.ini Paste this to php.ini --------------------- sendmail_path = /usr/sbin/ssmtp -t To verify if the server is sending emails, send a test email: ------------------------------------------------------------- ssmtp [email protected] You can check if the email are sent by running the following in a second terminal (ALT+F2): ------------------------------------------------------------------------------------------ tail -f /var/log/mail.log
Comments
                    Subscribe to comments
                
                