IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Conception Web Discussion :

Image arrière plan dans mail de confirmation


Sujet :

Conception Web

  1. #1
    Nouveau membre du Club
    Homme Profil pro
    Inscrit en
    Septembre 2011
    Messages
    52
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Septembre 2011
    Messages : 52
    Points : 29
    Points
    29
    Par défaut Image arrière plan dans mail de confirmation
    Bonjour
    je voulais intégré une image en fond dans un mail comme je l'ai souvent vue.
    quand je suis en local ou sur le net tout vas bien mais quand c'est envoyer en mail plus d'image de fond quelle qu'un aurais une idée ?

    voici le code

    merci pour vos réponses

    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
     <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
    <html>
    	<head>
    		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    		<title>Message de {shop_name}</title>
     
     
    		<style> @media only screen and (max-width: 300px){ 
                                    body {
                                            width:218px !important;
                                            margin:auto !important;
                                    }
                                    .table {width:195px !important;margin:auto !important;}
                                    .logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto !important;display: block !important;}          
                                    span.title{font-size:20px !important;line-height: 23px !important}
                                    span.subtitle{font-size: 14px !important;line-height: 18px !important;padding-top:10px !important;display:block !important;}            
                                    td.box p{font-size: 12px !important;font-weight: bold !important;}
                                    .table-recap table, .table-recap thead, .table-recap tbody, .table-recap th, .table-recap td, .table-recap tr { 
                                            display: block !important; 
                                    }
                                    .table-recap{width: 200px!important;}
                                    .table-recap tr td, .conf_body td{text-align:center !important;}        
                                    .address{display: block !important;margin-bottom: 10px !important;}
                                    .space_address{display: none !important;}       
                            }
            @media only screen and (min-width: 301px) and (max-width: 500px) { 
                                    body {width:308px!important;margin:auto!important;}
                                    .table {width:285px!important;margin:auto!important;}   
                                    .logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}    
                                    .table-recap table, .table-recap thead, .table-recap tbody, .table-recap th, .table-recap td, .table-recap tr { 
                                            display: block !important; 
                                    }
                                    .table-recap{width: 295px !important;}
                                    .table-recap tr td, .conf_body td{text-align:center !important;}
                                    
                            }
            @media only screen and (min-width: 501px) and (max-width: 768px) {
                                    body {width:478px!important;margin:auto!important;}
                                    .table {width:450px!important;margin:auto!important;}   
                                    .logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}                    
                            }
            @media only screen and (max-device-width: 480px) { 
                                    body {width:308px!important;margin:auto!important;}
                                    .table {width:285px;margin:auto!important;}     
                                    .logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
                                    
                                    .table-recap{width: 295px!important;}
                                    .table-recap tr td, .conf_body td{text-align:center!important;} 
                                    .address{display: block !important;margin-bottom: 10px !important;}
                                    .space_address{display: none !important;}       
                            }
    body {
     
     
    background-color: #fece1a;
    @include filter-gradient(#fece1a, #5b5b5b, vertical);
    @include background-image(linear-gradient(top,  #fece1a 9%,#5b5b5b 39%));
     
     
    }
                                            .font {
    color:black;
    background-color:#fece1a;
    background-image:url(http://www.unprecieux.fr/images/mail.jpg);
    }
     
    .box{
     
    padding:8px 0
     
    }
     
    </style>
     
    	</head>
    	<body style="background-color: #fece1a; -webkit-text-size-adjust:none;width:650px;font-family:Open-sans, sans-serif;color:#555454;font-size:13px;line-height:18px;margin:auto">
    		<table class="table table-mail"
    		style="width:100%;margin-top:10px;
                    -moz-box-shadow:0 0 5px #afafaf;
                    -webkit-box-shadow:0 0 5px #afafaf;
                    -o-box-shadow:0 0 5px #afafaf;
                    box-shadow:0 0 5px #afafaf;
                    filter:progid:DXImageTransform.Microsoft.Shadow(color=#afafaf,Direction=134,Strength=5)">
     
    		<tr>
    		<td class="space" style="width:20px;padding:7px 0">&nbsp;</td>
    				<td align="center" style="padding:7px 0">
    					<div class="font">
    					<table class="table"  style="width:100%">
    						<tr>
    							<td align="center" class="logo" style="border-bottom:2px solid #333333;padding:7px 0">
    								<a title="{shop_name}" href="{shop_url}" style="color:#337ff1">
    									<img src="{shop_logo}" alt="{shop_name}" />
    								</a>
    							</td>
    						</tr>
     
    <tr>
    	<td align="center" class="titleblock" style="padding:7px 0">
    		<font size="2" face="Open-sans, sans-serif" color="#000">
    			<span class="title" style="font-weight:500;font-size:28px;text-transform:uppercase;line-height:33px">Bonjour {firstname} {lastname},</span><br/>
    			<span class="subtitle" style="font-weight:500;font-size:16px;text-transform:uppercase;line-height:25px">Merci d'avoir créé votre compte client sur {shop_name}.</span>
    		</font>
    	</td>
    </tr>
    <tr>
    	<td class="space_footer" style="padding:0!important">&nbsp;</td>
    </tr>
    <tr>
    	<td class="box padding:8px 0" >
    		<table class="table" style="width:100%">
    			<tr>
    				<td width="10" style="padding:7px 0">&nbsp;</td>
    				<td style="padding:7px 0">
    					<div class="boxfont">
    					<font size="2" face="Open-sans, sans-serif" color="#000">
    						<p data-html-only="1" style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px">
    							Vos codes d'accès sur {shop_name}.						</p>
    						<span style="color:#000">
    							Vos codes d'accès :<br /> 
    							<span style="color:#000"><strong>Adresse e-mail : <a href="mailto:{email}" style="color:#337ff1">{email}</a></strong></span><br />
    							<span style="color:#000"><strong>Mot de passe :</strong></span> {passwd}
    						</span>
    						</div>
    					</font>
    				</td>
    				<td width="10" style="padding:7px 0">&nbsp;</td>
    			</tr>
    		</table>
    	</td>
    </tr>
    <tr>
    	<td class="space_footer" style="padding:0!important">&nbsp;</td>
    </tr>
    <tr>
    	<td class="box padding:8px 0">
    		<table class="table" style="width:100%">
    			<tr>
    				<td width="10" style="padding:7px 0">&nbsp;</td>
    				<td style="padding:7px 0">
    					<font size="2" face="Open-sans, sans-serif" color="#000">
    						<p style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px">Conseils de sécurité importants :</p>
    						<ol style="margin-bottom:0">
    							<li>Vos informations de compte doivent rester confidentielles.</li>
    							<li>Ne les communiquez jamais à qui que ce soit.</li>
    							<li>Changez votre mot de passe régulièrement.</li>
    							<li>Si vous pensez que quelqu'un utilise votre compte illégalement, veuillez nous prévenir immédiatement.</li>
    						</ol>
    					</font>
    				</td>
    				<td width="10" style="padding:7px 0">&nbsp;</td>
    			</tr>
    		</table>
    	</td>
    </tr>
    <tr>
    	<td class="space_footer" style="padding:0!important">&nbsp;</td>
    </tr>
    <tr>
    	<td class="linkbelow" style="padding:7px 0">
    		<font size="2" face="Open-sans, sans-serif" color="#555454">
    			<span>Vous pouvez dès à présent passer commande sur notre boutique : <a href="{shop_url}" style="color:#337ff1">{shop_name}</a></span>
    		</font>
    	</td>
    </tr>
     
    						<tr>
    							<td class="space_footer" style="padding:0!important">&nbsp;</td>
    						</tr>
    						<tr>
    							<td  align="center" class="footer" style="border-top:2px solid #333333;padding:10px 0">
     
    								<span text-align="center"><a href="http://unprecieux.fr/shop/" style="color:#000">© 2015 | Un Précieux </a></span>
    							</td>
    						</tr>
    					</table>
    				</td>
    				<td class="space" style="width:20px;padding:7px 0">&nbsp;</td>
     
    	</tr>
    		</table>
    		</div>
    	</body>
    </html>

  2. #2
    Invité
    Invité(e)
    Par défaut
    Bonjour,

    quand on reçoit un email dans sa messagerie, le message est inclus dans la page.

    DONC : pas de <doctype> ni balises <html>, <head> (ni contenu du <head>, y compris <style>), <body> dans le corps HTML du message.
    De fait, mettre des classes est aussi inutile.

    Tous les styles CSS doivent être "en ligne de code".

    D'autre part, certaines boites de messagerie suppriment tous ou certains styles, tels que les background-image.

  3. #3
    Nouveau membre du Club
    Homme Profil pro
    Inscrit en
    Septembre 2011
    Messages
    52
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Septembre 2011
    Messages : 52
    Points : 29
    Points
    29
    Par défaut
    ha ok merci pour l info je suis déçu mais je vais faire autrement ^^

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. définir une image comme arrière plan dans un jwindow
    Par j_esti dans le forum AWT/Swing
    Réponses: 2
    Dernier message: 09/09/2013, 22h43
  2. Réponses: 1
    Dernier message: 06/02/2013, 15h59
  3. arrière plan dans un dbgrid
    Par angelique222 dans le forum VB 6 et antérieur
    Réponses: 6
    Dernier message: 06/07/2006, 14h48
  4. [Swing] Arrière plan dans un JPanel.
    Par Epok__ dans le forum AWT/Swing
    Réponses: 3
    Dernier message: 02/06/2006, 14h05

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo