PHP Classes

Not specified subject

Recommend this page to a friend!

      SMTP E-mail sending class  >  All threads  >  Not specified subject  >  (Un) Subscribe thread alerts  
Subject:Not specified subject
Summary:When no subject is specified an empty line is inserted
Author:Henk Kamminga
Date:2015-11-27 13:57:33

  1. Not specified subject   Reply   Report abuse  
Picture of Henk Kamminga Henk Kamminga - 2015-11-27 13:57:33
It is not a good practice to send emails without subject,
but when no subject is specified the class emits an emty line with LfCr is inserted, this terminates the header section

  2. Re: Not specified subject   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-11-27 19:03:21 - In reply to message 1 from Henk Kamminga
Well the class itself does not add line feeds in the headers.

Keep in mind that all headers are terminated by \r\n .

Between the header and the body there must be two \r\n sequences.

If the Subject is your last header, there may appear two \r\n sequences regardless if the subject is empty or has some text.

Also keep in mind that subjects must not have any \r or \n characters.