Note that there are some explanatory texts on larger screens.

plurals
  1. POnice email to users
    text
    copied!<p>when it is to my website send email out to users so send some such bland and grime, so that's how I'd like to like / get some color on the page that is being a little style.</p> <p>I talk with a friend and he says it is possible to style email that you send to users who register on the site. so it is not just such a boring email use get.</p> <p>Hope you understand otherwise you are very welcome to ask me</p> <p>I hope you can help me</p> <p>Can you give me a link or tell what I should do so that I can get a nice email to my users.</p> <pre><code>if ($stmt = $mysqli-&gt;prepare('SELECT NULL FROM `brugere` WHERE `email` = ?')) { $stmt-&gt;bind_param('s', $email); $email = $_POST['email']; $stmt-&gt;execute(); $stmt-&gt;store_result(); $count = $stmt-&gt;num_rows; $stmt-&gt;close(); if ($count &gt; 0) { $user_found = 1; } } if(!isset($user_found)) { if($_POST["password"] != $_POST["gentag"]) { $errors = 1; echo "&lt;li id=\"check_not\"&gt;Skrive ens password p&amp;#229; siden..&lt;/li&gt;"; } if (empty($_POST['password']) &amp;&amp; empty($_POST['gentag'])) { $errors = 1; echo "&lt;li id=\"check_not\"&gt;Skrive et password p&amp;#229; siden..&lt;/li&gt;"; } if(!isset($errors)) { $pb = null; include "class.upload.php"; $handle = new Upload($_FILES['file']); if($handle-&gt;uploaded) { //lidt mere store billeder $handle-&gt;image_resize = true; $handle-&gt;image_ratio_y = true; $handle-&gt;image_x = 220; $handle-&gt;Process("profil/store"); //til profil billede lign.. $handle-&gt;image_resize = true; $handle-&gt;image_ratio_crop = true; $handle-&gt;image_y = 75; $handle-&gt;image_x = 75; $handle-&gt;Process("profil"); $pb = $handle-&gt;file_dst_name; echo "&lt;h2&gt;Tak for du opret dig hos xx.dk&lt;/h2&gt;"; ?&gt; &lt;img src="http://xx.dk/ (...) echo $pb;?&gt;" alt="profilbillede" height="75" width="75"&gt;&lt;br /&gt; &lt;?php echo "&lt;li id=\"check_ok\"&gt;Dit billede blev upload&lt;/li&gt;"; } else { ?&gt; &lt;img src="http://xx.dk/ (...) alt="profilbillede" height="128" width="128"&gt;&lt;br /&gt; &lt;?php echo "&lt;li id=\"check_not\"&gt;Du upload intet billede. Vi har dog valgt et profil billede for dig.&lt;/li&gt;"; $pb = 'bruger_intet.png'; } if ($stmt = $mysqli-&gt;prepare('INSERT INTO `brugere` (`email`, `katogori`, `djnavn`, `profilbillede`, `profiltekst`, `facebook`, `booking`, `password`, `code`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)')) { $stmt-&gt;bind_param('sissssssi', $email, $katogori, $djnavn, $profilbillede, $profiltekst, $facebook, $booking, $password, $code); $email = $_POST['email']; $katogori = $_POST["kategori"]; $djnavn = $_POST["djnavn"]; $profilbillede = $pb; $profiltekst = $_POST["tekst"]; $facebook = $_POST["facebook"]; $booking = $_POST["booking"]; $password = sha1($_POST['password']); $code = rand(111111111,999999999); $stmt-&gt;execute(); $stmt-&gt;close(); $to = $email; // den som skal modtage mailen! $subject = "Hej xx.dk - Godkendt brugere konto"; // sende fra $msg = "Tak for du vil opret dig på xx.dk!. \n \n For at kun activate din konto skal du bare klikke på dette link her: \n \n http://xx.dk/ (...) \n \n Du kan ikke besvar den her email!!"; $header = "from:xx.dk - Godkendt Profil!! &lt;support@xx.dk&gt;"; if(mail($to, $subject, $msg, $header)) { echo "&lt;li id=\"check_ok\"&gt;Tilsendt e-mail til; $to - Tjek email&lt;/li&gt;"; } } else { echo 'Der opstod en fejl i erklæringen: ' . $mysqli-&gt;error; } } } else { echo "&lt;li id=\"check_not\"&gt;Der findes allerede en bruger med denne mail - G&amp;#248;r et fors&amp;#248;g mere &lt;a href=\"http://xxx.dk/ (...) igen...&lt;/a&gt;&lt;/li&gt;"; } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload