PHP Send Email

2017 May 19 at 5:04 pm Leave a comment

Cukup mudah jika kita mau kirim email via PHP,
Contoh Kirim email sederhana

// Pesan email
$msg = “Coba Send Email via PHP”;
if(mail(“”,”Test Via PHP”,$msg)){
echo “The email($email_subject) was successfully sent.”;
echo “The email($email_subject) was NOT sent.”;


Server harus dinstall dulu sendmail
sudo apt-get install sendmail
untuk ngetest server kita sudah bisa kirim email, jalankan perintah Linux sbb.
$ echo “Subject: sendmail test” | sendmail -v


Entry filed under: PHP.

Setting Port pada Arduino

Leave a Reply

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

You are commenting using your 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


%d bloggers like this: