Menu

Need help regrading inline graphic email!

serene
2006-01-23
2013-04-02
  • serene

    serene - 2006-01-23

    Hi,i am currently working on a project which need to send an inline graphic email from calling a stored procedure from MSSQL Server.The problem is i have no idea how the contentID works. I am able to save the graphic as an attachment in the database.but somehow the graphic in not shown as an inline image in the email.Besides this as i said i need to call stored procedure to send out the email,so is there any configuration of DotNetOpenMail for me to set in my stored procedure?Hope someone can help me on this.Really appreciate for that.Is URGENT!!!

     
    • Mike Bridge

      Mike Bridge - 2006-01-23

      Hi-

      You should be able to do this by using a combination of the example "An email with an inline graphic" and "An email with a text file created in memory".  These are at http://dotnetopenmail.sourceforge.net/examples.html

      If that doesn't work, I see from looking at the bug list (for some reason it's not notifying me when bugs are posted) that there may be a line missing in the AddAttachment method.  This may or may not affect what you're trying to do.

      -Mike

       
      • serene

        serene - 2006-02-06

        Hi,
        According to the example code of "an email with an inline graphic" and "an email with a text file created in memory",all the data has been hard coded.I have doubt on hows the content id is generated.Could you please roughly explain this to me?My program has to be saved all the email details to a database and then run a scheduler to send out the email. Can this open-source library able to support multiple attachment? I will be appreciate if you have more sample code to provide me or any code that can guide me.Thanks.

        --Serene

         
        • Mike Bridge

          Mike Bridge - 2006-02-06

          Hi-

          Yes, this will work, but you may want to wait until the next revision---which I'll have time for soon, with luck.  There are currently some bugs with the attachment encoding which may cause some problems with what you're trying to do.

          -Mike

           
    • Duray AKAR

      Duray AKAR - 2006-02-08

      if you have an inline graphic attachment with a contentID = "MyPicture.jpg"

      your img tag src should read :

      src="cid:MyPicture.jpg"

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.