473,322 Members | 1,755 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.

How to embade an image into email using mail.mailmessage in ASP.NE

Hi;

I am using ASP.NET 1.0 and Mail.Mailmessage class to send emial and I have
used it for sending text email, now I have to send an email with Embadded
image into that email, how to do that using the same class and ASP.NET 1.0
using VB.NET.

I am using following code:

Dim Msg As New Mail.MailMessage
Msg.Subject = "Westown Pre-registration Update"

Msg.BodyFormat = Mail.MailFormat.Html
Msg.To = "es********@gmail.com"
Msg.Body = "I need to send an image embadded here"
Msg.From = "es**@yahoo.com"

Mail.SmtpMail.SmtpServer =
ConfigurationSettings.AppSettings("SMTPServer")
Mail.SmtpMail.Send(Msg)
Please, provide me the sample code for that.

--
Essa, M. Mughal
Software Developer
Toronto, Canada
May 30 '06 #1
3 1439
http://www.systemwebmail.com/faq/3.3.aspx

Essa wrote:
Hi;

I am using ASP.NET 1.0 and Mail.Mailmessage class to send emial and I have
used it for sending text email, now I have to send an email with Embadded
image into that email, how to do that using the same class and ASP.NET 1.0
using VB.NET.

I am using following code:

Dim Msg As New Mail.MailMessage
Msg.Subject = "Westown Pre-registration Update"

Msg.BodyFormat = Mail.MailFormat.Html
Msg.To = "es********@gmail.com"
Msg.Body = "I need to send an image embadded here"
Msg.From = "es**@yahoo.com"

Mail.SmtpMail.SmtpServer =
ConfigurationSettings.AppSettings("SMTPServer")
Mail.SmtpMail.Send(Msg)
Please, provide me the sample code for that.

May 30 '06 #2
Hi;

But, I don't want to use 3rd Party tool for that functionality, can't we do
in ASP.NET 1.1 using the mail API?

I don't want to install 3rd party tool at client web server.

Thanks
--
Essa, M. Mughal
Software Developer
Toronto, Canada
"Ray Booysen" wrote:
http://www.systemwebmail.com/faq/3.3.aspx

Essa wrote:
Hi;

I am using ASP.NET 1.0 and Mail.Mailmessage class to send emial and I have
used it for sending text email, now I have to send an email with Embadded
image into that email, how to do that using the same class and ASP.NET 1.0
using VB.NET.

I am using following code:

Dim Msg As New Mail.MailMessage
Msg.Subject = "Westown Pre-registration Update"

Msg.BodyFormat = Mail.MailFormat.Html
Msg.To = "es********@gmail.com"
Msg.Body = "I need to send an image embadded here"
Msg.From = "es**@yahoo.com"

Mail.SmtpMail.SmtpServer =
ConfigurationSettings.AppSettings("SMTPServer")
Mail.SmtpMail.Send(Msg)
Please, provide me the sample code for that.

May 30 '06 #3
As the link says, you can't.

Essa wrote:
Hi;

But, I don't want to use 3rd Party tool for that functionality, can't we do
in ASP.NET 1.1 using the mail API?

I don't want to install 3rd party tool at client web server.

Thanks

May 31 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: mike | last post by:
I have created a side application in VB.NET which reads rows from a DB and builds an email message. when i have a long string the the mailmessage.body or the mailmessage, it puts in an...
0
by: Balakrsihna | last post by:
Hi All, Can anyone tell me how to replace an image in MS Word 2003 using c#.net. I am converting an html file to word doc and sending this as attachment using System.Web.Mail; the...
2
by: Fabio Negri Cicotti [MCP] | last post by:
Hi all. How do I do to display a picture on e-mail's body when visualized using Outlook Express? I've set the properties bellow but till now I've got the image shown as that box with a red...
1
by: Srinivas | last post by:
Hi, I am using ASP.NET SmtpMail to send email using the following code public void SendEmail(string From, string To, string Subject, StringBuilder Message, string Attachment, string...
6
by: Eduardo Rosa | last post by:
Somebody knows how I queue email using .Net? thanks a lot
3
by: Frank | last post by:
I am attempting to develop a solution where I handle bounced e-mails. I wish to field all bounced emails in a custom email account such a bounced@mycompany.com From the aricle at...
4
Frinavale
by: Frinavale | last post by:
Introduction Many .NET applications will require an email be sent out for various reasons. This article will give a quick examples on how to send an email using VB.NET. The examples given can...
3
by: =?Utf-8?B?Um9iZXJ0IEUuIEZsYWhlcnR5?= | last post by:
Using .NET 2.0 in Visual Studio 2005, I am attempting to send an email. I am utilizing Yahoo as the SMTP provider. I am able to send emails using the setup instructions below using Outlook. When...
2
by: Eugene Vital | last post by:
Hi all I am having trouble with sending email via a C#2.0 application, I use the same settings as I use in Outlook but I cannot get email to send. I am trying to use SSL on port 465 and get the...
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
1
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...
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.