Why do I keep getting a NULL when looking at the TO/FROM header fields?

Christopher Koenigsberg

Messages are not required to have anything in any of the headers. In particular, it is OK to have no valid "From:" header (and OK to have no valid "To:" header also). Only the SMTP envelope fields are actually used, to transmit and deliver the message; the headers are not required.