In the above $despatched will only be true if the mail was sent. If the worth of $sent is legitimate the program will explain to the person Hope this assists, If for a few cause the receiver will not be receving emails, your sendmail server isn't configure the right way. you will need to check with you internet hosting organization or your admin.