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 :

defaults
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 :

<?php

//tes.php

$to=”benhard_doenk@yahoo.com”;

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

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

if(mail($to.$subject,$content)){

echo “email sent”;

}else{

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. Tags: .

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Because I Learn CI and Jquery

http://api.jquery.com

http://www.grocerycrud.com

http://Zedwood.com

Twitter Updates

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

My FB page


%d bloggers like this: