Steps for InfoPath 2010:
- Publish like normal and run your form to send you an email
- Open the email and view its source (in Outlook, you have to double-click and open the actual email and THEN you can right-click and then click 'View Source')
- Scroll to the bottom and you will see something like this:
<div style="word-wrap:break-word;color:windowtext;background:window;font-size:10.0pt;font-family:Tahoma" class="GOBBLEDEEGOOK">[Submitted by USERNAME@DOMAIN.COM] <br><hr></div>
- Note the 'class=' there...grab your GOBBLEDEEGOOK and copy it (without the quotations)
- Go back to your infopath form and publish as source files into a folder on your desktop
- Close InfoPath
- Open up the folder on your desktop and right-click on the InfoPath view that you are emailing (it will be the name of your view.xsl) in notepad or, preferably, in notepad++
- Add the following directly before the "</head>":
<style>.GOBBLEDEEGOOK{DISPLAY:none !important;VISIBILITY:hidden !important}</style>
(Just be sure you replace GOBBLEDEEGOOK with whatever your GOBBLEDEEGOOK was). Mine looked like this:
<style>.D38B7128-85A9-4481-A264-D05E46BC1B50{ DISPLAY:none !important; VISIBILITY:hidden !important;}</style>
- Close notepad/notepad++
- Go back into the folder on your desktop and right-click on manifest.xsf and click 'Design'
- Publish your form like normal
- Run a test to see if it hides that dumb 'submitted by' on that particular view/email.