PHP mail not working

https://musafir.cf

Hello,

I am working on a support system for one of my websites.

I am noticing that PHP’s mail() function does not work when attempting to send an email. Can this be fixed? Thanks.

Hi and welcome to the forum

P.S. you can enable debugging in phpmailer (if needed)

4 Likes

@unmusafir

and PATH is not valid for you either

because your form is here https://musafir.cf/p/contact_us (that dir “/p/”)

and button send message wants to give all parameters
here https://musafir.cf/p/inc/sendemail.php (error 404)

but your sendemail.php is actually here https://musafir.cf/inc/sendemail.php (no extra dir “p”)


but you should definitely use a FORM from our template above that has a reCAPTCHA and does additional checking to see if everything needed is typed on all fields (less spam in your inbox)

https://musafir.cf/mailer.php

I am using PHPMailer on this page but it just gives 502 error

1 Like

have you tried this one from this location

1 Like

Thanks, man. I have installed the InfinityFree contact form and it has solved my problem Thanks once again.

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.