Results 1 to 16 of 16

Thread: Mail() Function Help

  1. #1

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Mail() Function Help

    hi guyz,

    why would sending email locally stop working?

    am running APACHE+PHP+MYSQL+MERCURY on localhost...and have been sending emails fine.

    but it stopped working recently!!!

    can someone tell me why?
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Mail() Function Help

    Have you checked any related error logs? (Possibly Apache/Mercury)

  3. #3
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Mail() Function Help

    Quote Originally Posted by modpluz
    hi guyz,

    why would sending email locally stop working?

    am running APACHE+PHP+MYSQL+MERCURY on localhost...and have been sending emails fine.

    but it stopped working recently!!!

    can someone tell me why?
    All-In-One packages are bad!
    My usual boring signature: Something

  4. #4
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    Re: Mail() Function Help

    who said he had an all-in-one package?

    and why would you say they were bad, anyway?

  5. #5
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Mail() Function Help

    Quote Originally Posted by kows
    who said he had an all-in-one package?

    and why would you say they were bad, anyway?
    All-in-one 'magic' packages are generally bad because they do not always have the latest versions of each product, they often tweak the configurations of the products so that they behave in unusual ways, and experience using them does not help when you need to work with a system that has the products installed individually.

    That having been said, however, the OP didn't say that he was using one.

    Like mendhak, I would check any error logs, and whether any ISP settings have changed.

  6. #6

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: Mail() Function Help

    Quote Originally Posted by penagate
    All-in-one 'magic' packages are generally bad because they do not always have the latest versions of each product
    whether they have the latest version is not the issue(as i have said its been working for over 6 months)

    Quote Originally Posted by penagate
    using them does not help when you need to work with a system that has the products installed individually.
    i wouldn't know about that(i have Win XP Pro SP2)
    Quote Originally Posted by penagate
    Like mendhak, I would check any error logs
    it keeps saying pending(i.e if i send mail twice it says "2 messages pending")
    Quote Originally Posted by penagate
    and whether any ISP settings have changed.
    how can i check that?
    and moreso, i'm running it locally(does this have anything to do with the ISP?)

    thanks
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  7. #7

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: Mail() Function Help

    Anybody pls?
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  8. #8
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Mail() Function Help

    are you sure that the server is started?
    My usual boring signature: Something

  9. #9
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Mail() Function Help

    Quote Originally Posted by modpluz
    hi guyz,

    why would sending email locally stop working?

    am running APACHE+PHP+MYSQL+MERCURY on localhost...and have been sending emails fine.

    but it stopped working recently!!!

    can someone tell me why?
    You have probably installed a piece of software that prevents the mail transfer agent from making connections on port 25 / even bind to port 25. Something like a personal firewall would probably do that.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  10. #10

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: Mail() Function Help

    Quote Originally Posted by visualAd
    You have probably installed a piece of software that prevents the mail transfer agent from making connections on port 25 / even bind to port 25. Something like a personal firewall would probably do that.
    ok i turned off the "Windows Firewall" and restarted the webserver and the mailserver, but it still won't work.
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  11. #11
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Mail() Function Help

    Can you send mail manually through the it?
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  12. #12
    Junior Member
    Join Date
    Mar 2006
    Posts
    24

    Re: Mail() Function Help

    Did your mail server start ? or setup well ?

    otherwise try to use phpmailer , more option that u can use

  13. #13

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: Mail() Function Help

    Quote Originally Posted by visualAd
    Can you send mail manually through the it?
    No(it gives no error but it doesn't go

    Quote Originally Posted by cc96ai
    Did your mail server start ? or setup well ?

    otherwise try to use phpmailer , more option that u can use
    even phpMailer doesn't send the message(i have tried it)

    this is drivin me nuts
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  14. #14
    Junior Member
    Join Date
    Mar 2006
    Posts
    24

    Re: Mail() Function Help

    maybe u can post some configurataion setting ,
    rightnow we only know thats not working , no error message,

    some further information it might help to narrow down the problem

  15. #15
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Mail() Function Help

    Quote Originally Posted by modpluz
    No(it gives no error but it doesn't go



    even phpMailer doesn't send the message(i have tried it)

    this is drivin me nuts
    The fact that the mail is queued means that it has been successfully delivered to the server. Hence no error message.

    The problem is occurring when delivering the mail. This could be due to several reasons.
    • A DNS problem preventing the sever resolving the MX records for domains.
    • A Firewall blocking communications to the Internet on port 25. This could be on your PC, your router or down to your ISP.

    If you hunt around you can probably find the logs generated by Mercury and see exactly which one it is.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  16. #16

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: Mail() Function Help

    Quote Originally Posted by visualAd
    A Firewall blocking communications to the Internet on port 25. This could be on your PC, your router or down to your ISP.
    that's what am thinking and thats why i turned off the "Windows Firewall" but its still not working.(and it ought to be my PC, cause am running it locally)
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

Posting Permissions

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



Click Here to Expand Forum to Full Width