VBS email signatur

  • Outlook

Es gibt 4 Antworten in diesem Thema. Der letzte Beitrag () ist von Mono.

    VBS email signatur

    Hallo,

    ich habe ein kleines problem mit meiner E-Mail Signatur und zwar rufe ich diese aus dem AD ab.. alles schön und gut.
    Ich habe zwei Arten... eine mit HTML und Tabellen und eine normale ohne HTML und Tabellen.
    Bei der ohne HTML kann ich Bilder einbinden und diese werden auch überall mit hinversendet, auch auf Smartphones. Da diese aber auf Smartphones nicht schön dargestellt wird wollte ich das mit HTML und Tabellen lösen. Allerdings bekomme ich da die Bilder (Logos) nicht richtig mitverschickt, da sie beim Empfänger dann nicht dagestellt werden.
    Nun will ich entweder in dem Code ohne HTML eine Tabelle haben oder in dem Code mit HTML die Logos vernüpftig.
    Wer kann mir da helfen?? ?( ?( ?( ?(

    Hier einmald er Code ohne HTML:

    Brainfuck-Quellcode

    1. On Error Resume Next
    2. ' Objects
    3. Set objSysInfo = CreateObject("ADSystemInfo")
    4. Set WshShell = CreateObject("WScript.Shell")
    5. Set objUser = GetObject("LDAP://" & objSysInfo.UserName)
    6. Set objWord = CreateObject("Word.Application")
    7. Set objFSO = CreateObject("Scripting.FileSystemObject")
    8. ' Signature stuff
    9. strName = objUser.givenName + " " + objUser.sn
    10. strDepart = objUser.Department
    11. strDesc = objUser.Description
    12. strStreet = objUser.StreetAddress
    13. strLocation = objUser.l
    14. strPostCode = objUser.PostalCode
    15. strPhone = objUser.TelephoneNumber
    16. strMobile = objUser.Mobile
    17. strFax = objUser.FacsimileTelephoneNumber
    18. strEmail = objUser.mail
    19. strCompany = objUser.Company
    20. strCompanyWeb2 = "link...."
    21. aQuote = Chr(34)
    22. aNewLine = Chr(11)
    23. strLogo="bild pfad 1"
    24. strLogo1="bild pfad 2"
    25. If strCompany = "Firma" then
    26. strCompanyTitle = "Firma"
    27. strCompanyWeb = "link"
    28. Else
    29. strCompanyTitle = "oder andere Firma"
    30. strCompanyWeb = "anderer Link"
    31. End If
    32. Set objDoc = objWord.Documents.Add()
    33. Set objSelection = objWord.Selection
    34. Set objEmailOptions = objWord.EmailOptions
    35. Set objSignatureObject = objEmailOptions.EmailSignature
    36. Set objSignatureEntries = objSignatureObject.EmailSignatureEntries
    37. objSelection.Font.Name = "Arial"
    38. objSelection.Font.Size = 10
    39. objSelection.TypeText "Mit freundlichen Grüßen" +aNewLine
    40. objSelection.TypeText vbCrLf
    41. objSelection.Font.Bold = True 'Bold
    42. if (strCred) Then objSelection.TypeText strCred & strName Else objSelection.TypeText strName
    43. objSelection.TypeText aNewLine
    44. objSelection.Font.Bold = False 'Bold ende
    45. objSelection.TypeText "(" & strDepart & ")" + aNewLine
    46. objSelection.TypeText "__________________________________________________" + aNewLine
    47. 'Firmanlogo + Anschrift
    48. objDoc.Range.Font.Color =RGB(0,0,0)
    49. objSelection.InlineShapes.AddPicture(strLogo)
    50. objSelection.TypeText aNewLine
    51. objSelection.TypeText strCompanyTitle +aNewLine
    52. objSelection.TypeText strStreet & aNewLine
    53. objSelection.TypeText strPostCode & " " & strLocation
    54. objSelection.TypeText vbCrLf
    55. objSelection.TypeText "Telefon: " & "+49 (0) " & strPhone & " "
    56. objSelection.TypeText "E-Mail: "
    57. objDoc.Hyperlinks.Add objSelection.Range, "Mailto:" & strEmail, , , strEmail +aNewLine
    58. if (strFax) Then objSelection.TypeText "Fax: " & "+49 (0) " & strFax & " "
    59. objSelection.TypeText "Website: "
    60. objDoc.Hyperlinks.Add objSelection.Range, strCompanyWeb, , ,strCompanyWeb +aNewLine
    61. if (strMobile) Then objSelection.TypeText "Mobil: " & strMobile & aNewLine
    62. objSelection.TypeText "Vorstand: ...." +aNewLine
    63. objSelection.TypeText "Aufsichtsrat: ..."
    64. objSelection.TypeText vbCrLf
    65. objSelection.TypeText "Amtsgericht Tostedt: ....." +aNewLine
    66. objSelection.TypeText "Umsatzsteueridentifikationsnummer: ....." +aNewLine
    67. objSelection.TypeText "__________________________________________________"
    68. objSelection.TypeText vbCrLf
    69. 'Senat der Wirtschaft
    70. objSelection.TypeText "............."
    71. objSelection.TypeText vbCrLf
    72. objSelection.InlineShapes.AddPicture(strLogo1)
    73. objSelection.TypeText vbCrLf
    74. objSelection.Font.Underline = True
    75. objSelection.TypeText ".....:"
    76. objSelection.Font.Underline = False
    77. objSelection.TypeText " "
    78. objSelection.Font.Underline = True
    79. objSelection.TypeText"...:" +aNewLine
    80. objSelection.Font.Underline = False
    81. objSelection.TypeText "..."
    82. objSelection.TypeText " "
    83. objSelection.TypeText "..." +aNewLine
    84. objSelection.TypeText "...."
    85. objSelection.TypeText " "
    86. objSelection.TypeText "..." +aNewLine
    87. objSelection.TypeText "..."
    88. objSelection.TypeText " "
    89. objSelection.TypeText "..." +aNewLine
    90. objSelection.TypeText "Telefon: ..."
    91. objSelection.TypeText " "
    92. objSelection.TypeText "Telefon: ...." +aNewLine
    93. objSelection.TypeText "Fax: ...."
    94. objSelection.TypeText " "
    95. objSelection.TypeText "Fax: ..." +aNewLine
    96. objSelection.TypeText vbCrLf
    97. objSelection.Font.Underline = True
    98. objSelection.TypeText "...:" +aNewLine
    99. objSelection.Font.Underline = False
    100. objSelection.TypeText "... ... ..." +aNewLine
    101. objSelection.TypeText "... ..." +aNewLine
    102. objSelection.TypeText "... ..." +aNewLine
    103. objSelection.TypeText "Telefon: ...." +aNewLine
    104. objSelection.TypeText "Fax: ..." +aNewLine
    105. objSelection.TypeText "Website: "
    106. objDoc.Hyperlinks.Add objSelection.Range, strCompanyWeb2, , ,strCompanyWeb2 +aNewLine
    107. objSelection.TypeText "__________________________________________________"
    108. objDoc.Range.Font.Color =RGB(0,0,0)
    109. objSelection.TypeText vbCrLf
    110. 'Rechtliches
    111. objSelection.Font.size = "8" 'Schriftfarbe on
    112. objSelection.Font.Color = RGB(0,0,255) 'Schriftfarbe on
    113. objSelection.TypeText "Diese E-Mail und alle Anhänge enthalten vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder" +aNewLine
    114. objSelection.TypeText "die E-Mail irrtümlich erhalten haben, informieren Sie bitte unverzüglich den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die" +aNewLine
    115. objSelection.TypeText "unbefugte Weitergabe dieser Mail ist nicht gestattet." +aNewLine
    116. objSelection.TypeText "Die CO.NET Verbrauchergenossenschaft eG haftet weder für infolge elektronischer Übertragung entstandene Fehler gleich welcher Art noch für Verlust oder Schaden," +aNewLine
    117. objSelection.TypeText "den eine Person als Folge dieser E-Mail und/oder ihrer Anhänge dadurch erleidet, dass sie an einen anderen als den beabsichtigten Adressaten übermittelt wurde." +aNewLine
    118. objSelection.TypeText "Vielen Dank." +aNewLine
    119. objSelection.Font.Color = 0 'Schriftfarbe off
    120. objSelection.Font.Name = "Webdings" 'Schriftart anders
    121. objSelection.Font.Color = RGB(51,153,0) 'Schriftfarbe on
    122. objSelection.Font.Bold = True
    123. objSelection.TypeText "P "
    124. objSelection.Font.Name = "Arial"
    125. objSelection.TypeText "Im Interesse unserer Umwelt: Bitte prüfen Sie, ob diese E-Mail ausgedruckt werden muss." +aNewLine
    126. objSelection.Font.Color = 0 'Schriftfarbe off
    127. objSelection.Font.Bold = False
    128. objSelection.Font.Color = RGB(0,0,255) 'Schriftfarbe on
    129. objSelection.TypeText +aNewLine
    130. objSelection.TypeText "This email and any attached files may contain confidential and/or privileged informations. If you are not the intended recipient (or have received this email in error)" +aNewLine
    131. objSelection.TypeText "please notify the sender immediately and destroy this email. Any unauthorised copying, disclosure or distribution of the material in this email is strictly forbidden." +aNewLine
    132. objSelection.Font.Color = 0 'Schriftfarbe off
    133. objSelection.Font.Name = "Webdings" 'Schriftart anders
    134. objSelection.Font.Color = RGB(51,153,0) 'Schriftfarbe on
    135. objSelection.Font.Bold = True
    136. objSelection.TypeText "P "
    137. objSelection.Font.Name = "Arial"
    138. objSelection.TypeText "Before you print - think about the environment." +aNewLine
    139. objSelection.Font.Color = 0 'Schriftfarbe off
    140. objSelection.Font.Bold = False
    141. objSelection.TypeText vbCrLf
    142. 'Speichern
    143. Set objSelection = objDoc.Range()
    144. ' full signature
    145. objSignatureEntries.Add "_Signature", objSelection
    146. objSignatureObject.NewMessageSignature = "_Signature"
    147. objDoc.Saved = True
    148. ' reply signature
    149. objSignatureEntries.Add "_Reply_Signature", objSelection
    150. objSignatureObject.ReplyMessageSignature = "_Reply_Signature"
    151. objDoc.Saved = True
    152. ' EOF


    Hier der Code mit HTML:

    HTML-Quellcode

    1. Set oWSH = CreateObject("WScript.Shell")
    2. fsDateiPfad = oWSH.ExpandEnvironmentStrings("%APPDATA%\")
    3. fsDateiPfad = fsDateiPfad & "Microsoft"
    4. folder = fsDateiPfad
    5. Set fso = CreateObject("Scripting.FileSystemObject")
    6. If fso.FolderExists(folder) Then 'Office installed
    7. 'msgbox("office installed")
    8. Set objSysInfo = CreateObject("ADSystemInfo")
    9. strUser = objSysInfo.UserName
    10. Set objUser = GetObject("LDAP://" & strUser)
    11. strMail = objUser.mail
    12. if strMail <> "" then 'Mailadr set
    13. 'Check Signature Dir exist or make it
    14. folder = fsDateiPfad & "\Signatures\"
    15. If fso.FolderExists(folder) Then 'Signatures Dir exist
    16. fsDateiPfad = ""
    17. 'msgbox("SigDir exist")
    18. else
    19. fso.CreateFolder(folder)
    20. 'msgbox("SigDir not exist - [" & folder & "]")
    21. end if
    22. 'Get lokal APPDATA
    23. Set oWSH = CreateObject("WScript.Shell")
    24. fsDateiPfad = oWSH.ExpandEnvironmentStrings("%APPDATA%\")
    25. fsDateiPfad = fsDateiPfad & "Microsoft\Signatures\"
    26. 'Get AccDetails
    27. AccName = objUser.samAccountName
    28. strName = objUser.givenName
    29. strSurname = objUser.sn
    30. strTitle = objUser.title
    31. strDepartment = objUser.department
    32. strPhone = objUser.telephoneNumber
    33. strMobil = objUser.mobile
    34. strFax= objUser.facsimileTelephoneNumber
    35. strZip = objUser.postalCode
    36. strStreet = objUser.streetAddress
    37. strCity = objUser.l
    38. strHP = "...."
    39. strLogo="bildpfad 1"
    40. strCompany = objUser.Company
    41. 'strNotes = objUser.Info
    42. strdescription = objUser.description
    43. strInitials = objUser.initials
    44. signatur_conet()
    45. end if
    46. end if 'Office installed
    47. function signatur_conet()
    48. Set fsDatei = CreateObject("Scripting.FileSystemObject")
    49. fsDateiName = fsDateiPfad & "Signatur-" & AccName & ".htm"
    50. fsDatei.CreateTextFile fsDateiName
    51. Set fsDatei = fsDatei.getfile(fsDateiName)
    52. Set fsinhalt = fsDatei.OpenAsTextStream(2, -2)
    53. fsinhalt.write "<html>" & vbLf
    54. fsinhalt.write "<!-- .... " & strSurname & " " & strName & " -->" & vbLf
    55. fsinhalt.write "<head>" & vbLf
    56. fsinhalt.write "</head>" & vbLf
    57. fsinhalt.write "<body>" & vbLf
    58. fsinhalt.write "<span style='FONT-FAMILY:""Arial"",""sans-serif"";font-size:10pt'>" & vbLf
    59. fsinhalt.write "Mit freundlichen Grüßen<br />" & vbLf
    60. fsinhalt.write "<br />" & vbLf
    61. if strInitials <> "" then
    62. fsinhalt.write "<b />" & strInitials & " " & strdescription & " " & strPreName & " " & strName & " " & strSurname & "</b><br />" & vbLf
    63. else
    64. fsinhalt.write "<b />" & strdescription & " " & strPreName & " " & strName & " " & strSurname & "</b><br />" & vbLf
    65. end if
    66. if strTitle <> "" then
    67. fsinhalt.write strTitle & " / " & strDepartment & "<br />" & vbLf
    68. else
    69. fsinhalt.write strDepartment & "<br />" & vbLf
    70. end if
    71. fsinhalt.write "__________________________________________________________________<br /><br />" & vbLf
    72. fsinhalt.write "<img src=" & strLogo & " width='101' height='66' />"
    73. fsinhalt.write "<br /><br />" & vbLf
    74. fsinhalt.write "<table border='0' style='FONT-FAMILY:""Arial"",""sans-serif"";font-size:10pt'; cellspacing=0; cellpadding=0>" & vbLf
    75. fsinhalt.write " <tr>" & vbLf
    76. fsinhalt.write " <td colspan='7'>" & strCompany & "</td>" & vbLf
    77. fsinhalt.write " </tr>" & vbLf
    78. fsinhalt.write " <tr>" & vbLf
    79. fsinhalt.write " <td colspan='7'>" & strStreet & "</td>" & vbLf
    80. fsinhalt.write " </tr>" & vbLf
    81. fsinhalt.write " <tr>" & vbLf
    82. fsinhalt.write " <td colspan='7'>" & strZip & " " & strCity & "</td>" & vbLf
    83. fsinhalt.write " </tr>" & vbLf
    84. fsinhalt.write " <tr>" & vbLf
    85. fsinhalt.write " <td colspan='7'>&nbsp</td>" & vbLf
    86. fsinhalt.write " </tr>" & vbLf
    87. if strPhone <> "" then
    88. fsinhalt.write " <tr>" & vbLf
    89. fsinhalt.write " <td>Telefon:</td><td>&nbsp</td><td>+49 (0) " & strPhone & "</td><td width='50'>&nbsp</td><td>E-Mail:</td><td>&nbsp</td><td><a href='mailto:" & strMail & "'style='color: #000000'>" & strMail & "</a></td>" & vbLf
    90. fsinhalt.write " </tr>" & vbLf
    91. end if
    92. if strFax <> "" then
    93. fsinhalt.write " <tr>" & vbLf
    94. fsinhalt.write " <td>Fax:</td><td>&nbsp</td><td>+49 (0) " & strFax & "</td><td width='50'>&nbsp</td><td>Webseite:</td><td>&nbsp</td><td><a href='http://" & strHP & "'style='color: #000000'>" & strHP & "</a></td>" & vbLf
    95. fsinhalt.write " </tr>" & vbLf
    96. end if
    97. if strMobil <> "" then
    98. fsinhalt.write " <tr>" & vbLf
    99. fsinhalt.write " <td>Mobil:</td><td>&nbsp</td><td>+49 (0) " & strMobil & "</td>" & vbLf
    100. fsinhalt.write " </tr>" & vbLf
    101. end if
    102. fsinhalt.write " </tr>" & vbLf
    103. fsinhalt.write "</table>" & vbLf
    104. 'fsinhalt.write "<br />" & vbLf
    105. fsinhalt.write "__________________________________________________________________<br /><br />" & vbLf
    106. 'sdw
    107. fsinhalt.write "................." & vbLf
    108. fsinhalt.write "<br /><br />" & vbLf
    109. fsinhalt.write "<table border='0' style='FONT-FAMILY:""Arial"",""sans-serif"";font-size:10pt'; cellspacing=0; cellpadding=0>" & vbLf
    110. if strPhone <> "" then
    111. fsinhalt.write " <tr>" & vbLf
    112. fsinhalt.write " <td>....:</td><td width='50'>&nbsp</td><td>....:</td>" & vbLf
    113. fsinhalt.write " </tr>" & vbLf
    114. end if
    115. if strFax <> "" then
    116. fsinhalt.write " <tr>" & vbLf
    117. fsinhalt.write " <td>....</td><td width='50'>&nbsp</td><td>....</td>" & vbLf
    118. fsinhalt.write " </tr>" & vbLf
    119. end if
    120. if strPhone <> "" then
    121. fsinhalt.write " <tr>" & vbLf
    122. fsinhalt.write " <td>....</td><td width='50'>&nbsp</td><td>... ...</td>" & vbLf
    123. fsinhalt.write " </tr>" & vbLf
    124. end if
    125. if strFax <> "" then
    126. fsinhalt.write " <tr>" & vbLf
    127. fsinhalt.write " <td>... ...</td><td width='50'>&nbsp</td><td>... ...</td>" & vbLf
    128. fsinhalt.write " </tr>" & vbLf
    129. end if
    130. fsinhalt.write " <tr>" & vbLf
    131. fsinhalt.write " <td></td><td>&nbsp</td><td></td>" & vbLf
    132. fsinhalt.write " </tr>" & vbLf
    133. if strPhone <> "" then
    134. fsinhalt.write " <tr>" & vbLf
    135. fsinhalt.write " <td>Telefon: +49 (0) ....</td><td width='50'>&nbsp</td><td>Telefon: +49 (0) ....</td>" & vbLf
    136. fsinhalt.write " </tr>" & vbLf
    137. end if
    138. if strFax <> "" then
    139. fsinhalt.write " <tr>" & vbLf
    140. fsinhalt.write " <td>Fax:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp +49 (0) ...</td><td width='50'>&nbsp</td><td>Fax:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp +49 (0) 3...</td>" & vbLf
    141. fsinhalt.write " </tr>" & vbLf
    142. end if
    143. fsinhalt.write " </tr>" & vbLf
    144. fsinhalt.write "</table>" & vbLf
    145. 'fsinhalt.write "<br />" & vbLf
    146. fsinhalt.write "__________________________________________________________________<br />" & vbLf
    147. fsinhalt.write "<br />" & vbLf
    148. fsinhalt.write "<span style='font-size:7.5pt;color:#ee6c14'>Diese E-Mail und alle Anhänge enthalten vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder die E-Mail irrtümlich erhalten haben, informieren Sie bitte unverzüglich den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. Die CO.NET Verbrauchergenossenschaft eG haftet weder für infolge elektronischer Übertragung entstandene Fehler gleich welcher Art noch für Verlust oder Schaden, den eine Person als Folge dieser E-Mail und/oder ihrer Anhänge dadurch erleidet, dass sie an einen anderen als den beabsichtigten Adressaten übermittelt wurde. Vielen Dank.</span>" & vbLf
    149. fsinhalt.write "<br />" & vbLf
    150. fsinhalt.write "<SPAN style='FONT-FAMILY:""Webdings"";color:#009900;font-size:13pt'>P </SPAN><span style='FONT-FAMILY:""Arial"";color:#009900;font-size:7.5pt'><b>Im Interesse unserer Umwelt: Bitte prüfen Sie, ob diese E-Mail ausgedruckt werden muss.</b></span>" & vbLf
    151. fsinhalt.write "<br />" & vbLf
    152. fsinhalt.write "<span style='font-size:7.5pt;color:#ee6c14'>This email and any attached files may contain confidential and/or privileged informations. If you are not the intended recipient (or have received this email in error) please notify the sender immediately and destroy this email. Any unauthorised copying, disclosure or distribution of the material in this email is strictly forbidden.</span>" & vbLf
    153. fsinhalt.write "<br />" & vbLf
    154. fsinhalt.write "<SPAN style='FONT-FAMILY:""Webdings"";color:#009900;font-size:13pt'>P </SPAN><span style='FONT-FAMILY:""Arial"";color:#009900;font-size:7.5pt'><b>Before you print - think about the environment</b></span>" & vbLf
    155. fsinhalt.write "</span>" & vbLf
    156. fsinhalt.write "</body>" & vbLf
    157. fsinhalt.write "</html>"
    158. fsinhalt.Close
    159. 'Genarate TXT File
    160. fsDateiName = fsDateiPfad & "Signatur-" & AccName & ".txt"
    161. Set fsDatei = CreateObject("Scripting.FileSystemObject")
    162. fsDatei.CreateTextFile fsDateiName
    163. Set fsDatei = fsDatei.getfile(fsDateiName)
    164. Set fsinhalt = fsDatei.OpenAsTextStream(2, -2)
    165. fsinhalt.write "Mit freundlichen Grüßen / Best regards" & vbLf & vbLf
    166. fsinhalt.write strPreName & " " & strName & " " & strSurname & vbLf
    167. if strTitle <> "" then
    168. fsinhalt.write strTitle & " / " & strDepartment & vbLf & vbLf
    169. else
    170. fsinhalt.write strDepartment & vbLf & vbLf
    171. end if
    172. fsinhalt.write "______________________________" & vbLf & vbLf
    173. if strPhone <> "" then
    174. fsinhalt.write "Tel: " & strPhone & vbLf
    175. end if
    176. if strMobil <> "" then
    177. fsinhalt.write "Mobil: " & strMobil & vbLf
    178. end if
    179. if strFax <> "" then
    180. fsinhalt.write "Fax: " & strFax & vbLf
    181. end if
    182. fsinhalt.write "E-Mail: " & strMail & vbLf
    183. fsinhalt.write "Web: " & strHP & vbLf & vbLf
    184. fsinhalt.write "...." & vbLf
    185. fsinhalt.write strStreet & vbLf
    186. fsinhalt.write strZip & " " & strCity & vbLf & vbLf
    187. fsinhalt.write "USt-IdNr. / Tax ID No.: ..." & vbLf
    188. fsinhalt.write "..." & vbLf
    189. fsinhalt.write "..." & vbLf
    190. fsinhalt.write " " & vbLf
    191. fsinhalt.write "Rechtlicher Hinweis: Diese E-Mail enthält vertrauliche und / oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.<br>Legal notice: This e-mail contains confidential and / or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden." & vbLf & vbLf
    192. fsinhalt.Close
    193. end function


    und nun bitte bitte bitte eine lösung... ich verzweifle dran :S ?(

    cybershot schrieb:

    Allerdings bekomme ich da die Bilder (Logos) nicht richtig mitverschickt, da sie beim Empfänger dann nicht dagestellt werden.


    rührt das Problem daher das sie nicht angezeigt werden?
    Ich kenne es z.B. so das bei den iPhones/Pad die Bilder (logos) als Anhang beigefügt sind.
    Ist wohl dann Einstellungssache..

    Oder meinst du was anderes?
    Option Strict On!
    ja ich meine was anderes... also bei dem Code mit HTML werden die bilder gar nicht angezeigt, und bei dem ohne HTML funktioniert es einwandfrei... und ich hätte gern bei dem ohne HTML eine Tabelle drin, damit das überall vernüpftig dagestellt wird... ODER bei dem mit HTML eine andere methode um die Bilder einzubinden.
    Du kannst ein Bild mit ImageTag Base64 kodiert verschicken. Such mal nach VBS base64 und html email embed image
    Solltest bei Google dazu alles finden

    //EDIT

    Könnte auch sein das es mit CDO Message sogar noch einfacher geht.

    Visual Basic-Quellcode

    1. Set mail = CreateObject("CDO.Message")
    2. 'konstruier hier das mail
    3. Set img = mail.AddRelatedBodyPart(pathToImage, "image.jpg", 1)
    4. img.Fields.Item("urn:schemas:mailheader:Content-ID") = "<image.jpg>"
    5. img.Fields.Update
    6. mail.Send


    LG
    Das ist meine Signatur und sie wird wunderbar sein!

    Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „Mono“ ()