Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Other Web Development Languages (http://www.programmingforums.org/forum40.html)
-   -   SMTP port (http://www.programmingforums.org/showthread.php?t=10350)

TCStyle Jun 13th, 2006 9:09 PM

SMTP port
 
I'm currently have a server set up on a home computer (WAMP). I opened port 25 (smtp) but the mail() function in php still won't work for me. Do I have to configure anything? I haven't created any type of email on my server, I just opened the port.

Booooze Jun 14th, 2006 12:46 AM

First off, what error do you get? And second, you probably haven't specified a mail server. I don't really know a whole lot about the mail function, as I never use it except in testing phpbb forums. But if all you have done is setup the port, you need more configuration.

Pizentios Jun 14th, 2006 9:59 AM

For the Mail functions to be available, PHP must have access to the sendmail binary on your system during compile time. If you use another mail program, such as qmail or postfix, be sure to use the appropriate sendmail wrappers that come with them.

TCStyle Jun 14th, 2006 4:13 PM

Does someone have a walk through as to how I would go about configuring a mail account?

I don't get an error message but my mail doesnt send. Script:
:

<?
$to = '5437013177@messages.nextel.com";
$subject = "Daily text message";
$message = "Message...";

$malL = mail($to, $subject, $message);
if (!malL) {
echo 'Error!';
} else {
echo 'Message Sent!';
}
?>


Pizentios Jun 14th, 2006 4:18 PM

do you have a program like sendmail installed?

mackenga Jul 13th, 2006 5:29 PM

I've never heard of WAMP. That might be your problem. A skim of their website doesn't impress me much, and I haven't seen any mention of an SMTP service of any kind or any equivalent of sendmail(1) being included.

Wizard1988 Jul 13th, 2006 5:41 PM

It might be your ISP blocking it.


All times are GMT -5. The time now is 8:02 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC