How to send mail using wamp server?

the mail() function

Moderators: macek, egami, gesf

chongchnw
New php-forum User
New php-forum User
Posts: 3
Joined: Mon Jun 27, 2011 9:33 pm

How to send mail using wamp server?

Postby chongchnw » Wed Apr 25, 2012 11:18 pm

Hi, I am using wamp now and would like to send mail from my computer. I had research around know that need to change the below coding from php.ini
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = smtp.gmail.com
; http://php.net/smtp-port
smtp_port = 587

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = sendmail@gmail.com


Then I tried run the sending mail script and it doesnt work(the send mail script is confirm work cause I tried it own free hosting but it only can send once in a day).

My question is I not sure how to config from localhost, and is there any free smtp server for me to use instead of gmail(as I know smtp.gmail.com is not working).

Return to “PHP coding => Mail”

Who is online

Users browsing this forum: No registered users and 1 guest