How to send mails through php script?

前端 未结 8 1069
半阙折子戏
半阙折子戏 2021-01-01 08:02

How can i send mails through the php script?? I am trying to do somthing like this:

for($k=0;$k<=$x->length-1;$k++)
{
    for($l=0;$l<=$j-1;$l++)
           


        
8条回答
  •  误落风尘
    2021-01-01 08:18

    If you are on a shared web host, or your home computer, the main domain for the server will be something like

    server.your-isp-or-host.com
    

    The spam filter will then see the email claiming to be from

    yourdomain.com
    

    when it really came from the first address, and would then delete it.

    This would explain the hit-and-miss nature of your error.

    If you are on a dedicated server, or a static IP pointing to your home computer with properly set up DNS, the above does not apply.

提交回复
热议问题