Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do I insert image in email body

1 view
Skip to first unread message

Digvijay Singh

unread,
Nov 24, 2009, 6:45:46 AM11/24/09
to
hi,

I have to send an email with my company logo
in it.I am using ASP.Net 2.0.
My code looks like this
public static void SendEmail(string strSubject, string strTo, string
strFrom, string strMailMessage)

{

string strStyle = "style='font: 12px/18px Arial, Helvetica, sans-serif '";

MailMessage mail = new MailMessage();

mail.To = strTo;

mail.From = strFrom;

mail.BodyFormat = MailFormat.Html;

mail.Subject = strSubject;

mail.Body = "<font " + strStyle + ">" + strMailMessage + "</font>";

SmtpMail.SmtpServer =
ConfigurationManager.AppSettings["MailServer"].ToString();

if (strTo != "")

SmtpMail.Send(mail);

}

How do i add logo below this mail

Thanks in advance

Digvijay


Patrice

unread,
Nov 24, 2009, 6:52:41 AM11/24/09
to
Hello,

> How do i add logo below this mail

See :
http://www.systemnetmail.com/faq/4.4.aspx

--
Patrice


Digvijay Singh

unread,
Nov 24, 2009, 9:39:03 AM11/24/09
to
Hi Patrice,

Thanks for your reply.
The code is working now :)

Thanks
Digvijay

"Patrice" <http://scribe-en.blogspot.com/> wrote in message
news:e7QciyP...@TK2MSFTNGP02.phx.gbl...

0 new messages