Re: [Toledoh] Notice: CMSB v2.16 Beta!
Hi Tim,
Here an example which can help you to understand with my alertAdminLogin plugin.
If you activate option Send & Log, the email will be recorded in the cms__outgoing_mail table.
You must comment the lines for headers array with 'logging' = TRUE, otherwise the email is not sent.
If, you do not wish that the emails be recorded in the cms__outgoing_mail table, you must put 'logging' = FALSE.
In this example, I use the function sendMessage(). But, it would be possible to use the function emailTemplate_load(). I use this function in my AlertRecordSaved plugin. You can perhaps use this example for your try.
Dave modified the function so that it is possible also to use 'logging' = FALSE/TRUE.
Dave recommends to try the function emailTemplate_loadFromDB() which is more comfortable.
I think that Website Membership can help you to understand his use.
Djulia :)