First back up the file we’ll edit -
save the file
Back up your php.ini file -
cp /etc/postfix/main.cf /etc/postfix/main_orig.cfthen edit it -
sudo vi /etc/postfix/main.cfand set
relayhost = [smtp.theserver.edu]you may be tempted to edit myhostname, or mydomain but just leave them commented out.
save the file
Back up your php.ini file -
cp /Applications/XAMPP/etc/php.ini /Applications/XAMPP/etc/php_orig.inithen edit it -
sudo vi /Applications/XAMPP/etc/php.inisearch for SMTP, it may be commented out, but change it to this -
SMTP=localhostuncomment
smtp_port=25then change
sendmail_path = /usr/sbin/sendmail -t -isave the file