Send email from a post - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Model-View-Controller (https://forum.codeigniter.com/forumdisplay.php?fid=10) +--- Thread: Send email from a post (/showthread.php?tid=68992) |
Send email from a post - Marcolino92 - 09-25-2017 Hi guys, I would like that in the specific post posted by a user, the visitor interested in the ad could contact him by email. Just that I want everything to be on the same page, I do not want a page to send mail, but in the same post. https://www.codeigniter.com/user_guide/libraries/email.html#using-the-email-library PHP Code: public function view($id = null) { This is the View function in the controller, what should I do? RE: Send email from a post - InsiteFX - 09-26-2017 Then you would need to add the user etc to a database and send it later. RE: Send email from a post - ciadvantage - 09-27-2017 In your 'items/view', you can embed a snippet html for the required form. Just use the ajax post to submit the user data such as Code: //js snippet to submit form Just quick suggestion, and you can adapt to your use with some modification to suit Good luck |