Create email templates that can contain parameters
P粉575055974
P粉575055974 2023-09-03 17:25:22
0
1
407

I want users to be able to create their own templates to send emails and looking for a way to add their own parameters that I can capture and add the actual values from the database.

I am using Simiditor to edit text

(https://i.stack.imgur.com/w0JE3.png)](https://i.stack.imgur.com/w0JE3.png)

No good solution has been found yet

P粉575055974
P粉575055974

reply all (1)
P粉517090748

If I understand correctly, you want to allow the user to edit the text template using the following parameters

{clientName} {selectedVonderName}

Then add the actual value in the database (such as mysql data)

In this case, use str_replace to do the job

For example, if you get data from mysql database data and then assign the data as$clientNameand$selectedVonderName, then

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!