Sendmail added, php adapted.