How to send email out by php or javascript? [closed]

Obviously you skipped some research…

mail() oftens sends the mail into spam folders. Some mail providers will also block those mails because their headers are incomplete. Worse : some hosting providers just block this function. It you want something clean, use a SMTP connection. Here’s another reference :

Then, use one of yours emails accounts for SMTP settings (e.g. a GMail account created for your site, whatever).

Leave a Comment