我想發送電子郵件給用戶,如果他們做的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