Email Form

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
1/2/2009 11:32:21 PM
Gravatar
Total Posts 41

Email Form

I am finally taking the Mojo plunge.  Being a senior level .net developer, I can do what I need to do in the code... but I don't want to have to create new code where it already exists.

What I am wanting is an email form that will submit emails to email addresses based on the URL (friendly URL or QueryString).

1. Is there a built in way to do this?

2. Is there a solution already available to do this?

3. Is it as simple as developing a user control and plugging it into a page?

Thanks!

Clarence Klopfstein
http://www.ocdprogrammer.com

1/3/2009 7:18:17 AM
Gravatar
Total Posts 18439

Re: Email Form

Hi Clarence,

There is a Contact Form feature included that can be configured to send mail to an email address and it also has a db and ui for viewing messages in case delivery fails. It does not do anything based on the url, but you can add as many instances of the form to as many pages as you like and each has its own instance settings for the receiving email address.

Yes, you can simply create a UserControl as described in our Hello World article. Optionally and perhaps ideally, your UserControl will inherit from SiteModuleControl to get some built in infrastructure you can use like ModuleSettings. The existing Contact Form and most features store their instance specific settings in Module Settings.

For complex features I recommend read this overview. There is quite a bit of information that may be helpful in the Developer Docs section.

Best,

Joe

 

1/3/2009 2:58:53 PM
Gravatar
Total Posts 41

Re: Email Form

Is there a way to turn off the db save option of the emails?  As the site I am developing will be updated by one sole person, but that person shouldn't be able to see all submitted emails.

1/3/2009 3:05:32 PM
Gravatar
Total Posts 18439

Re: Email Form

There is not a built in way to turn that off, but if using MS SQL there is a hacky way to do it fairly easy by editing the insert procedure so it doesn't do an insert.

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.