I am having some trouble with the send mail feature of the Form Module. Is it possible to see the content of the mail being sent to the SMTP server - specifically, the header information?
I am able to access the XML content of a submitted form in the database, but I would like to see the actual email, and in particular, the From address. I cannot access the SMTP server log as I am running on a shared hosting provider.
The problem is this:
When I submit the form, I get the error message that it was unable to send the email; please try again later. In the DNN Event Log I've determined the error to me from the SMTP server, "Mailbox unavailable. The server response was: sorry, no mailbox here by that name (#5.1.1)". This error occurs on my domain if the From address does not exist at the domain. In other words, I cannot use the Form Module feature that sends the email "From" the email address entered on the form - I need to use an email address that I own. That made sense when I first tried it, because the form settings were indeed to use the email address (F) field on the form. However, I have since changed the form settings to use Host as the From address, and verified that the Host email address in Host settings is correct - and I have tested the SMTP connection successfully using that Host email - but I am still getting the 5.1.1 error sending the form. I tried refreshing, opening a new browser, restarting the application, all to no avail.
If I can see the mail item being sent to the SMTP server, I could troubleshoot and narrow down the possibilities. These possilibities could include:
- There is a problem with my host's SMTP server;
- The mail is sent from the host address but in a form that confuses the SMTP server;
- The mail is still being sent from the email address on the form, because of some caching problem;
- The mail is still being sent from the email address on the form or some other address, because of an issue in the module;
- Who knows.
Is there a way to log the SMTP request in the database, or can I set some debugging or have a way to report the email to screen instead of sending the mail?
Any help or advice would be greatly appreciated.
thanks - gosens