Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 11th November 2011
Braincode's Avatar
Braincode Braincode is offline
Ceriwis Addicted
 
Join Date: Nov 2011
Posts: 4,638
Rep Power: 20
Braincode mempunyai hidup yang Normal
Default [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



Ada yang bisa gak ?



Ajarin dong





Untuk List SMTP bisa di lihat di SINI



Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 10:55 PM.


no new posts