Ben html e-posta tasarlıyorum, bu i $ şablon değişkende saklayabilirsiniz html içeren değişken bir blok olmak için vardır.
Benim sorunum değişken kısmında depolama ile birlikte geliyor. php içine bütün html koyarak onunla çalışmak için serseri bir ağrı yapar.
Örneğin, aşağıdaki kod basit bir e-posta için gayet iyi ama iç içe geçmiş tablolar vb onun gerçekten kafa karıştırıcı almak için gidiyoruz almaya başladıktan sonra ...
$template.= 'Welcome ' . $username . '<br /><br /><br />';
$template.= 'Thank-you for creating an account <br /><br />';
$template.= 'Please confirm your account by click the link below! <br /><br />';
$template.= '<a href="' . $sitepath . '?email=' . $email . '&conf_key=' . $key . '" style="color: #03110A;"><font size="5" font-family="Verdana, Geneva, sans-serif" color="#03110A">' . $key . '</font></a>';
$template.='</body></html>';
is there a way i can still store the html in a $var but not have to write it like this?