@mail not sending mail in php

后端 未结 5 1374
你的背包
你的背包 2020-12-17 08:00

This is the first time I am using the mail function. I tried to send a mail using this and the code tells me it\'s \"successfully sent\", but I didn\'t receive any mail. I\'

5条回答
  •  抹茶落季
    2020-12-17 08:58

    Some hosting requires the extra parameter for mail. It could possibly be that.

        $ffrom = '-fmary@yahoo.com';
        if(@mail($email_to, $email_subject, $email_message, $headers, $ffrom));
    

    It's not very common, but I have had to deal with it, and it took me ages to diagnose, so thought I would share it just in case.

提交回复
热议问题