What to include in email headers, using php mail()? -
When I want to send an email, my code looks like this:
$ Headers = 'mime-version: 1.0' "\ r \ n"; $ Headers = 'Content-type: text / html; Charset = ISO-885 9-1 '"\ r \ n"; $ Headers = 'To: me @ localhost' "\ r \ n"; // email variable $ toUser = 'you @ something'; $ Theme = "test"; $ Body = '& lt; Html & gt; & Lt; Principal & gt; & Lt; Title & gt; & Lt; / Heading & gt; & Lt; / Head & gt; & Lt; Body & gt; This is my picture & lt; Img src = "http://domain.com/me.jpg" & gt; '; If (mail ($ toUser, $ subject, $ body, $ headers)) {"e-mail sent" echo; } These are my questions:
- Send me the
& lt; Html>, & lt; Head>, & lt; Title & gt; .Tags? - Can I use stylesheets? For example,
& lt; Div style = "..." & gt;? - I have sent an email to many accounts, if I
& lt; Img & gt;tag (for the image included in it), it goes to junk mails, but if only plain text goes to the inbox then anyone knows why it is? And how to solve it?
You can send your e-mail to multilingual a Text / plain also with part.
This will read it only to those with a text mail mail client, and will count with any spam in your favor.
Comments
Post a Comment