fungsi PHP Mail di openwrt


#opkg install msmtp

edit file /etc/msmtprc

//contoh pengaturan untuk akun gmail

account default

host smtp.gmail.com
port 587
auth on
user username@gmail.com
password password_email

auto_from off
from usernamae@gmail.com

tls on
tls_starttls on
tls_certcheck off

logfile
syslog LOG_MAIL

edit file /etc/php.ini

tambahkan baris berikut pada akhir text

sendmail_path = /usr/sbin/sendmail -t

restart webserver
uhttpd
/etc/init.d/uhttpd restart

lighttpd
/etc/init.d/httpd restart

tes dengan membuat file

Agar bisa menjalankan file php di cli maka perlu install php-cli
# opkg install php-cli

cara menjalankan
# php-cli mail.php

One thought on “fungsi PHP Mail di openwrt

  1. Ping-balik: OpenWRT + Motion + Mjpg_streamer = Sistem CCTV Sederhana | Sukabiru | Blog

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s