Why php is sending email from localhost not from server using PHPMailer?

后端 未结 2 1248
终归单人心
终归单人心 2021-01-26 12:15

I am using PHPMailer with SMTP to send email. First I just test it from my localhost and it\'s successfully sent email.

But when I upload the same code to my service it

2条回答
  •  隐瞒了意图╮
    2021-01-26 12:43

    Some servers have certain functions disable that a user cannot enable them selves. Check with your hosting provider to see if they have the mail() function enabled.

    In this case smtp mail function perfectly working in localhost but not in server.. soo you change the server setting

提交回复
热议问题