Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mail again

Status
Not open for further replies.

skiflyer

Programmer
Sep 24, 2002
2,213
US
I have my mail options configured now, and when I use the mail function it returns a success... but the mail never shows up. Is there some extra code I can add to figure out where this is going wrong?

-Rob
 
Not really. All PHP does is hand the message off to the MTA, then forget about it.

You can always try sending the email by hand to see what is wrong.

From the machine which is running PHP, open a telnet session to the mail server on port 25. Then issue the following directives (you'll probably want to make sure that your telnet client is set to local echo. Also, the triangle brackets that follow may be required by your mail server):

Code:
mail from: <you@somedomain.com>[enter]
rcpt to: <somerecipien@somedomain.com>[enter]
data[enter]
From: Some Name <you@domain.com>[enter]
To: Some Recipient <somerecipient@somedomain.com>[enter]
Subjtect: test[enter]
[enter]
This is a test[enter]
.[enter]
quit[enter]

This should send a simple email to somerecipient@somedomain.com. Note that the server will send response codes in between your directives -- they may be clues as to what is going on. Want the best answers? Ask the best questions: TANSTAAFL!
 
I'll save this message for future reference, but in the meantime I'm up and running with just one other small problem which deserves a new thread.

Thanks for your help.

-Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top