umbraco v 4.0.3 (Assembly version: 1.0.3625.27276)
I have changed the smtp settings in the web.config and the "subject" and "your email" fields in the contact form macro.
I have saved and published everything as well.
When I fill out the form and press the "send email" button it posts and changes the button to a green color and says "Email Send". It does not actually send any email out.
If I created a standard asp.net 2.0 website and copy the web.config info and use the same subject and your email information in the click event of a button it sends the email with no problem.
whenever I'm developing an app that requires email sending, i use this config to avoid having to send real email msg and still be able to verify whether an mail has actually been sent:
If the mail gets delivered in local C:\MailFolder folder, then business logic of app is ok and you'll have to start checking whether your server is setup correctly, whether email don't get blocked somewhere (spam filters, firewalls, whatever...)
I have tried as you suggested and the results when submitting the for are the same (the form posts back and the "send email" button turns into a green label stating "Email send").
I don't get an error anywhere. When checking "C:\MailFolder" it remains empty.
Probably won't help you, but can you check the umbracoLog table and see if that reveals anything? Sounds odd that mails don't get sent out, even with the specified config.
I may check v403 in combo with CWS tonight, see if I can repro this behaviour!
Good call on looking at the umbracoLog table. Sure enough there was an exception there. I was complaining about a malformed subject line. I selected the form and edited the macro parameters and there was an \r\n in there before the word 'form' which I removed. I saved and tested with the same results as before. I then when back into edit mode and selected all visible text and deleted it, then added a new subject line. This did the trick, it is working now. That is very strange it did this on two separate installations (one on my test server and one at my hosting provider) and nothing was copied between them.
The umbracoLog is a table in your umbraco database. You'll need to have access to the database (MS SQL Server Management Studio, for instance) and then you can open your database, expand the tables to find the umbracoLog table, and then display the entries with a quick query (such as, select * from umbracoLog)
You could also use Umbraco Concierge, Client Tools for Umbraco, LogViewer, or a few other packages (both paid and free) to see the contents of the log table if you don't have access to the database directly.
Runway Contact form not emailing as expected
umbraco v 4.0.3 (Assembly version: 1.0.3625.27276)
I have changed the smtp settings in the web.config and the "subject" and "your email" fields in the contact form macro.
I have saved and published everything as well.
When I fill out the form and press the "send email" button it posts and changes the button to a green color and says "Email Send". It does not actually send any email out.
If I created a standard asp.net 2.0 website and copy the web.config info and use the same subject and your email information in the click event of a button it sends the email with no problem.
Anyone have any suggestions to try?
Jamy
Jamy,
whenever I'm developing an app that requires email sending, i use this config to avoid having to send real email msg and still be able to verify whether an mail has actually been sent:
If the mail gets delivered in local C:\MailFolder folder, then business logic of app is ok and you'll have to start checking whether your server is setup correctly, whether email don't get blocked somewhere (spam filters, firewalls, whatever...)
Cheers,
/Dirk
Dirk,
Thank you I will try this now and get back to you.
I did not know you could do this. This is a great tip.
Jamy
Dirk,
I have tried as you suggested and the results when submitting the for are the same (the form posts back and the "send email" button turns into a green label stating "Email send").
I don't get an error anywhere. When checking "C:\MailFolder" it remains empty.
Jamy
Probably won't help you, but can you check the umbracoLog table and see if that reveals anything? Sounds odd that mails don't get sent out, even with the specified config.
I may check v403 in combo with CWS tonight, see if I can repro this behaviour!
Cheers,
/Dirk
Dirk,
Good call on looking at the umbracoLog table. Sure enough there was an exception there. I was complaining about a malformed subject line. I selected the form and edited the macro parameters and there was an \r\n in there before the word 'form' which I removed. I saved and tested with the same results as before. I then when back into edit mode and selected all visible text and deleted it, then added a new subject line. This did the trick, it is working now. That is very strange it did this on two separate installations (one on my test server and one at my hosting provider) and nothing was copied between them.
Thanks for your helpful tips.
Jamy
I have a problem where only the text entered in the textarea field is registered in the mail sent to C:\MailFolder
I want to have a look at this umbracoLog, but how to do that?
I'm such a newb :(
Anyone? :(
The umbracoLog is a table in your umbraco database. You'll need to have access to the database (MS SQL Server Management Studio, for instance) and then you can open your database, expand the tables to find the umbracoLog table, and then display the entries with a quick query (such as, select * from umbracoLog)
You could also use Umbraco Concierge, Client Tools for Umbraco, LogViewer, or a few other packages (both paid and free) to see the contents of the log table if you don't have access to the database directly.
cheers,
doug.
Hi Douglas
Thanks for your reply. I'll have a look into it
is working on a reply...