View previous topic :: View next topic |
Author |
Message |
Tim1681 -
Joined: 17 Jan 2005 Posts: 160 Location: Bristol, CT, USA
|
Posted: Sun Mar 27, 2005 5:18 pm Post subject: PHP Sendmail |
|
|
Hey boyz, got a question for ya. I've got my server running PHP and i'm using some Forms with the formsend commands in it. I've opened my SMTP Port for the server and i'm able to run the code through the server. The problem is when i hit submit, it doesnt actually send it, it just tells me it did cuz thats what PHP does. Is there a special Extension needed for the Sendmail to work? Or is my .INI wrong?
Thnx! |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun Mar 27, 2005 10:40 pm Post subject: Re: PHP Sendmail |
|
|
Tim1681,
If you are using Windows, all you have to do is to configure the SMTP= parameter and set its value to the name/IP of your SMTP server.
If you SMTP server is running on the same computer as Abyss Web Server, set its value to localhost. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
endusto -
Joined: 21 Feb 2005 Posts: 20
|
Posted: Thu Mar 31, 2005 11:02 pm Post subject: |
|
|
are you trying to send emails with a form? if so, make an html page with this in it
Code: |
<form action="sendmail.php" method="post">
Email: <input type="text" name="email"><br>
Subject: <input type="text" name="subject"><br>
Body: <input type="text" name="body"><br>
</form>
|
then make a php file called sendmail.php put this code in
Code: |
<?
mail($_POST['email'],$_POST["subject"], $_POST["body"],'') or die("Mail could not be sent");
?> | [/code] |
|
Back to top |
|
|
Glitch2082 -
Joined: 02 Dec 2004 Posts: 194
|
Posted: Fri Apr 01, 2005 12:45 am Post subject: |
|
|
To make it look better its best to put post data in a string ;) _________________ int main() {
cout << "Im Pro Apache";
cin.get();
} |
|
Back to top |
|
|
|