It would make a lot more sense in your case to use a service configured and managed by someone else. While for a commercial website running your own MTA robably comes quite high on the list of things to do, it is not a trivial exercise - you really need to know what you're doing to get one configured and running securely. Your PHP is configured to talk to an SMTP server - the default for an MSWindows machine, but either you have no MTA installed or it's blocking connections. The page on configuring email explains that there's a big difference between the PHP mail command running on MSWindows and on every other operating system it's a good idea when posting a question to provide relevant information on how that part of your system is configured and what operating system it is running on. ![]() Usually a good place to start when you run into problems is the manual. $send = mail($to, $subject, $body, $headers) Įcho "Success. $headers = "Content-type: text/html charset=utf-8" Just make sure to enter your own email address for the $to line. ![]() This will not work on a local host, but uploaded on a server, this code should do the trick.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |