Repected developers, i make simple page in dreamviewer in php, about contact us page, which fields are as given below:
<input type="text" name="mladrs" placeholder="enter your mail id" />
<input type="text" name="sbj" placeholder="enter your subject" />
<input type="text" name="msg" placeholder="enter your message here......" />
this is my design, and code is as below:
thank you i advance
What I have tried:
i download tha sendmail setup , set it at wamp server folder, at c:\wamp\sendmail configuration notepad file, and change the confiuration in, like
smtp_server=smtp.gmail.com
smtp_port=25
smtp_ssl=ssl
default_domain=localhost
auth_username= moriswalatalktome@gmail.com
auth_password= *****************
force_sender= moriswalatalktome@gmail.com
at apache folder php.ini
i changed, like
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 465
; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = moriswalatalktome@gmail.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = "C:\wamp\sendmail\sendmail.exe -t -i"
at php folder php.ini file same as
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 465
; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = moriswalatalktome@gmail.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = "C:\wamp\sendmail\sendmail.exe -t -i"
but, error is shown that,
Warning: mail(): Failed to connect to mailserver at "localhost" port 465, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\digicorp\mail.php on line 45