Global override email address

Is there a way to set a 'global' override email address? One that overrides the "to" address for ALL emails sent from any built in EPiServer email functionality (like those set in xForms etc).
Nov 28, 2007 7:54
There is no global way to do this in episerver becuase it's .NET code and you're free to use the Mail class from anywhere. The best way to globally force this would be to make some kind of change in the maildeamon. However, if you're a developer (you're in the developer to developer forum!), you should know how to use a setting in web.config. Make sure all your code send emails using that key. For XForms you can modify the XForms unit with the following code: // Hook event FormControl.BeforeSubmitPostedData += new SaveFormDataEventHandler(FormControl_BeforeSubmitPostedData); void FormControl_BeforeSubmitPostedData(object sender, SaveFormDataEventArgs e) { e.FormData.MailFrom = ""; } Not that i havn't actually tried this code, but the sdk states that MailFrom is get/set, so this should do the trick for you. Peace! // Björn Sållarp Avantime AB
Nov 29, 2007 9:38
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.