OK further searching through numerous forums and finally working.
seems I simply needed to add a line to the smtprelay.tab
"127.0.0.0"[TAB]"255.255.255.0"[RETURN],
also made sure in php.ini
SMTP = localhost
sendmail_from = postmaster@www.mydomain.co.uk
working at last.
I think the main...
found a site where I enter my
IP address, email to send to and email to send from and it tests it all.
result was
SMTP Connection:
OK, connected to 217.42.***.***...
< 220 <1106868066.4036@www.mydomain.co.uk> [XMail 1.20 ESMTP Server] service ready; Thu, 27 Jan 2005 23:21:06 -0000
> HELO...
What I mean is
the mail() function is only working when sent to my admin@mydomain.co.uk email but failing when sent to any email outside my LAN.
This is the initial problem.
I have reinstalled apache2triad and put website back and working ok.
with all the default settings outlook will only...
the outgoing mail server I used was www.mydomain.co.uk
(Obviously mydomain being my DNS, I'm sure someone somewhere at some time has actually put mydomain instead LOL)
this was the same as the pop3 setting.
I have changed the SMTP = to this and it still worked only on LAN when using mail()...
outlook is on another PC on the LAN.
in php.ini I used both localhost and my domain name and both worked through lan but none outside lan.
However after thinking about what you asked I setup outlook on the same pc as the server and noticed in add remove programs>windows components that SMTP...
I have set up my pc as a web server using apache2triad.
Everything runs fine for my web but having problems using the mail() function.
I have setup my email account in outlook to test it and I can send mail to a friends hotmail and receive mail back fine.
however like I said everytime I use...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.