473,322 Members | 1,431 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Embed Image and send E-mail to Outlook Express

pbala
37
How to insert a image in message body and send it to Outlook express using SMTP?

I used this code to attach a image file, i want to Embed the images in message..

Expand|Select|Wrap|Line Numbers
  1. public void SendMail(string from, string to, string subject, string body)
  2.         {
  3.             string filname = "G:\\Notes\\Sample Project\\Bday\\bh.gif";
  4.             MailMessage mail = new MailMessage(from, to, subject, body);
  5.             mail.Attachments.Add(new Attachment(filname));
  6.             SmtpClient smtpc = new SmtpClient();
  7.             smtpc.Host = "smtp.gmail.com";
  8.             smtpc.Send(mail);
  9.             mail.Dispose();
  10.         }
Jun 15 '09 #1
1 2821
tlhintoq
3,525 Expert 2GB
You're probably having trouble finding examples on-line because of termonology.

Try searching for "inline image" instead of 'embedded'.
Also I find that Google is allot more helpful if I include the programming language. For example, this search got me lots of good examples with the search "C# inline image email"

http://www.google.com/search?client=...UTF-8&oe=UTF-8
Jun 15 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Anna | last post by:
Hi all. I don't have a very deep understanding of CSS and this question might sound stupid for you. Sorry for that. Can the overflow CSS property be applied to the embed tag? I have an embed...
1
by: Lloyd Dupont | last post by:
I want to create an image chooser popup window. The popup window/frame is easier to define as an .aspx but I don't know how to compile this .aspx. Create a whole Page by code is quite cumbersome,...
1
by: snicks | last post by:
I have a series of XLS files which I need to embed into a PowerPoint presentation on an IIS server. I’ll be using VB.NET. I’ve tried using an ASPOSE.PowerPoint control to do this and it does...
24
by: Manuel | last post by:
Is it possible to embed an image, like a company logo in a CDOSYS generated message? If yes, I´ll apreciate some code sample. I´ve been able to format messages in html the way I like, but I...
1
by: MRe | last post by:
Hi, Is there any way to write a graphical program in CSharp that could be embedded into Word2000. I've read .NET doesn't support creation of ActiveX controls (unless done using C++) but is there...
6
by: qualitychecker | last post by:
Hello thanks for your help.. I try to reference a PHP module from within a HTML file, see below ---------------------------------------- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">...
1
by: johnjone | last post by:
I have a snippet header here: Content-type: multipart/form-data, boundary=AaB03x --AaB03x content-disposition: form-data; name="field1" Joe Blow --AaB03x ...
1
by: ttamilvanan81 | last post by:
Hai everyone, I am working with a Image/Video Application. I need to display and play any video file in browser. Now i am using the following Embed Tag. <OBJECT ID="mediaPlayer" ...
2
dream party
by: dream party | last post by:
Inserting a Flash (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the template. However, I...
21
by: neovantage | last post by:
Hey All, I want to embed logo while upload an image. I mean when i upload an image, i want to embed the logo of the website in that uploaded image. Kindly help me out to sort out my problems...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.