Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
In the past when I wanted to send an email from my app and make it appear to come from the Umbraco site I did this:
System.Net.Mail.MailMessage m = new MailMessage();
m.From = new MailAddress(umbraco.UmbracoSettings.NotificationEmailSender);
But now, with Umbraco 7.1.0, I get the following message:
"Warning: umbraco.UmbracoSettings is obsolete.
Use UmbracoConfiguration.Current.UmbracoSettings instead,
it offers all settings in strongly typed formats. This class
will be removed in future versions."
However, searching the 7.1.0 source solution I cannot find UmbracoConfiguration. And googling it I cannot find any information about it or about how to read umbraco configuration in general.
Can anyone point me in the right direction?
Hmm, did you have a look at the 7.1.3 branch to see if it perhaps exists there?
@Jan ... I searched the 7.1.3 solution and didn't find an UmbracoConfiguration class. I did find a reference to it in Umbraco.Web\umbraco.presentation\umbraco\controls\ContentTypeControlNew.ascx.cs ... line 433, which is commented out, is:
&& UmbracoConfiguration.Current.UmbracoSettings.Content.IconPickerBehaviour == IconPickerBehaviour.HideFileDuplicates
I uncommented the lines and Visual Studio gave me this warning:
The name "UmbracoConfiguration" does not exist in the current context.
So I guess it's something that is coming in a future release. Maybe someone jumped the gun by marking umbraco.UmbracoSettings as obsolete?
Yeah sure could seem like it.
I suppose the old method still works but just gives you the "obsolete" warning then?
Old topic but hit the same thing earlier today.
It looks like the way to retrieve this now is via:
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted