Contact Form Destination Email Address Missing

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
2/21/2011 3:35:57 AM
Gravatar
Total Posts 44

Contact Form Destination Email Address Missing

Hi,

Like people before me (thankfully or I would not have found the answer), I forgot to add a destination email address to the feature instance of my contact form, I had assumed that the sendto email address was taken from the web.config.  I stepped through the source and discovered that the config email list was empty in the email send function, this did not raise an error nor was it noted in the log file.

My request is for an entry to be written in the log file to say that their is no sendto email address for the feature instance and for the email thank you text to be changed to the log entry text.

mojoPortal is GREAT.

 

Vince.

2/21/2011 11:17:01 AM
Gravatar
Total Posts 18439

Re: Contact Form Destination Email Address Missing

Hi Vince,

It is not a bug nor an error so it doesn't seem like it needs to be logged, nor does the user who submits the form need to be concerned about it, so there is no reason to say anything except thank you to the user who submits the form.

Submitted messages are stored in the database and it is not mandatory to enable notification, one could just check the messages by clicking the "View Messages" link periodically. While most mojoPortal users will probably want to enable notification, it is not a required setting, the form can work just fine without it. If you do want notifications it is easy to configure, but the contact form does not depend on it.

Best,

Joe

2/21/2011 12:49:02 PM
Gravatar
Total Posts 44

Re: Contact Form Destination Email Address Missing

Hi Joe,

Thanks as always for your prompt response.

I think perhaps I didn't explain the situation very well, my point was that I forget to add a "Email Address(es) To Receive Submissions" in the contact form and the email send function ignored that fact and displayed the "Thank You" message, even though no email had been sent. When I viewed the "View Messages", it was not unexpectedly empty.

 I appreciated that I should have realised that I hadn't added a submission email address, but it would have been a lot easier to diagnose if I had received a little reminder :)

Best Regards,

Vince.

2/21/2011 1:05:25 PM
Gravatar
Total Posts 18439

Re: Contact Form Destination Email Address Missing

Hi Vince,

I understood you. The only thing I did not realize is that the Thank you message said "Thank You! Your message has been sent." I am changing that to say "Thank You! Your message has been received." so that it does not imply that an email has been sent but only implies that the form submission has been received. I guess that message made you think it was an error but it was not. The Contact Form can work fine even without an email address, so the user who submits the form need not be concerned about whether notification is enabled or not.

If the email notification address is left blank the contact form does not try to send an email, but it still says thank you because it captured the form submission.

I will add an INFO level logging so that if the notification address is not configured it will log this:

"contact form submission received but not sending email because notification email address is not configured."

Best,

Joe

2/21/2011 1:14:02 PM
Gravatar
Total Posts 44

Re: Contact Form Destination Email Address Missing

Thanks Joe.

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