Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Contact form to send email on form submission?

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
johndoe
Smarty n00b


Joined: 14 May 2019
Posts: 1

PostPosted: Tue May 14, 2019 8:11 am    Post subject: Contact form to send email on form submission? Reply with quote

Hi, I'm new to smarty, need to submit contact form to email. Below is the form, what should be the next step. I already looked at the fetch() method - https://www.smarty.net/docsv2/en/api.fetch.tpl - but not able to understand.
Code:

<form method=post action="">
    <input type=text name=email>
    <input type=text name=phone>
    <input type=submit>
</form>
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1545

PostPosted: Sat May 18, 2019 11:19 am    Post subject: Reply with quote

Smarty is not a programming language, it's a templating system.
It can't send mails. Do that in your PHP code that handles the form submission.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP