Click here to Skip to main content
15,881,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Repected developers, i make simple page in dreamviewer in php, about contact us page, which fields are as given below:

HTML
<input type="text" name="mladrs" placeholder="enter your mail id" />

HTML
<input type="text" name="sbj" placeholder="enter your subject" />


HTML
<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,
C#
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
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900