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

Windows Forms Discussion :

Envoyer un email correctement visible (texte et image)


Sujet :

Windows Forms

  1. #1
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    143
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Juin 2007
    Messages : 143
    Points : 54
    Points
    54
    Par défaut Envoyer un email correctement visible (texte et image)
    Bonjour, j'utilise un webBrowser pour faire ma mise en page pour l'envoi d'un email, mais le problème viens des images, il faut à chaque fois les télécharger et de temps en temps, l'email se trouve dans les courriers indésirables.
    Que puis-je faire pour remédier à ça?
    Merci.

  2. #2
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    143
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Juin 2007
    Messages : 143
    Points : 54
    Points
    54
    Par défaut
    J'ai toujours besoin d'aide pour ça, mais j'ai remarqué qu'en envoyant une page html avec internet explorer, il envoyait PARFAITEMENT l'email,
    comment puis-je utiliser la même chose?
    J'ai enregistré mon webbrowser en html et je peux l'envoyer correctement via internet explorer et ce n'est pas très pratique, car quand il faut envoyer un email à 500 personnes c'est pas facile via internet explorer.
    Y a-t-il un moyen d'utiliser cette fonction d'internet explorer en Windows Forms? Ou comment faire autrement?
    Merci.

  3. #3
    Membre éprouvé
    Homme Profil pro
    Consultant informatique
    Inscrit en
    Juillet 2007
    Messages
    693
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 41
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Consultant informatique

    Informations forums :
    Inscription : Juillet 2007
    Messages : 693
    Points : 1 187
    Points
    1 187
    Par défaut
    Bonjour,

    J'ai trouvé ça sur Internet sans le tester :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    private static void EmbedCompanyLogo(MailMessage message)
    {
    	AlternateView av1 = AlternateView.CreateAlternateViewFromString(message.Body, null, System.Net.Mime.MediaTypeNames.Text.Html);
    	string strImageUrl = System.Web.HttpContext.Current.Server.MapPath("~/images/logo_print.gif");
    	LinkedResource logo = new LinkedResource(strImageUrl, System.Net.Mime.MediaTypeNames.Image.Jpeg);
    	logo.ContentId = "companylogo";
    	//To refer to this image in the html body, use <img src="cid: companylogo"/>
    	av1.LinkedResources.Add(logo);
    	message.AlternateViews.Add(av1);
    }
    A voir si ça répond à ton besoin !

  4. #4
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    143
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Juin 2007
    Messages : 143
    Points : 54
    Points
    54
    Par défaut
    Merci,
    j'avais déjà essayé et ça marche, j'arrive à mettre des images correctement quand j'insère l'image seul, si j'essaie de faire un copier/coller avec une image ET du texte, là je sais pas comment je peux faire pour que ça passe, je suis coincé la dessus.
    Merci.

  5. #5
    Membre éprouvé
    Homme Profil pro
    Consultant informatique
    Inscrit en
    Juillet 2007
    Messages
    693
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 41
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Consultant informatique

    Informations forums :
    Inscription : Juillet 2007
    Messages : 693
    Points : 1 187
    Points
    1 187
    Par défaut
    Euh, je comprends pas bien ton histoire de copier-coller ! En gros tu "fabriques" ton email dans le webbrowser avec du texte, des images, ...
    Et ton problème c'est d'appliquer le code que je t'ai donné aux images du html fourni par le webbrowser ?

    Si oui, il me semble qu'une regex te permettra "d'extraire" les images (balises "img") avec le chemin d'accès. Là tu n'as qu'à faire pour chaque résultat de la regex :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    	string strImageUrl = System.Web.HttpContext.Current.Server.MapPath("chemin_extrait_par_la_regex");
    	LinkedResource logo = new LinkedResource(strImageUrl, System.Net.Mime.MediaTypeNames.Image.Jpeg);
                logo.ContentId = "imgXXXX";
    Et en même temps, remplacer dans ton html le chemin dans la balise img par :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <img src="cid: imgXXXX"/>

  6. #6
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    143
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Juin 2007
    Messages : 143
    Points : 54
    Points
    54
    Par défaut
    En relisant mon message, je me rend compte que j'ai oublié de préciser que quand c'était dans le ClipBoard (Presse-Papier), je ne sais pas savoir où est l'image quand je fais copier-coller.

  7. #7
    Membre éprouvé
    Homme Profil pro
    Consultant informatique
    Inscrit en
    Juillet 2007
    Messages
    693
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 41
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Consultant informatique

    Informations forums :
    Inscription : Juillet 2007
    Messages : 693
    Points : 1 187
    Points
    1 187
    Par défaut
    Tu as un exemple de ce que tu as dans le presse-papier ?

  8. #8
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    143
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Juin 2007
    Messages : 143
    Points : 54
    Points
    54
    Par défaut
    Par exemple en copiant ceci :


    L'ombre, une image naturelle

    (Source : http://fr.wikipedia.org/wiki/Image)

    Donc l'image + le nom (le string est vide en copiant juste l'image)
    Si le string est vide, c'est parce que le texte contient le alt de l'image. (ici il n'y en a donc pas).

    dans le ClipBoard, j'ai ceci comme texte : "L'ombre, une image naturelle\r\n"
    en faisant if(ClipBoard.ContainsImage()), ça ne rentre pas dans le if.

  9. #9
    Membre éprouvé
    Homme Profil pro
    Consultant informatique
    Inscrit en
    Juillet 2007
    Messages
    693
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 41
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Consultant informatique

    Informations forums :
    Inscription : Juillet 2007
    Messages : 693
    Points : 1 187
    Points
    1 187
    Par défaut
    Essaye de récupérer le contenu du clipboard qui t'intéresse comme ceci :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
                if (Clipboard.ContainsData(DataFormats.Html))
                {
                    object result = Clipboard.GetData(DataFormats.Html);
                }
    Pour ma part, j'obtiens ceci (attention c'est horrible mais il y a ce que tu cherches) :
    Code : 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
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    Version:1.0
    StartHTML:000000240
    EndHTML:000009503
    StartFragment:000009211
    EndFragment:000009369
    StartSelection:000009211
    EndSelection:000009369
    SourceURL:http://www.developpez.net/forums/newreply.php?do=newreply&noquote=1&p=5468071
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
     
    <HTML dir=ltr lang=fr xmlns="http://www.w3.org/1999/xhtml"><HEAD><META 
    content="IE=7.0000" http-equiv="X-UA-Compatible">
    <TITLE>Forum des professionnels en informatique - Répondre au sujet</TITLE><!-- CSS Stylesheet -->
    <STYLE id=vbulletin_css type=text/css>
    /**
    * vBulletin 3.8.5 CSS
    * Style: 'Moderne'; Style ID: 4
    */
    body
    {
    	background: #E1E1E2;
    	color: #000000;
    	font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    	margin: 5px 10px 10px 10px;
    	padding: 0px;
    }
    a:link, body_alink
    {
    	color: #22229C;
    }
    a:visited, body_avisited
    {
    	color: #22229C;
    }
    a:hover, a:active, body_ahover
    {
    	color: #FF4400;
    }
    .page
    {
    	background: #FFFFFF;
    	color: #000000;
    }
    td, th, p, li
    {
    	font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    }
    .tborder
    {
    	background: #D1D1E1;
    	color: #000000;
    	border: 1px solid #0B198C;
    }
    .tcat
    {
    	background: #869BBF url(images/gradients/gradient_tcat.gif) repeat-x top left;
    	color: #FFFFFF;
    	font: bold 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    }
    .tcat a:link, .tcat_alink
    {
    	color: #ffffff;
    	text-decoration: none;
    }
    .tcat a:visited, .tcat_avisited
    {
    	color: #ffffff;
    	text-decoration: none;
    }
    .tcat a:hover, .tcat a:active, .tcat_ahover
    {
    	color: #FFFF66;
    	text-decoration: underline;
    }
    .thead
    {
    	background: #5C7099 url(images/gradients/gradient_thead.gif) repeat-x top left;
    	color: #FFFFFF;
    	font: bold 8pt tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    }
    .thead a:link, .thead_alink
    {
    	color: #FFFFFF;
    }
    .thead a:visited, .thead_avisited
    {
    	color: #FFFFFF;
    }
    .thead a:hover, .thead a:active, .thead_ahover
    {
    	color: #FFFF00;
    }
    .tfoot
    {
    	background: #3E5C92;
    	color: #E0E0F6;
    }
    .tfoot a:link, .tfoot_alink
    {
    	color: #E0E0F6;
    }
    .tfoot a:visited, .tfoot_avisited
    {
    	color: #E0E0F6;
    }
    .tfoot a:hover, .tfoot a:active, .tfoot_ahover
    {
    	color: #FFFF66;
    }
    .alt1, .alt1Active
    {
    	background: #F5F5FF;
    	color: #000000;
    }
    .alt2, .alt2Active
    {
    	background: #E1E4F2;
    	color: #000000;
    }
    .inlinemod
    {
    	background: #FFFFCC;
    	color: #000000;
    }
    .wysiwyg
    {
    	background: #F5F5FF;
    	color: #000000;
    	font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    	margin: 5px 10px 10px 10px;
    	padding: 0px;
    }
    .wysiwyg a:link, .wysiwyg_alink
    {
    	color: #22229C;
    }
    .wysiwyg a:visited, .wysiwyg_avisited
    {
    	color: #22229C;
    }
    .wysiwyg a:hover, .wysiwyg a:active, .wysiwyg_ahover
    {
    	color: #FF4400;
    }
    textarea, .bginput
    {
    	font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    }
    .bginput option, .bginput optgroup
    {
    	font-size: 10pt;
    	font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    }
    .button
    {
    	font: 8pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    }
    select
    {
    	font: 8pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    }
    option, optgroup
    {
    	font-size: 8pt;
    	font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    }
    .smallfont
    {
    	font: 8pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    }
    .time
    {
    	color: #666686;
    }
    .navbar
    {
    	font: 8pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    }
    .highlight
    {
    	color: #FF0000;
    	font-weight: bold;
    }
    .fjsel
    {
    	background: #3E5C92;
    	color: #E0E0F6;
    }
    .fjdpth0
    {
    	background: #F7F7F7;
    	color: #000000;
    }
    .panel
    {
    	background: #E4E7F5 url(images/gradients/gradient_panel.gif) repeat-x top left;
    	color: #000000;
    	padding: 10px;
    	border: 2px outset;
    }
    .panelsurround
    {
    	background: #D1D4E0 url(images/gradients/gradient_panelsurround.gif) repeat-x top left;
    	color: #000000;
    }
    legend
    {
    	color: #22229C;
    	font: 8pt tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    }
    .vbmenu_control
    {
    	background: #738FBF;
    	color: #FFFFFF;
    	font: bold 8pt tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    	padding: 3px 6px 3px 6px;
    	white-space: nowrap;
    }
    .vbmenu_control a:link, .vbmenu_control_alink
    {
    	color: #FFFFFF;
    	text-decoration: none;
    }
    .vbmenu_control a:visited, .vbmenu_control_avisited
    {
    	color: #FFFFFF;
    	text-decoration: none;
    }
    .vbmenu_control a:hover, .vbmenu_control a:active, .vbmenu_control_ahover
    {
    	color: #FFFFFF;
    	text-decoration: underline;
    }
    .vbmenu_popup
    {
    	background: #FFFFFF;
    	color: #000000;
    	border: 1px solid #0B198C;
    }
    .vbmenu_option
    {
    	background: #BBC7CE;
    	color: #000000;
    	font: 8pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    	white-space: nowrap;
    	cursor: pointer;
    }
    .vbmenu_option a:link, .vbmenu_option_alink
    {
    	color: #22229C;
    	text-decoration: none;
    }
    .vbmenu_option a:visited, .vbmenu_option_avisited
    {
    	color: #22229C;
    	text-decoration: none;
    }
    .vbmenu_option a:hover, .vbmenu_option a:active, .vbmenu_option_ahover
    {
    	color: #FFFFFF;
    	text-decoration: none;
    }
    .vbmenu_hilite
    {
    	background: #8A949E;
    	color: #FFFFFF;
    	font: 8pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    	white-space: nowrap;
    	cursor: pointer;
    }
    .vbmenu_hilite a:link, .vbmenu_hilite_alink
    {
    	color: #FFFFFF;
    	text-decoration: none;
    }
    .vbmenu_hilite a:visited, .vbmenu_hilite_avisited
    {
    	color: #FFFFFF;
    	text-decoration: none;
    }
    .vbmenu_hilite a:hover, .vbmenu_hilite a:active, .vbmenu_hilite_ahover
    {
    	color: #FFFFFF;
    	text-decoration: none;
    }
    /* ***** styling for 'big' usernames on postbit etc. ***** */
    .bigusername{font-size:10pt;font-weight:bold;}
     
    /* ***** small padding on 'thead' elements ***** */
    td.thead, div.thead { padding: 4px; }
     
    /* ***** basic styles for multi-page nav elements */
    .pagenav a { text-decoration: none; }
    .pagenav td { padding: 2px 4px 2px 4px; }
     
    /* ***** define margin and font-size for elements inside panels ***** */
    .fieldset { margin-bottom: 6px; }
    .fieldset, .fieldset td, .fieldset p, .fieldset li { font-size: 11px; }
     
    /* ***** don't change the following ***** */
    form { display: inline; }
    label { cursor: default; }
    .normal { font-weight: normal; }
    .inlineimg { vertical-align: middle; }
    </STYLE>
    <LINK rel=stylesheet type=text/css 
    href="clientscript/vbulletin_important.css?v=385"><!-- Editor Styles -->
    <STYLE id=vbulletin_editor_css_dynamic type=text/css>
    <!--
    @import url("clientscript/vbulletin_editor.css?v=385");
     
    .vBulletin_editor {
    	background: #E1E1E2;
    	padding: 6px;
    }
    .imagebutton {
    	background: #E1E1E2;
    	color: #000000;
    	padding: 1px;
    	border: none;
    }
    .ocolor, .ofont, .osize, .osmilie, .osyscoloar, .smilietitle {
    	background: #FFFFFF;
    	color: #000000;
    	border: 1px solid #FFFFFF;
    }
    .popup_pickbutton {
    	border: 1px solid #FFFFFF;
    }
    .popup_feedback {
    	background: #FFFFFF;
    	color: #000000;
    	border-right: 1px solid #FFFFFF;
    }
    .popupwindow {
    	background: #FFFFFF;
    }
    #fontOut, #sizeOut, .popup_feedback div {
    	background: #FFFFFF;
    	color: #000000;
    }
    .alt_pickbutton {
    	border-left: 1px solid #E1E1E2;
    }
    .popup_feedback input, .popup_feedback div
    {
    	border: 0px solid;
    	padding: 0px 2px 0px 2px;
    	cursor: default;
    	font: 11px tahoma;
    	overflow: hidden;
    }
    -->
    </STYLE>
    <!-- / Editor Styles --><!-- / CSS Stylesheet -->
    <SCRIPT type=text/javascript 
    src="clientscript/yui/yahoo-dom-event/yahoo-dom-event.js?v=385"></SCRIPT>
     
    <SCRIPT type=text/javascript 
    src="clientscript/yui/connection/connection-min.js?v=385"></SCRIPT>
     
    <SCRIPT type=text/javascript>
    <!--
    var SESSIONURL = "";
    var SECURITYTOKEN = "1284455178-c384f8527371647de998e6c8f68729d2e65588d6";
    var IMGDIR_MISC = "images/misc";
    var vb_disable_ajax = parseInt("0", 10);
    // -->
    </SCRIPT>
     
    <SCRIPT type=text/javascript 
    src="clientscript/vbulletin_global.js?v=385"></SCRIPT>
     
    <SCRIPT type=text/javascript 
    src="clientscript/vbulletin_menu.js?v=385"></SCRIPT>
    <LINK title="Forum des professionnels en informatique RSS Feed" rel=alternate 
    type=application/rss+xml href="external.php?type=RSS2"><LINK rel=stylesheet 
    type=text/css href="/template/gabarit-forum.css">
    <SCRIPT type=text/javascript src="clientscript/ame.js"></SCRIPT>
    </HEAD>
     
    <BODY>
     
    <DIV id=layout>
     
    <DIV id=shadow1>
     
    <DIV id=shadow2>
     
    <DIV class=contenuPage>
     
    <DIV align=center>
     
    <DIV style="TEXT-ALIGN: left; WIDTH: 100%" class=page>
     
    <DIV 
    style="PADDING-BOTTOM: 0px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; PADDING-TOP: 0px" 
    align=left>
     
    <DIV id=collapseobj_threadreview>
     
    <TABLE style="BORDER-TOP-WIDTH: 0px" class=tborder border=0 cellSpacing=1 
    cellPadding=6 width="100%" align=center>
     
    <TBODY>
     
    <TR title="Message 5468071" vAlign=top>
     
    <TD class=alt1><!--StartFragment--><IMG border=0 alt="" 
    src="http://upload.wikimedia.org/wikipedia/commons/thumb/5/53/Shadow_2752.jpg/250px-Shadow_2752.jpg"><BR>L'ombre, 
    une image naturelle<!--EndFragment--></TD>
    </TR>
    </TBODY>
    </TABLE>
    </DIV>
    </DIV>
    </DIV>
    </DIV>
    </DIV>
    </DIV>
    </DIV>
    </DIV>
    </BODY>
    </HTML>
    En gros dedans tu cherches ce qu'il y a entre le "<!--StartFragment-->" et le "<!--EndFragment-->"

  10. #10
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    143
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Juin 2007
    Messages : 143
    Points : 54
    Points
    54
    Par défaut
    Avec ça, ça marche mais bon, les emails ne sont toujours pas top, c'est pas grave.
    Merci.

  11. #11
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    143
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Juin 2007
    Messages : 143
    Points : 54
    Points
    54
    Par défaut
    A moins qu'il y ait moyen d'envoyer une page par email (par exemple envoyer http://www.google.com/) et que la personne reçoive un email identique à la page principale de http://www.google.com/, comme si on faisait (sous internet explorer) Fichier/Envoyer=>Page par courrier électronique (c'est ça que je cherche à faire, car cela envoi parfaitement les emails).

  12. #12
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    143
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Juin 2007
    Messages : 143
    Points : 54
    Points
    54
    Par défaut
    Mmmmh, en utilisant Microsoft Word, j'ai remarqué qu'on pouvait très bien faire ce que j'essayai de faire, mais comment puis-je créer la liste des adresses de messagerie des clients, en C#?

  13. #13
    Membre éprouvé
    Homme Profil pro
    Consultant informatique
    Inscrit en
    Juillet 2007
    Messages
    693
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 41
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Consultant informatique

    Informations forums :
    Inscription : Juillet 2007
    Messages : 693
    Points : 1 187
    Points
    1 187
    Par défaut
    Euh ça veut dire quoi :
    ..., les emails ne sont toujours pas top, ...
    ?

  14. #14
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    143
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Juin 2007
    Messages : 143
    Points : 54
    Points
    54
    Par défaut
    Dans le sens où ça ne marche pas sur toutes les adresses emails (par exemple sur gmail), les images ne s'affichent pas, et sur hotmail il faut les télécharger.

    Mais je pense que le mieux est que j'utilise Word, mais il faut que je puisse créer un fichier .mdb pour pouvoir incorporer une liste d'emails, j'ai trouvé ceci : http://support.microsoft.com/kb/317881 mais j'ai une erreur au niveau de CatalogClass, j'ai
    Impossible d'incorporer le type interop 'ADOX.CatalogClass'. Utilisez l'interface applicable à la place.
    mais je sais pas ce que je dois faire et pourquoi ça marche pas :s.

  15. #15
    Membre éprouvé
    Homme Profil pro
    Consultant informatique
    Inscrit en
    Juillet 2007
    Messages
    693
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 41
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Consultant informatique

    Informations forums :
    Inscription : Juillet 2007
    Messages : 693
    Points : 1 187
    Points
    1 187
    Par défaut
    Euh mais attend !

    Sur gmail et hotmail, tes mails n'affichent donc pas les images immédiatement, c'est bien ça ? Ne penses-tu pas que cela est plutôt dû aux politiques des dits clients mail.

    Perso, sur Gmail, je dis explicitement si je souhaite afficher les images ou pas en fonction de l'expéditeur, pour moi cela est une fonctionnalité essentielle d'un client mail web car les images, je ne sais pas quelle taille elles font et ça évite de télécharger ces images si elles m'intéressent pas.

    D'ailleurs voici l'explication fournie par google : http://mail.google.com/support/bin/a...&answer=145919
    et
    http://mail.google.com/support/bin/a...fr&answer=8833

Discussions similaires

  1. Envoyer un email avec une image dans le corps du mail
    Par nitch01 dans le forum Langage
    Réponses: 1
    Dernier message: 04/01/2012, 08h36
  2. [XL-2003] Send.mail - Envoyer un email Type Text dés enregistrement d'un fichier XLS
    Par bilou95650 dans le forum Macros et VBA Excel
    Réponses: 1
    Dernier message: 29/06/2009, 12h45
  3. envoyer texte et images/ prob de réception
    Par midnnight dans le forum Langage
    Réponses: 3
    Dernier message: 04/07/2008, 07h36
  4. Réponses: 4
    Dernier message: 17/07/2007, 16h49
  5. Pb pour envoyer un email
    Par Décibel dans le forum Flash
    Réponses: 2
    Dernier message: 15/11/2003, 09h54

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