Title: How to Fix Email script with a PHP error, and I'm unsure as to whether it is an issue of WAMP Server?
Tags: php;html;email
Question: I am trying to build a simple Contact Form on Dreamweaver that will email user responses to a designated email.
However, I am getting the above problem: Warning: mail(): Failed to connect to mailserver at &quot;localhost&quot; port 25, verify your &quot;SMTP&quot; and &quot;smtp_port&quot; setting in php.ini or use ini_set()
I have 2 PHP based files on dreamweaver:
mailscript
contactform
Untitled Document

Text Field:







Text Area:











Content for form Goes Here
Comment: Please refer this solution for sending mails form wamp - https://stackoverflow.com/questions/16830673/wamp-xamp-send-mail-using-smtp-localhost

Comment: Possible duplicate of [(WAMP/XAMP) send Mail using SMTP localhost](https://stackoverflow.com/questions/16830673/wamp-xamp-send-mail-using-smtp-localhost)



{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 0, 'CommentCount': 2, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2019:00:04/12/19', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<php><html><email>', 'Title': "How to Fix Email script with a PHP error, and I'm unsure as to whether it is an issue of WAMP Server?", 'ViewCount': 20, 'id': 55652731, 'user_AboutMe': None, 'user_AccountId': 13235051.0, 'user_DisplayName': 'rj1000', 'user_Reputation': 3.0, 'user_Views': 1.0, 'user_id': 9557454.0}}