Question: must issue a starttls command first in php?
Answer: 9 Answers. First, make sure you PHP installation has SSL support (look for an "openssl" section in the output from phpinfo() ). I know that PHPMailer library can handle that kind of SMTP transactions. Also, a fake sendmail with sendmail-SSL library should do the job.