![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Jan 2005
Location: Albany, NY
Posts: 43
Rep Power: 0
![]() |
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.
__________________
meh... |
|
|
|
|
|
#2 |
|
Expert Programmer
|
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.
|
|
|
|
|
|
#3 |
|
Programming Guru
![]() ![]() |
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.
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#4 |
|
Programmer
Join Date: Jan 2005
Location: Albany, NY
Posts: 43
Rep Power: 0
![]() |
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!';
}
?>
__________________
meh... |
|
|
|
|
|
#5 |
|
Programming Guru
![]() ![]() |
do you have a program like sendmail installed?
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#6 |
|
Professional Programmer
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 321
Rep Power: 4
![]() |
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.
__________________
"I'm not a genius. Why do I have to suffer?" |
|
|
|
|
|
#7 |
|
Professional Programmer
Join Date: Oct 2005
Location: Chitown
Posts: 422
Rep Power: 4
![]() |
It might be your ISP blocking it.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|