Apache2Triad Help, Support and Development Forum Index Search Profile Log in to check your private messages Log in Register Memberlist Attachments Statistics Crew/Ranks Archive
 PHP Mail Function
Google
Post new topic Reply to topic
Author Message
pharaoh
 
 


Joined: 28 Mar 2004
Posts: 31
Location: Perth, Australia

PostPosted: Sun Jun 19, 2005 9:54 am Reply with quoteBack to top

I seem to be having trouble with sending any emails via the php mail() function.
I have a client site that usees this to send confirmation emails of order, both to myself and to the customer, but no emails are getting through.

i first though that it might be the mail server,, but all other mail gets through.

can anyone point me in the right direction.

thanks
View user's profileSend private messageMSN Messenger
LiquidSnake
past contributor
past contributor


Joined: 23 May 2004
Posts: 267
Location: Middlesboro, KY

PostPosted: Sun Jun 19, 2005 4:29 pm Reply with quoteBack to top

search the forums there are plenty of topics which cover this. read the FAQ

mail() function does not have commands to enter user or password, need to open localhost for relay (AND ONLY LOCALHOST) or find setting in the program to use SMTP authentication ...
View user's profileSend private messageSend e-mailYahoo Messenger
pharaoh
 
 


Joined: 28 Mar 2004
Posts: 31
Location: Perth, Australia

PostPosted: Mon Jun 20, 2005 12:28 am Reply with quoteBack to top

Thanks liquidsnake,

But i did look at the search results and they all relate to using phpxmail server, which i am not using.

I have my own mailserver ( SmarterMail ) and it was working fine untill a few days ago. nothing has been changed on the server so i fail to see why the mail() function will no longer work. Oviously somthing is wrong otherwise i would not be looking for help.

i have tried changing the perameters in the php.ini file to accomodate my mail server insted of the localhost but that does not work.

Cheers
View user's profileSend private messageMSN Messenger
LiquidSnake
past contributor
past contributor


Joined: 23 May 2004
Posts: 267
Location: Middlesboro, KY

PostPosted: Mon Jun 20, 2005 12:35 am Reply with quoteBack to top

would make no difference which server you used, if the server didn;t allow local relay there is no way an email would go through with the mail() function. other than that re-check your config for the server you use.

did you do anything that may have provoked this? change anything? check some of the logs from your server see if ya can find anything.

Also you may have had an open relay and your ISP shut it down..
View user's profileSend private messageSend e-mailYahoo Messenger
pharaoh
 
 


Joined: 28 Mar 2004
Posts: 31
Location: Perth, Australia

PostPosted: Mon Jun 20, 2005 1:21 am Reply with quoteBack to top

Hi,
the server is set to alow local relay.
no changes have been made.

"Also you may have had an open relay and your ISP shut it down.."
but woldnt that mean that the whole server would not be working.

I looked at the SMTP logs on the server and ( from memory) it said somthing about a "forced closed connection from the remote computer" or somthing like that. sorry i dont have access to the server at the moment.

Cheers
View user's profileSend private messageMSN Messenger
LiquidSnake
past contributor
past contributor


Joined: 23 May 2004
Posts: 267
Location: Middlesboro, KY

PostPosted: Mon Jun 20, 2005 10:37 am Reply with quoteBack to top

meaning your ISP may have started blocking port 25
View user's profileSend private messageSend e-mailYahoo Messenger
pharaoh
 
 


Joined: 28 Mar 2004
Posts: 31
Location: Perth, Australia

PostPosted: Tue Jun 21, 2005 2:44 am Reply with quoteBack to top

LiquidSnake wrote:
meaning your ISP may have started blocking port 25


But that would block all mail from getting through on the port, would it not? and I am recieving all other mail that is sent to me.
View user's profileSend private messageMSN Messenger
LiquidSnake
past contributor
past contributor


Joined: 23 May 2004
Posts: 267
Location: Middlesboro, KY

PostPosted: Tue Jun 21, 2005 2:49 pm Reply with quoteBack to top

My ISP at one time only blocked outgoing port 25 ..... But back to the subject, you need to find a way to use SMTP authentication ....Its more secure anyways.
View user's profileSend private messageSend e-mailYahoo Messenger
pharaoh
 
 


Joined: 28 Mar 2004
Posts: 31
Location: Perth, Australia

PostPosted: Wed Jun 22, 2005 1:59 am Reply with quoteBack to top

LiquidSnake wrote:
you need to find a way to use SMTP authentication ....Its more secure anyways.


I tried that yesterday. i set SMTP AUTH on the mail server and on my mail client, but i still didi not recive the mail.
View user's profileSend private messageMSN Messenger
LiquidSnake
past contributor
past contributor


Joined: 23 May 2004
Posts: 267
Location: Middlesboro, KY

PostPosted: Wed Jun 22, 2005 8:14 pm Reply with quoteBack to top

on whatever you are using to send mail. the program using the mail() function, not the mail server itself (which however is not a bad idea either)

but to make a long post short go ahead and tell me what program is using the mail() function to send mail?
View user's profileSend private messageSend e-mailYahoo Messenger
Display posts from previous:      
Post new topic Reply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme
All times are GMT