Note that there are some explanatory texts on larger screens.

plurals
  1. POunwanted "!" marks in php html emails
    primarykey
    data
    text
    <p>I use php default mail function to send html e-mails. My code: </p> <pre><code>//SENDMAIL // multiple recipients $to = ''. $email .'' . ', '; // note the comma $to .= 'adress@domain.com'; // subject $subject = 'subject'; // message $message = ' &lt;html&gt; &lt;head&gt; &lt;title&gt;Email&lt;/title&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=windows-1257"&gt; &lt;style type="text/css"&gt; body,td,th { font-family: Verdana; font-size: 12px; } &lt;/style&gt; &lt;/head&gt; &lt;body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"&gt; html table data ...... in html syntax '; if(($b1 == "true" || $b2 == "true" || $b3 == "true" || $b4 == "true" || $b5 == "true" || $b6 == "true" || $b7 == "true" || $b8 == "true" || $b9 == "true" || $b10 == "true" || $b11 == "true" || $b12 == "true" || $b13 == "true" || $b14 == "true" || $b15 == "true" || $b16 == "true") &amp;&amp; $enb == "true") { $message .= 'link1&lt;br&gt; '; } if(($b1 == "true" || $b2 == "true" || $b3 == "true" || $b4 == "true" || $b5 == "true" || $b6 == "true" || $b7 == "true" || $b8 == "true" || $b9 == "true" || $b10 == "true" || $b11 == "true" || $b12 == "true" || $b13 == "true" || $b14 == "true" || $b15 == "true" || $b16 == "true") &amp;&amp; $nlb == "true") { $message .= 'link2&lt;br&gt; '; } $message .='html body continued in html syntax $message .= '&lt;/html&gt;'; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n"; // Additional headers $headers .= 'To: ' . "\r\n"; $headers .= 'From: Sender &lt;no-reply@domain.com&gt;' . "\r\n"; $headers .= 'Cc: ' . "\r\n"; $headers .= 'Bcc: ' . "\r\n"; // Mail it mail($to, $subject, $message, $headers); </code></pre> <p>When the message is sent sometimes, not always there appears mystical ! marks in the middle of text. For instance : "thank you f!or your email" or "Ki!d regards," and cetra. It appears to be no pattern in this, so I wanted to ask, if this is a common mistake in php mail, and how to overcome it?</p> <p>Thanks!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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