How can we use multiple contact us form just like in the blog example in a single yii application. i.e. when someone contact us with the form then an email should be send to the Email that we specified in the config file.
But I want to use multiple contact us form with different email addresses.
Make it a widget and set the mail to address in the widget not in the main config. You can use extensions like this for example http://www.yiiframework.com/extension/yiimailer/ that allow you to set the send to address in the view or in your case the widget. Look up here how to do a widget…there is plenty of documentation for you to execute this task on the yii site.
Actually I have 3 types of contact us pages. i.e Contact with Admin, contact with Director, Contact with Producer. and and every page have a contact form through which we can contact with the concern person i.e. Director, Admin, Producer. and I want that when the contact us form is filled then this data should be sent the concern person’s email address.