Ceriwis

Ceriwis (https://forum.ceriwis.com/forum.php)
-   Programming (https://forum.ceriwis.com/forumdisplay.php?f=63)
-   -   [PHP] Send Mail From Localhost (https://forum.ceriwis.com/showthread.php?t=538837)

Braincode 11th November 2011 02:10 PM

[PHP] Send Mail From Localhost
 

Gan, tanya dong..... Cara kirim mail dari localhost gimana ?



ane dapat info dari google neh ini infonya




Quote:





I have some experience in this area, so I thought I could share some of my knowledge. As I'm writing this tutorial, I assume you already have basic PHP programing skills and understanding of web. I'm going to describe several email sending techniques as well as basic DNS setup.



First some terminology:



ISP - Internet Service Provider

SMTP - Simple Mail Transfer Protocol

DNS - Domain Name System



1. Sending emails from ISP relay SMTP



This is the best solution if you want to send registration emails. Not all ISPs offer this kind of service, so you should check ISP website for following information:

a) SMTP address/port

b) Autentification type

c) Any limits in messages number or sending delays etc..



If SMTP autentification is not required then you have your relay server Lets test it now.



Now in PHP theres is mail() fucntion. Lets say your ISP provides SMTP with domain "mail.example.com". So you would do something like this to test if emails are sent:


PHP Code:


















Pas ane coba gak bisa gan :mewek:



Ada yang bisa gak ?



Ajarin dong :mewek:





Untuk List SMTP bisa di lihat di SINI

</div>


All times are GMT +7. The time now is 05:57 PM.