开发者

send email using php

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜