Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
amprog_03_ex1 [2017-09-19 15:56]
Anders Mosshäll
amprog_03_ex1 [2017-09-19 15:57] (current)
Anders Mosshäll
Line 22: Line 22:
       ​       ​
         // Skicka mail:         // Skicka mail:
-        $mail_to = 'anders.mosshall@ornskoldsvik.se';+        $mail_to = 'example@example.com';
         $subject = 'Du har fått inlägg';​         $subject = 'Du har fått inlägg';​
-        ​$subject = "​=?​utf-8?​Q?"​.rawurlencode($subject )."?​=";​ +        $message = $_POST['​text'​];​
-        $subject = str_replace("​%",​ "​=",​ $subject);​ +
-        ​$message = $_POST['​text'​]."​\n\n"​;+
         ​         ​
         mail($mail_to,​$subject,​$message);​         mail($mail_to,​$subject,​$message);​