How do I know if my host is allowing me to send emails using PHP mail() function?
Is that possible to 开发者_StackOverflowcheck with phpinfo() output?
IS that possible to check with phpinfo() output?
Not always, and not reliably. But why not simply try out?
mail("youraddress@domain.com", "Test subject", "Test body");
You could check the phpinfo()
but I would suggest trying
mail("me@me.com", 'Subject', 'Test Body', "From: from@me.com");
You can fsock open on the mail server's port also. This is playing on nightmare mode however.
精彩评论