Send email with logo at top

G

Guest

Hello -

I want to be able to send an email from my app that contains the logo from
my website at the top of it. I have searched the web and there are many
components out there, but isn't there an easier way? My logo is quite simple.

Any help will be greatly appreciated!
 
T

Tod Birdsall

Hi Sandy,

Here is the first item that comes up on Google if you do a search for
"asp.net html e-mail":
http://www.aspheute.com/english/20000918.asp

It has an example of how to code an html e-mail sent using asp.net. If
this is not what you are looking for, you will need to be more
specific.

If you are not a software developer and you need some custom work done,
feel free to contact me directly.

Hope this helps.

Tod Birdsall, MCSD for .Net
http://tod1d.blogspot.com

Help me get free Sony PSP and get one for yourself:
http://tinyurl.com/8n4hg
 
G

Guest

Tod -

Thanks for your response! I guess I wasn't very clear. I have a "forgotten
password" page on my website that sends an email advising the person of their
password. It is just plain.

I wanted to add my logo at the top of the email - I don't want to attach a
file; I want to embed the logo at the top of the email.

Again, any suggestions will be greatly appreciated!
 
G

Guest

Hi,

If you have the top image on your server, it's works great.

You can do something like this.

msgMail.BodyFormat = MailFormat.Html;
string MyBody = "<img src=\"http://www.sidan.com/logo.gif\" alt=\"Logotype\"
/>"
msgMail.Body = MyBody;

/m
 
G

Guest

Mikael -

Thanks for your response! I tried your solution and it worked, except that
all I could get through my email was the alt part. I have quite a bit of
security in force on my system including a spam blocker. I suspect the
problem is my settings... which leads me to ask -- probably a lot of people
have similar settings. How can I get it to display despite their settings?

I get many emails where an entire website is mailed to me. Any idea how
this is done?

Thanks again for your response.

--
Sandy


MikaelÃ… said:
Hi,

If you have the top image on your server, it's works great.

You can do something like this.

msgMail.BodyFormat = MailFormat.Html;
string MyBody = "<img src=\"http://www.sidan.com/logo.gif\" alt=\"Logotype\"
/>"
msgMail.Body = MyBody;

/m

--
yours sincerely
Mikael Åhlén [.net Developer]


Sandy said:
Tod -

Thanks for your response! I guess I wasn't very clear. I have a "forgotten
password" page on my website that sends an email advising the person of their
password. It is just plain.

I wanted to add my logo at the top of the email - I don't want to attach a
file; I want to embed the logo at the top of the email.

Again, any suggestions will be greatly appreciated!
 
B

Ben Amada

Hi,

According to the System.Web.Mail website, System.Web.Mail doesn't support
embedding images into e-mails, but aspNetEmail does support this.

See:
http://www.systemwebmail.com/faq/3.3.aspx

I haven't used aspNetEmail, but on their homepage, it says you can "Create
Embedded Images from Byte Arrays". So I suppose that means if you have a
GIF or JPG of your company logo, you could load that image into a byte array
and embed it in an e-mail. It looks like there a whole host of things you
can do with aspNetEmail.

http://www.aspnetemail.com/

Ben
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top