A little bit poem, Send email via PHP with Xampp 1.7.3

July 20, 2012 at 12:27 pm Leave a comment

Why the title must use Xampp 1.7.3 , I dont know whether the reason why I choose that version.. Nothing, because after i try to use another version even the newer Xampp version, it is still can’t send email, or just because i can configure it out properly, once again I not sure.

So, back to our topic, Send email via PHP..

1. Configure sendmail/sendmail.ini, this one using Gmail :

logfile “C:\xampp\sendmail\sendmail.log”

# SMTP Gmail
account Gmail
tls on
port 465
tls_starttls off
tls_certcheck off
host smtp.gmail.com
from your-email-here@gmail.com
auth on
user your-email-here@gmail.com
password your-email-password

account default : Gmail

2. Activate the sendmail path at php/php.ini

sendmail_path = “\”C:\xampp\sendmail\sendmail.exe\” -t”

3. Restart your Xampp apache

4. Try to send email :




$subject=”Hi, firts email test via PHP”;

$content=”This the content of my test email”;


echo “email sent”;


echo “email can’t send”;



Dalam uji coba ini, pengiriman email akan memakan sedikit waktu, paling tidak 3 detik, itu adalah proses yang sedang berjalan pada deamonnya sendmail.exe, selain itu, kecepatan tranfer data internet anda juga akan mempengaruhi kecepatan pengiriman email.

Okelau.. selamat ber-imel ria.


Entry filed under: PHP, Website.

Banyangin jika punya bejibun kolom di table, malas hitung, pakai ini ! Walkout from this week

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed

Because I Learn CI and Jquery




Twitter Updates

Error: Twitter did not respond. Please wait a few minutes and refresh this page.

%d bloggers like this: