[Sử dụng hMailServer]
Sau khi cài đặt, bạn cần cấu hình sau để gửi đúng mail từ wampserver:
1) When you first open hMailServer Administrator, you need to add a new domain.
2) Click on the "Add Domain ..." button at the Welcome page.
3) Under the domain text field, enter your computer's IP, in this case it should be 127.0.0.1.
4) Click on the Save button.
5) Go to Settings>Protocols>SMTP and select "Delivery of Email" tab
6) Enter "localhost" in the localhost name field.
7) Click on the Save button.
Nếu bạn cần gửi thư bằng cách sử dụng TỪ addressee của một máy tính khác, bạn cần để cho phép phân phối từ tài khoản Bên ngoài đến Bên ngoài. Để làm điều đó, hãy làm theo các bước sau:
1) Go to Settings>Advanced>IP Ranges and double click on "My Computer" which should have IP address of 127.0.0.1
2) Check the Allow Deliveries from External to External accounts checkbox.
3) Save settings using Save button.
(. Tuy nhiên, Windows Live/Hotmail đã phủ nhận tất cả các email đến từ IP động, mà hầu hết các máy tính dân cư đang sử dụng Cách giải quyết là sử dụng tài khoản Gmail)
để sử dụng tài khoản Gmail:
1) Go to Settings>Protocols>SMTP and select "Delivery of Email" tab
2) Enter "smtp.gmail.com" in the Remote Host name field.
3) Enter "465" as the port number
4) Check "Server requires authentication"
5) Enter gmail address in the Username
6) Enter gmail password in the password
7) Check "Use SSL"
(Lưu ý, "Từ" chức năng lĩnh vực doesnt với gmail)
* p.s. trong trường hợp hiếm hoi, có thể là cần thiết để untick tất cả mọi thứ dưới require SMTP authentication
trong:
- cho địa phương: Cài đặt> Nâng cao> IP Ranges> "My Computer"
- cho bên ngoài: Cài đặt> Nâng cao> Phạm vi IP> "Internet"
Nguồn
2013-05-29 12:47:46
Cảm ơn bạn rất nhiều! – Jonathan
Bạn có thể cho tôi biết vị trí chính xác để đặt $ host = "ssl: //smtp.gmail.com"; $ port = 465; .? Cảm ơn –