Skip to main content
8 events
when toggle format what by license comment
Aug 26, 2019 at 10:01 comment added romadev So I added the essential "namespace Craft;" at the top and something seems to be different, the following errors are smaller ones. It seems quite complicated to build an easy email service, I hope I will manage alone, but it will take long.
Aug 21, 2019 at 10:13 vote accept romadev
Aug 21, 2019 at 10:13
Aug 20, 2019 at 7:38 comment added romadev Anyone? I know maybe it is not such a contemporary problem with Craft 2, but we will have to solve this problem soon … and I can’t find any hints with searching.
Aug 13, 2019 at 7:24 comment added romadev Thanks! Now the error changes to "Call to undefined function craft()" … About your question: no, no permanent change, but for our two custom plugins I need to change the smtp-from-address to other settings than the global ones, because it needs to go to different recipients.
Aug 13, 2019 at 2:29 comment added Brad Bell Edited the answer to fix your internal server error. Regarding the 2nd part, you want to permanently change the Craft install's email settings programatically? Or just temporarily for this one request?
Aug 13, 2019 at 2:28 history edited Brad Bell CC BY-SA 4.0
added 6 characters in body
Aug 12, 2019 at 8:04 comment added romadev Thanks for writing! In the meantime I have already tried this way, but I get a internal server error «Class 'EmailModel' not found». Regarding the 2nd half of my post: I meant how I could change the global settings with server etc. and its from-address to something defined completely in this code?
Aug 9, 2019 at 21:10 history answered Brad Bell CC BY-SA 4.0