Rules for wearing jewelry.
iOS
Despite the excellent online editor, which we consistently improve and expand on DashaMail, some of our clients prefer to use . Sometimes this is due to the strict rules of the brand book, sometimes due to the legacy left from previous marketers. In any case, we respect this right and try to help our clients make email campaigns adaptive and look great in different contexts. mail clients
- and browsers. After all, as you know, there are many email clients and programs:
- web versions of mailers (Gmail, Yandex, Mail, Yahoo, etc.) desktop programs (Outlook, Mail, Mozilla Thunderbird
- and even Bat) mobile email clients (Iphone, iPad, different versions
Android, etc.) Unfortunately, the developers of all these applications acted inconsistently in best traditions
multiplying standards. Some of these clients, some not, some attributes and styles are supported mobile clients
and are not supported on desktop. Moreover, support for HTML and CSS can vary from version to version of what appears to be the same program. Web versions sometimes simply cut the code or add their own. In order to minimize the consequences of this bacchanalia, we have developed 5 rules
, which should guide you when creating your own html layout.
1. Layout with tables If you want a simple and reliable solution, then tables are the way to go. obvious choice
. It will definitely save you from problems with old email clients. Don't forget about the browsers that open web versions of email clients; some of them may be IE7 or even, God forbid, IE6.
2. Check the universality of attribute support for HTML tags and CSS properties
We, which will allow you to quickly and easily check support for various attributes and properties in the 10 most popular email clients. If you are not sure about something, then do not hesitate and check your assumptions about the correctness of your layout.
3. Forget about block CSS Use of CSS is recommended strictly inline . Of course, this can cause pain when manually generating the html code, so DashaMail suggests using this tool
automatically - immediately after loading the html code in the 2nd step of creating a newsletter.
Many desktop email clients have a maximum message viewing area of approximately 600px, which allows us to fit the letter while leaving small margins. 600 is also a multiple of 1-2-3-4-5-6, which will allow you to implement a normal adaptive multi-column structure without using "shit and sticks". If you divide 600 by 9, you get a lot of sixes. This is basically not applicable in any way, but it’s just cool. In general, as they say, “don’t reflect – spread it.”
5. Media-query is not very cool.
Support for media queries in most email clients is limited; for example, it is stupidly disabled in email Gmail clients, both in the browser and in mobile applications. It is possible to achieve responsiveness without using this CSS component, although it is a little tricky. But I believe in you, my young Padawans.
Using these 5 rules will allow you to create correct html code, universally displayed in all email clients and browsers, which means that all your subscribers will experience the deepest satisfaction from contemplating it in their mailbox.
Let it be so! With love, Dasha.
To organize the transfer of data from an HTML form to a PHP script, you first need to configure the php.ini file:
register_ globals= on // direct access to form fields by name
error_reporting=E_ALL//report all errors
display_ error= on//output errors to the document
error_prepend_string=” ”
//format for errors (opening tag)
error_ append_ string=” font>”
//format for errors (closing tag)
The main rule in connecting an HTML form and a PHP script is to create a variable for each element passed HTML forms. That is, if you have one text field in the form called Text and a Submit button, in the receiving PHP script you no longer need to create a variable for text field and somehow initialize it, since this $Text variable will be automatically created with a value equal to the value entered into the text field.
The form and PHP script can be placed in one document. To do this, you need to specify action=" in action" .
Example:
if (isset($im)) (print $im;)