メールを送信するための私のphpファイルでは、スマートな構成変数を使用したいのですが、現在はそれらをカットする必要があります
これは PHP ファイルの一部です。
PHP
$messagecontent .= "
<p>bla bla bla bla <b> $username </b> xxxx <b> $myitemname </b>
<p>When you receive xxx go to xxxx</p>
feel free to <a href=".WEBSITEHOST."contact-us.php>contact us </a> at any time.<br />";
現在、次のようにさまざまな smarty 構成変数を作成しています。
$messagecontent .= $smarty->getConfigVariable('welcomemail1'). $username $smarty->getConfigVariable('welcomemail2'). $myitemname." </b>
<p>When you receive xxx go to xxxx</p>
feel free to <a href=".WEBSITEHOST."contact-us.php>contact us </a> at any time.<br />";
どうにかしてすべてを一度に行うことはできますか (smarty 構成ファイルに php vars を含めます)
つまり: $messagecontent =$smarty->getConfigVariable('welcomemail');
そして、{#welcomemail#} はそれらをどのように含めるのでしょうか? 例:welcomemail="??"