how do I set up php to send mail?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Wildwood
Forum Newbie
Posts: 8
Joined: Fri Oct 01, 2004 3:34 am

how do I set up php to send mail?

Post by Wildwood »

I want to set up a basic form for users to send information to me....tested and received the following message

Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Group\Apache2\htdocs\TMP7bj935dcai.php on line 3

How do I specify a smtp setting. Do I need to specify a local mail server or can I use a simple script that I can download (preferrred).
Not too sure how to locate the PHP.INI file have been looking and does not appear............or maybe under a different name.
Any help will be appreciated.
User avatar
mudkicker
Forum Contributor
Posts: 479
Joined: Wed Jul 09, 2003 6:11 pm
Location: Istanbul, TR
Contact:

Post by mudkicker »

you can set your mail server settings in php.ini
jabbaonthedais
Forum Contributor
Posts: 127
Joined: Wed Aug 18, 2004 12:08 pm

Post by jabbaonthedais »

You can find your php.ini file in Apache\php
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

[devnet]+mailserver +mail +php.ini[/devnet] :roll:
Post Reply