How to send mails through php script?

前端 未结 8 998
半阙折子戏
半阙折子戏 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:23

    The code (the inner most block) looks correct. Make sure your environment is setup correctly. http://ca3.php.net/manual/en/mail.setup.php

    0 讨论(0)
  • 2021-01-01 08:29

    if it works sending emails to gmail then it should work fine sending emails to yahoo too

    you may find that the issue is not the sending of the emails, but maybe yahoo is marking them as spam or blocking them at the gateway

    i notice you are appending a comma to the end of the email address, what is the point of that ?

    there may be other problems, are your loops correct, are they covering all the cases you expected.

    are you sending thousands of emails ? can your mta handle the rate at which you are putting emails into the queue

    is your script hitting max_execution time and stopping ?

    0 讨论(0)
提交回复
热议问题