Hello, I have a script that suddenly stopped working and nothing's been changed. I am using the php mail() function to send a simple email form and the mail() function report true when it is fired off but I can never receive the emails. I suspect something's changed in our hosting but wanted to rule everything out before I started investigating there. Here's the simple code I am using: $send_tenant_mail = mail( $tenant_email, $subject, $body_header, "From: $from\nReply-To: $from\n" ); if($send_tenant_mail == 1) { $confirm = "A Confirmation Email has been sent to: $tenant_email"; } Code (markup): Thanks, Clem C
check your mail server's logs, your mailserver is running and accepting mails but cannot deliver them to the network for some reason..
you might check your spam mail folder also you can use phpMailer which is actually better . pm me if you need paid help .
Another thing to check is that your upstream internet provider (or hosting company) may be either blocking SMTP (port 25) or now require a username/password to relay your mail. -Zeras
show the complete script did you included mime version in case if sending html or defined char set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; PHP: