...

View Full Version : Problem sending mail...



XtremeGamer99
10-06-2004, 10:45 PM
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)

Hawkmoon
10-07-2004, 12:52 AM
Sounds like the Port for SMTP hasn't been opened

Fou-Lu
10-07-2004, 01:00 AM
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.

XtremeGamer99
10-07-2004, 01:07 AM
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
10-07-2004, 01:11 AM
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
10-07-2004, 01:17 AM
Well, that didn't work...

Hawkmoon
10-07-2004, 02:38 AM
Your main configuration file is generally "httpd.conf"

Read more at:
http://httpd.apache.org/docs-2.0/configuring.html

XtremeGamer99
10-07-2004, 03:19 AM
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:

...
[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.

gtbfl
03-16-2005, 04:04 PM
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

terra2
05-06-2006, 03:10 PM
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:thumbsup:

davegod75
09-17-2006, 09:16 PM
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum