PHP SMTP

Send mails using SMTP in PHP by gmail server or own domain server

This article is about send emails in SMTP(Simple Mail Transfer Protocol) using phpmailer by own server or gmail server. Every host provider will provide us the mail server and its configurations. SMTP is using for send mails and POP3 is using for receive email to our mail box. Here we are using PHPMailer for send emails using SMTP in php. Every host provider such as godaddy, hostgator, 1&1,

smtp-php

index.php
Contains PHP code. You have to modify email, name and message



sendmail.php
SMTP configuration file you have to modify host, port and credentials.