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!!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!!!
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
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
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
if you have an inline graphic attachment with a contentID = "MyPicture.jpg"
your img tag src should read :
src="cid:MyPicture.jpg"