-
Notifications
You must be signed in to change notification settings - Fork 14
Need help configuring emails #72
Comments
The folder macroscripts/uwebshopbackend contains an example (maybe from the demostore, not sure) [dutchbreeze logo] dutchbreeze b.v. Adres : Demmersweg 92 7556 BN Hengelo Telefoon : 053 - 8200 830 Internet : www.dutchbreeze.nlhttp://www.dutchbreeze.nl From: Jeroen [mailto:[email protected]] It is unclear to me how I should configure the emails and create the emails that I need. What I need to know is how i create my own razor syntax email and how I attach this to a email in the shop. I would like a step by step guide. This is holding me back from going into production with the webshop and I need this resolved. So help would be appreciated. — |
Hmm i thought that issue xxx was fixed but today I have the same problem again. I'm getting null back from StoreAPI.GetEmailTemplates. public IEnumerable<string> GetEmailTemplates()
{
var files = Directory.GetFiles(IOHelper.MapPath(SystemDirectories.Xslt), "*.xslt", SearchOption.AllDirectories).Select(file => file.Replace(IOHelper.MapPath(SystemDirectories.Xslt) + @"\", string.Empty)).ToList();
files.AddRange(Directory.GetFiles(IOHelper.MapPath(SystemDirectories.MacroScripts), "*.cshtml", SearchOption.AllDirectories).Select(file => file.Replace(IOHelper.MapPath(SystemDirectories.MacroScripts) + @"\", string.Empty)));
if (IO.Container.Resolve<ICMSApplication>().IsBackendUserAuthenticated)
{
return files.Where(x => x.ToLowerInvariant().Contains("email") || x.ToLowerInvariant().Contains("mail"));
}
return null;
} This piece of code returns null. So either it cannot find any files with the word The MacroScripts folder has the uWebshopBackend subfolder folder in it.
It also has .cshtml files in the uWebshopBackend folder with these files:
I've tried throwing away my cookies, clearing the cache, clean and rebuild of project, adding a I had these default .cshtml and .xls templates in the dropdown just before the weekend, now after I started running the application just like before from Visual Studio 2013 it fails to load these files. How can I debug this? |
If you see null in backend email combo possibly lecagy control mapping is the failure. Check your log first if this is actually the code that returns null. [dutchbreeze logo] dutchbreeze b.v. Adres : M.H. Tromplaan 23x-apple-data-detectors://0 7513 AB Enschedex-apple-data-detectors://0 Telefoon : 053 - 8200 830tel:053%20-%208200%20830 Fax : 053 - 8200 864tel:053%20-%208200%20864 Internet : www.dutchbreeze.nlhttp://www.dutchbreeze.nl/ Op 2 nov. 2015 om 20:48 heeft Jeroen <[email protected]mailto:[email protected]> het volgende geschreven: Hmm i thought that issue xxx was fixed but today I have the same problem again. I'm getting null back from StoreAPI.GetEmailTemplates.
This piece of code returns null. So either it cannot find any files with the word email or mail or it says that i;m not authorized. The MacroScripts folder has the uWebshopBackend subfolder folder in it. ????MacroScripts It also has .cshtml files in the uWebshopBackend folder with these files:
Mode LastWriteTime Length Name -a---- 14-Oct-15 9:41 AM 3688 uWebshopUmbracoEmailDetails.cshtml I've tried throwing away my cookies, clearing the cache, clean and rebuild of project, adding a TestEmailmail.cshtml to the MacroScripts backend. This all keeps returning null. I am logged in an have all the permissions (administrator). I had these default .cshtml and .xls templates in the dropdown just before the weekend, now after I started running the application just like before from Visual Studio 2013 it fails to load these files. How can I debug this? Reply to this email directly or view it on GitHubhttps://github.com//issues/72#issuecomment-153137583. |
Thank you for you answer.
And I have one entry of this:
I don't see other errors about 'lecagy control mapping' or an exception from the getEmailTemplate action.. |
Ok, forget the legacy issue. Just my best wild guess. [dutchbreeze logo] dutchbreeze b.v. Adres : M.H. Tromplaan 23x-apple-data-detectors://0 7513 AB Enschedex-apple-data-detectors://0 Telefoon : 053 - 8200 830tel:053%20-%208200%20830 Fax : 053 - 8200 864tel:053%20-%208200%20864 Internet : www.dutchbreeze.nlhttp://www.dutchbreeze.nl/ Op 2 nov. 2015 om 21:09 heeft Jeroen <[email protected]mailto:[email protected]> het volgende geschreven: Thank you for you answer. 2015-11-02 20:53:36,246 [P16028/D2/T1] WARN Umbraco.Core.Sync.DatabaseServerMessenger - No last synced Id found, this generally means this is a new server/install. The server will rebuild its caches and indexes and then adjust it's last synced id to the latest found in the database and will start maintaining cache updates based on that id And I have one entry of this: 2015-11-02 20:42:26,438 [P13820/D2/T9] ERROR Umbraco.Web.WebApi.Filters.AngularAntiForgeryHelper - Could not validate XSRF token I don't see other errors about 'lecagy control mapping' or an exception from the getEmailTemplate action.. Reply to this email directly or view it on GitHubhttps://github.com//issues/72#issuecomment-153142696. |
I did not reinstall anything since i've used it for the last time. Also i'm not running in a farm and the xsrf token was only once reported in the log, i've requested the email templates multiple times before and after that log entry. |
So it does work locally? Did you check that all dll's are present serverside and same versioned? Maybe due to updates that didnt get deployed? [dutchbreeze logo] dutchbreeze b.v. Adres : M.H. Tromplaan 23x-apple-data-detectors://0 7513 AB Enschedex-apple-data-detectors://0 Telefoon : 053 - 8200 830tel:053%20-%208200%20830 Fax : 053 - 8200 864tel:053%20-%208200%20864 Internet : www.dutchbreeze.nlhttp://www.dutchbreeze.nl/ Op 2 nov. 2015 om 21:31 heeft Jeroen <[email protected]mailto:[email protected]> het volgende geschreven: I did not reinstall anything since i've used it for the last time. Reply to this email directly or view it on GitHubhttps://github.com//issues/72#issuecomment-153147885. |
I'm sorry for the confusion. Last friday it worked in my dev environment but i saw some templates disappearing last friday it was weird to me at the time but I stopped looking into it due to lack of time. Today it started to show null in the dropdown menu.. |
I think something is wrong with the database. I'm also not able to store my user information when I try to update my profile:
I'm going to try and reinstall, are there tips for using localdb in the correct way with umbraco? |
Ok... after I reinstalled Umbraco in an empty visual studio web project (by installing via When i look at the log i still see the
So something is still going wrong with the claim. I've installed umbraco 7.2.6 in a new project and installed the uWebshop and it works. I get email templates now, even the ones that I create myself. Now the functions of the emails make sense to me again. @dutchbreeze thanks for your help with debugging. I'm not sure if the error should be fixed at uWebshop of at Umbraco.. Care to weigh in? |
It is unclear to me how I should configure the emails and create the emails that I need.
I've seen the documentation and the 'Guide' but it is very short and I need more help.
What I need to know is how i create my own razor syntax email and how I attach this to a email in the shop. I would like a step by step guide.
This is holding me back from going into production with the webshop and I need this resolved.
So help would be appreciated.
The text was updated successfully, but these errors were encountered: