0
votes

I have recently started a website that is built on Bootstrap, which uses a PHP mail function. It took me quite a while to figure out that I needed to install sendmail with Apache in order for it to send emails. However, sendmail is a big pain in the butt to configure properly, and I am not versed with any of PHP's mail abilities and requirements. I am attempting to use GoDaddy's SMTP servers to send emails from my domain, but the connections are failing and are coming from a generic domain with no TLD extension. This is a big issue as nearly all mail providers block generic domains, and documentation for setting up sendmail with SMTP servers is very sparse.

My questions are:

  • Should I be using sendmail, or is there a better alternative to hook into GoDaddys SMTP servers

  • A colleague at work told me that sendmail is actually an SMTP server itself, and is just relaying to GoDaddy, which may cause interference and authentication issues. Is this true?

If I am completely on the wrong path, links to good resources are much appreciated. Thanks in advance!

1
PHPMailer() is pretty good. github.com/PHPMailer/PHPMailer - stomo21
+1 for PHPmailer. Also, if you want your mail to actually be delivered with some measure of reliability I would suggest not using your ISP's unauthenticated SMTP services. - Sammitch

1 Answers

0
votes

I would use the generic sendmail scripts provided by much of the providers, buy I would make sure I use my own SMTP authentication and that it comes from my own domain - no spam issues.