PHP Mail() function failing -


I am trying to send an email to multiple addresses, so I wrote a function that pulls emails from the database, And separates each with a comma, but part of the mailing remains unsuccessful. Although the same work as getmails () is working on the second page, so what I'm actually doing wrong is lost

  function getmails () {$ id = Mysql_query ("subscribe_id DESC by ORDER to subscribe" SELECT * FROM) or die (mysql_error ()); $ Element = array (); While ($ activate = mysql_fetch_array ($ id)) {$ element [] = $ activate ['subscribe_email']; } $ Main = infograph (',', $ element); Print $ master; } Announcement of the ceremony () {if (isset ($ _POST ['announcement'])) {$ ToEmail = getmails (); $ EmailSubject = "" $ _ POST ['title'] ""; $ Mailheader = "From: newsletter@subdomain.domain.com \ r \ n"; $ Mailheader = "Answer:" $ _ POST ['Author']. "@addomaindomain.com \ r \ n"; $ Mailheader = "content-type: text / html; charset = ISO-8859-1 \ r \ n"; $ MESSAGE_BODY = "Author:" $ _ POST ['Author']. "& Lt; br & gt;"; $ MESSAGE_BODY = "Newsletter:" $ _ POST ['Content']. "& Lt; br & gt;"; Mail ($ ToEmail, $ EmailSubject, $ MESSAGE_BODY, $ Mailholder) or die ("Failure"); }}  

In addition to the exclusion of Richie handle, your mail is not working Printing in the results against the print of the results. You should change this:

  $ main = implode (',', $ element); Print $ master;  

To do this:

  return implode (',', $ element);  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -