php mail on MAMP

后端 未结 6 1948
栀梦
栀梦 2020-12-10 11:23

I need to test some script using PHP\'s mail. I\'d like to be able to finally get this working locally. I am using MAMP. Is there a way to do this without installing any thi

6条回答
  •  情书的邮戳
    2020-12-10 12:30

    You could use your gmail account and send your test emails via gmail's SMTP server.

    You can use the phpmailer class (http://phpmailer.worxware.com/) to do this. There is a basic gmail example in the examples/ folder when you download this class.

提交回复
热议问题