tags:

views:

52

answers:

3

How do I know if my host is allowing me to send emails using PHP mail() function?

Is that possible to check with phpinfo() output?

+6  A: 

IS that possible to check with phpinfo() output?

Not always, and not reliably. But why not simply try out?

mail("[email protected]", "Test subject", "Test body");
Unicron
+2  A: 

You could check the phpinfo() but I would suggest trying

mail("[email protected]", 'Subject', 'Test Body', "From: [email protected]");
Lizard
Doesn't the last parameter need a `from: ` prefix?
Unicron
+1  A: 

You can fsock open on the mail server's port also. This is playing on nightmare mode however.