-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch Templates #78
Comments
you can use the |
Thanx, found that but am too new to all this to get it to work. Hoping to have a working example to follow. |
Will this work?
If so, how can I confirm the new template was actually created in SparkPost? ...... Rick |
Rest looks good, though I'm not sure about particular logics to detect blog id. |
Trying to get the settings not modify them. How do I get the stored template value? I don't want to create templates I want to validate they exist. How's that done? |
And if you want to validate, if the template really exists in SparkPost, you have to use the API I've linked above. Remember, your API key must have permission to read templates for that. |
Thank you. How can I validate a template exists before trying to use it? If the new template was not created it should assign the stored template id. |
How can I validate a template exists before trying to use it?
|
Missed that, thank you. Well over my head to create, need a php example to modify. Appreciate your prompt and thorough replies. Maybe I can find someone on fiverr willing to do it for me. |
Cool. Glad to know that helped. |
Seems I missed something previously. How is the modified $body with the new template id returned if the stored template id is passed in the function call? |
just return the new template id from the function. |
Thanx a bunch! |
I updated the above example to make it clearer. Thanks |
Like this,
|
Right. But your code now has logical error.
|
Fabulous, you're the BEST! |
Does anyone have any code samples for switching templates based on which blog in a multi-site implementation is sending transactional emails?
Thanx in advance for your thoughts ....... Rick
The text was updated successfully, but these errors were encountered: