Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 11 of 11
  1. #1
    Regular Coder
    Join Date
    Jun 2004
    Posts
    128
    Thanks
    6
    Thanked 0 Times in 0 Posts

    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)

  • #2
    Regular Coder
    Join Date
    Apr 2004
    Location
    Los Angeles
    Posts
    133
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sounds like the Port for SMTP hasn't been opened

  • #3
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,980
    Thanks
    4
    Thanked 2,659 Times in 2,628 Posts
    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.

  • #4
    Regular Coder
    Join Date
    Jun 2004
    Posts
    128
    Thanks
    6
    Thanked 0 Times in 0 Posts
    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?

  • #5
    Regular Coder
    Join Date
    Jun 2004
    Posts
    128
    Thanks
    6
    Thanked 0 Times in 0 Posts
    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.

  • #6
    Regular Coder
    Join Date
    Jun 2004
    Posts
    128
    Thanks
    6
    Thanked 0 Times in 0 Posts
    Well, that didn't work...

  • #7
    Regular Coder
    Join Date
    Apr 2004
    Location
    Los Angeles
    Posts
    133
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Your main configuration file is generally "httpd.conf"

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

  • #8
    Regular Coder
    Join Date
    Jun 2004
    Posts
    128
    Thanks
    6
    Thanked 0 Times in 0 Posts
    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.

  • #9
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #10
    New to the CF scene
    Join Date
    May 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #11
    New to the CF scene
    Join Date
    Sep 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •