开发者

send email using php

开发者 https://www.devze.com 2023-01-05 23:40 出处:网络
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?

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

精彩评论

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