0

是的,我被难住了,我什至不知道我在做什么是对的。我有一些图像的 Base64 代码,我正在使用 Visual Basic 发送电子邮件(代码如下),但是当我收到电子邮件时,它只显示了方框和红十字。

我对此知之甚少,我刚刚一起破解了这个。我可能会做一些根本上愚蠢的事情,但我不会意识到这一点。

请指教:S

VB代码

Public Sub Main()

    Dim mySmtpClient As SmtpClient
    Dim myMessage As MailMessage
    Dim FileReader As StreamReader
    Dim EmailBody As String

    FileReader = New StreamReader("D:\Extracts\Body.html")

    EmailBody = FileReader.ReadToEnd()

    myMessage = New MailMessage("eg@example.com", "eg@example.com")
    myMessage.Body = EmailBody
    myMessage.IsBodyHtml = True
    mySmtpClient = New SmtpClient("Server")
    mySmtpClient.Credentials = CredentialCache.DefaultNetworkCredentials
    mySmtpClient.Send(myMessage)

    Dts.TaskResult = ScriptResults.Success
End Sub

正文.html

    <img src="data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABVAAD/4QNtaHR0cDov
    L25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENl
    aGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4
    OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjAtYzA2MCA2MS4xMzQ3NzcsIDIwMTAvMDIvMTItMTc6
    MzI6MDAgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5
    OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHht
    bG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0i
    aHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1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
    RO2rG7q2yVUgOoQGz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bTobc/1JLPi5kxI6Ry8sVYvO9bjdJfpT5nwcgAAe
    sM+hwXKtgOR29fFncVjdbYXIJGPZuy2cUpMZG3G347iiRsSGHxcZebVQEuxwVTuRCT1RFTqXG2yK
    6X6NQ0Ob+nmDmD0XJtV2qLdN9emeWO945EHAjwK7FyN8wnPTk5t7L2qz/LW4WA3ECYusDHoMa3LO
    ZJFQmn3mR+YmyRVQm0NAJPQkVK4du2db6KYJstkXDIkkw6DKPjmOC0d033crhKMmbMgw5hoAj4E5
    w8IwPFc/3t8gHLnkTs1ZuP8AvNl33zabHnIT9otj1rszJsO26G5AjH9VFhNSjIWHTBVNxVLVVLVf
    WrtFt+jpJzqiSzS90YmLuJicCYZ+CoV25q6tkNpqiZqlthAQbhAQGIAOR59V8PFfnNyh4WXuVeeP
    GUPWaNcFErna3m2ZdumKCKIk9FlA42pihKiGiISey1N2sdLcWgVDNUMjkR5hTZtw1drcXUry2OYz
    B6g+/NbxyZ8vPPPlXg8jbLcrMEi7eTB+O42nH4ca2NTQXqElyOCPONr7tqfYvuK1z7btGgoX+rKZ
    FwyJJMOnDzzXUum9bjcJfpTZkGHMNAEesMfKMFy3jJzC5GcNMsuOc8bci/s3lN1ifaZ8r6C2XD5Y
    vzBI+PsukWUA/jbFdRFF9OuldG52inuDAypbqAMRiRj5ELm2i9VNteZlK/S4iBwBwz4grS90ty82
    3l3DvW625M37ln2Qy37teJ/wsR/qJUg1ccc+KK200GpLroAoieyVZpqZlPLbKliDWiAHh54qtU1U
    ypmOnTTFzjEnARJ6YLpto8j3M+wcaXeH0HM/k45vQ5NoPHJtpscxEiS3TfcbGXLguyx0ccUgUXUV
    tdOxR0TTlP29RuqfxZZ/ViDEFwxHgDDrhjxXZlblrWUv4MTP6UCIENOB8SI9McOC4UddgrjBCdQm
    BCXWhKYEdCjVpi6Vt14SFBelQUSjUFEoVBRKFQUSgvSoRJ7Nfb3jVzavmOTH7feo6qTEyE64w+2p
    CoKoONKJJqiqnovSlzZTZjS14BB4HEJ8ie+S4PluLXDIgwI8wsvl+8u7+e29LVnWV3i9WtF7kjXa
    5zZjSLqha9kh0x6ii9Paqsi3U8g6pUtrTzDQPcFeqbvV1LdM+c945OcSPtK1cqtqiFAutCjCMulf
    kQRnQowjP3qEYRl0qEYRH70JRhGdQUYRF70JRhGXWoTAiLpQowiP3oUYRH1qCmBEXShKYER+9QUY
    RH70JTAiOhRhEdCUwITqEwIjoUwIToUwIj96gpgROe9CjCFz3oU0IjoUYQnQpgRHQlMCE6hMCEut
    CUwI6FGrTF0rbrwkKC9KgolGoKJQqCiUKgolBelQiUC6VCIKBdKhGEZVCIKBdaFGEZdK/IgjOhRh
    GfvUIwjLpUIwiP3oSjCM6gowiL3oSjCMutQmBEXShRhEfvQowiPrUFMCIulCUwIj96gowiP3oSmB
    EdCjCI6EpgQnUJgRHQpgQnQpgRH71BTAic96FGELnvQpoRHQowhOhTAiOhKYEJ1CYEJdaEpgR0KN
    WmLpW3XhIUF6VBRKNQUShUFEoVBRKC9KhEoF0qEQUC6VCMIyqEQUC60KMIy6V+RBGdCjCM/eoRhG
    XSoRhEfvQlGEZ1BRhEXvQlGEZdahMCIulCjCI/ehRhEfWoKYERdKEpgRH71BRhEfvQlMCI6FGER0
    JTAhOoTAiOhTAhOhTAiP3qCmBE570KMIXPehTQiOhRhCdCmBEdCUwITqEwIS60JTAjoUa//Z"
    />
4

1 回答 1

0

尝试根据.net 使用隐藏附件 - 在 html 电子邮件中嵌入附件图像

Dim plainView As AlternateView = AlternateView.CreateAlternateViewFromString("This is my plain text content, viewable by those clients that don't support html", Nothing, "text/plain")

Dim logo As New LinkedResource(Server.MapPath("images1/links/beach-icon.jpg"))

logo.ContentId = "embeddedimage"

Dim htmlView As AlternateView = AlternateView.CreateAlternateViewFromString("<p>Here is an embedded image.</p> <img src=cid:embeddedimage> <p>More text here</p>", Nothing, "text/html")

htmlView.LinkedResources.Add(logo)

objMM.AlternateViews.Add(plainView)
objMM.AlternateViews.Add(htmlView)
于 2013-03-25T15:34:21.650 回答