php - Is my email header correct? -


Is "The following" from the header encoded?

  To send the HTML mail, the content-type header should be set to $ headers = 'MIME-Version: 1.0' "\ r \ n"; $ Headers = 'Content-type: text / html; Charset = ISO-885 9-1 '"\ r \ n"; // Additional Header $ Header = 'Sender: Mail Master & lt; Mail@mailmaster.com> . "\ R \ n"; If (email email, $ subject, $ body, send $ header) {  

I get an error from my mail server, it says, "error matching: syntax error".

Thanks for any help.

Update

I stripped the SendEmailNow function below and I get the same error:

  // sent an email function sentEmailNow Send (# $ email, $ theme, $ body, $ header) {if (Mail ($ email, $ theme, $ body, $ header)) ## Check email to check email - Number registered return Compare with; } And {## code to return an error report; }}  

Update 2

The problem is resolved. I'm running it on a Windows machine using 5 windows. Like choosing the correct answer and the comments have said. There is a problem understanding some mail server what I did before. But what was this work for me:

  $ headers = 'From: mail@mailmaster.com'. "\ R \ n"; A Google search for error message shows that some SMTP servers fail to parse your syntax.  

From to Can you try the following syntax to cancel?

 From  to: mail@mailmaster.com  

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%? -