我想发送电子邮件给用户,如果他们做的iOS应用程序的API调用我的Web应用程序。如何使用Slim框架电子邮件功能发送电子邮件?
即http://testurl.com/forgotpassword/[email protected]
在上述网址 - “[email protected]”是用户的电子邮件给谁我想在电子邮件正文中的链接到另一个URL发送电子邮件。例如,http://testurl.com/resetpassword/[email protected]_44646464646
我的Web应用程序使用超薄框架内,我打算定义以下路线:
$app->get('/forgotpassword/:id', function($id) use ($app) {
// from here i want to send email
}
$app->get('/resetpassword/:id/:param', function($id, $param) use ($app) {
// from here i want to update password
}
如何发送使用超薄我的电子邮件?
斯利姆没有什么可以帮助您与电子邮件发送。您可以使用PHP的“邮件”功能或第三方库。电子邮件将在'$ id'变量中可用。 –
好,谢谢.could请你告诉我如何渲染视图与-New密码忘记密码的文件,并确认与纤薄框架验证密码。因为$ app-> get('/ forgotpassword /:id',函数($ id)使用($ app){ 从这里我想发送电子邮件 } 使用上面的代码我必须重定向页面到resetpassword页面$ app - >获取( '/ resetpassword /:ID /:PARAM',函数($ ID,$ PARAM)使用($应用程序){ 从这里我想更新视图文件和邮件功能 密码} – Ohm
它完全使用PHP梅勒。 – Ohm