PHP Sendmail

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Tim1681
-


Joined: 17 Jan 2005
Posts: 160
Location: Bristol, CT, USA

PostPosted: Sun Mar 27, 2005 5:18 pm    Post subject: PHP Sendmail Reply with quote

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 View user's profile Send private message AIM Address
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Mar 27, 2005 10:40 pm    Post subject: Re: PHP Sendmail Reply with quote

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 View user's profile Send private message Send e-mail
endusto
-


Joined: 21 Feb 2005
Posts: 20

PostPosted: Thu Mar 31, 2005 11:02 pm    Post subject: Reply with quote

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 View user's profile Send private message
Glitch2082
-


Joined: 02 Dec 2004
Posts: 194

PostPosted: Fri Apr 01, 2005 12:45 am    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group