Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-06-2004, 10:45 PM   PM User | #1
XtremeGamer99
Regular Coder

 
Join Date: Jun 2004
Posts: 128
Thanks: 6
Thanked 0 Times in 0 Posts
XtremeGamer99 is an unknown quantity at this point
Problem sending mail...

Okay, i concluded that my SMTP server was faulty from the Apache package that I downloaded. I have a new package now, and it works... sorta. I have it set-up with Outlook express so that i can send e-mails with Outlook (or a script). Problem: It only allows me to sent to localhost. If I put my e-mail in the e-mail script, it would say it was sent, but in the Murcury program (my SMTP thingy), it shows as one of the processess:

Temporary error 249 (temporary MX resolution error) resolving 'aol.com'.
(my email is xxtremegamer9999@aol.com)

But, if I replace my email address with admin@localhost, it send it, and I am able to log in Outlook under Admin and read it. Same goes with sending it. If I'm logged onto aol (using xxtremegamer9999), and send an email to my admin account on my computer (admin@<IP_ADDRESS_GOES_HERE>), the 'AOL Postmaster' sends me a email saying that it failed.

So, basically, I can't send my emails from localhost to non-localhost, and vise versa.

Can anyone help?

I have Windows XP, the downlaod package I have has this:
Apache 2.0.52
MySQL 4.0.21
PHP 5.0.2 + PHP 4.3.9 + PEAR
MiniPerl 5.8.3
SQLite 2.8.15
PHPMyAdmin 2.6.0 pl1
ADODB 4.52
Mercury Mail Transport System for Win32 and NetWare Systems v4.01a
FileZilla FTP Server 0.9.3
Webalizer 2.01-10
Zend Optimizer 2.5.3

And a little program that the package makers made:
PHP-Switch win32 1.0 (by Apachefriends, use the "php-switch.bat")
(switches from PHP5 to PHP4, and vise-versa)
XtremeGamer99 is offline   Reply With Quote
Old 10-07-2004, 12:52 AM   PM User | #2
Hawkmoon
Regular Coder

 
Join Date: Apr 2004
Location: Los Angeles
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
Hawkmoon is an unknown quantity at this point
Sounds like the Port for SMTP hasn't been opened
Hawkmoon is offline   Reply With Quote
Old 10-07-2004, 01:00 AM   PM User | #3
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,648
Thanks: 4
Thanked 2,450 Times in 2,419 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Yeah, this one isn't a php issue, there is probably nothing wrong with your script. As long as its sending to the right address. You should check with apache.org to see what the sendmail configurations are supposed to be.
Fou-Lu is offline   Reply With Quote
Old 10-07-2004, 01:07 AM   PM User | #4
XtremeGamer99
Regular Coder

 
Join Date: Jun 2004
Posts: 128
Thanks: 6
Thanked 0 Times in 0 Posts
XtremeGamer99 is an unknown quantity at this point
Okay, I have been there, but can't get around the site.

I think it is on port 25, but, again, I downloaded a package that had pre-configs, so i don't know.

Where do i go in my files to find out if my ports open or somethings wrong or whatever?
XtremeGamer99 is offline   Reply With Quote
Old 10-07-2004, 01:11 AM   PM User | #5
XtremeGamer99
Regular Coder

 
Join Date: Jun 2004
Posts: 128
Thanks: 6
Thanked 0 Times in 0 Posts
XtremeGamer99 is an unknown quantity at this point
i think I fixed it. I had a box checked in the config of Murcury mail to "Do not permit SMTP relaying of non-local mail".

So, I'ma go to test it.
XtremeGamer99 is offline   Reply With Quote
Old 10-07-2004, 01:17 AM   PM User | #6
XtremeGamer99
Regular Coder

 
Join Date: Jun 2004
Posts: 128
Thanks: 6
Thanked 0 Times in 0 Posts
XtremeGamer99 is an unknown quantity at this point
Well, that didn't work...
XtremeGamer99 is offline   Reply With Quote
Old 10-07-2004, 02:38 AM   PM User | #7
Hawkmoon
Regular Coder

 
Join Date: Apr 2004
Location: Los Angeles
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
Hawkmoon is an unknown quantity at this point
Your main configuration file is generally "httpd.conf"

Read more at:
http://httpd.apache.org/docs-2.0/configuring.html
Hawkmoon is offline   Reply With Quote
Old 10-07-2004, 03:19 AM   PM User | #8
XtremeGamer99
Regular Coder

 
Join Date: Jun 2004
Posts: 128
Thanks: 6
Thanked 0 Times in 0 Posts
XtremeGamer99 is an unknown quantity at this point
yeah, but I don't see anywhere in that file that has anything mail or SMTP related.

I found something in my php.ini file:
Code:
...
[mail function]
; For Win32 only.
SMTP = localhost
 
; For Win32 only.
sendmail_from = postmaster@localhost

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
But, that can't be the case, because i can't send mail out
[Java]
...
side of localhost in Outlook, either (using my SMTP usernames and passwords). And Outlook doesn't have anything to do with PHP.

Oh, and please remember: this is a packaged budle of the Apache web server, meaning most of the configs are preset. i haven't gotten the time to look through them and config it my way.
XtremeGamer99 is offline   Reply With Quote
Old 03-16-2005, 04:04 PM   PM User | #9
gtbfl
New to the CF scene

 
Join Date: Mar 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
gtbfl is an unknown quantity at this point
Thumbs up

I had the same problem and finally fixed it by changing my PHP.ini file as follows:

[mail function]
; For Win32 only.

GTB010314-------------------------
;SMTP = localhost
SMTP = smtp.comcast.net
GTB010314-------------------------
; For Win32 only.
GTB010314-------------------------
;sendmail_from = postmaster@localhost
;sendmail_from = gtbfl@comcast.net
sendmail_from = me@comcast.net
GTB010314-------------------------

The smtp is the SMTP address of my ISP.
Using sendmail_from = postmaster@localhost -would not work
Using sendmail_from = gtbfl@comcast.net was a valid email address -Worked
Using sendmail_from = me@comcast.net was a fake email address -worked

I see I didn't put ";" in front of my change note but had no problems.
With this configuation I was able to send from Mercury (from the XAMPP menu when browser pointed to localhost)even when the sender was postmaster@localhost.

Make sure you edit the correct PHP.ini file - the one in apachefriends/xampp/apache/bin
gtbfl is offline   Reply With Quote
Old 05-06-2006, 03:10 PM   PM User | #10
terra2
New to the CF scene

 
Join Date: May 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
terra2 is an unknown quantity at this point
if all else fails

im new here but ive conqoured the mail send issue on my tracker.you could try if all else fails visiting this site and checking out one of the following mail servers for your tracker...

http://www.emailarms.com/

good luck
terra2 is offline   Reply With Quote
Old 09-17-2006, 09:16 PM   PM User | #11
davegod75
New to the CF scene

 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
davegod75 is an unknown quantity at this point
Quote:
Originally Posted by gtbfl View Post
I had the same problem and finally fixed it by changing my PHP.ini file as follows:

[mail function]
; For Win32 only.

GTB010314-------------------------
;SMTP = localhost
SMTP = smtp.comcast.net
GTB010314-------------------------
; For Win32 only.
GTB010314-------------------------
;sendmail_from = postmaster@localhost
;sendmail_from = gtbfl@comcast.net
sendmail_from = me@comcast.net
GTB010314-------------------------

The smtp is the SMTP address of my ISP.
Using sendmail_from = postmaster@localhost -would not work
Using sendmail_from = gtbfl@comcast.net was a valid email address -Worked
Using sendmail_from = me@comcast.net was a fake email address -worked

I see I didn't put ";" in front of my change note but had no problems.
With this configuation I was able to send from Mercury (from the XAMPP menu when browser pointed to localhost)even when the sender was postmaster@localhost.

Make sure you edit the correct PHP.ini file - the one in apachefriends/xampp/apache/bin


I think the main point here is that he is trying to using localhost as the smtp server. You changed yours to comcast so that is why it works
davegod75 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:14 PM.


Advertisement
Log in to turn off these ads.