CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.web_forms Tags:
Item Type: NewsGroup Date Entered: 6/11/2008 1:41:05 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 8 Views: 1 Favorited: 0 Favorite
9 Items, 1 Pages 1 |< << Go >> >|
EllaW
Asp.Net User
Send HTML Email but Images Don't Go6/11/2008 1:41:05 AM

0/0

 Hi, there,

 

I am trying to send an confirmation email after a user is created. I used

<MailDefinition BodyFileName="register.html"
                Subject="Registration Confirmation - Natarom Admin"
                From="[email protected]"            
                IsBodyHtml="true" />
 

the email is sent with background color and texts, but images in an "images" folder are missing. Anyone has experience to tell me how to solve the problem?

Any help will be appreciated! Thanks!!

 

Ella
 


EllaW
need help and willing to help

jchandra
Asp.Net User
Re: Send HTML Email but Images Don't Go6/11/2008 3:28:39 AM

0/0

 Take a look at this MSDN article and see if it can help you.


Jimmy Chandra
Blogging at Incoherent Rambling

Mark this post as Answer if you think it helped you solve the problem.

EllaW
Asp.Net User
Re: Send HTML Email but Images Don't Go6/11/2008 4:11:36 AM

0/0

Hi, jchandra,

 Thanks a lot for your reply!!

I tried the  <EmbeddedObjects> from the link you sent to me. It does send images with the email, but the images are sent as attachment that the reciever needs download. They are not part of the mail....              It seems almost there.

 Thanks again for your help!

 

Ella


EllaW
need help and willing to help

sameer_khanjit
Asp.Net User
Re: Send HTML Email but Images Don't Go6/11/2008 5:30:56 AM

0/0

 http://aspalliance.com/1354_Sending_HTML_Mail_with_Embedded_Image_in_NET.8

 http://www.codeproject.com/KB/aspnet/inkrajesh.aspx

 http://www.codeproject.com/kb/IP/EmailByjebarson.aspx 


View Blog For Latest Updates
My Blog http://www.center4code.blogspot.com/

Don't forget to click ?Mark as Answer? on the post that helped you
jchandra
Asp.Net User
Re: Send HTML Email but Images Don't Go6/11/2008 7:07:51 AM

0/0

 Take a look at this example settings here:

 

        <MailDefinition BodyFileName="~/mailtemplates/newuser.htm" IsBodyHtml="true" From="[email protected]" Priority="normal" Subject="Your registration">
            <EmbeddedObjects>
                <asp:EmbeddedMailObject Name="Logo" Path="~/images/logo.gif" />
            </EmbeddedObjects>
        </MailDefinition>

  My Embedded object Name is Logo.  This is important.  You need it in your actual mailtemplate.  In my case it is the file newuser.htm which is assigned as BodyFileName attribute.

And here is my newuser.htm mail template:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>New User Registration</title>
</head>
<body>
    <img src="cid:Logo" alt="My Company Logo" />
    <table>
        <tr>
            <td>Thank you for registering.</td>
        </tr>
    </table>
</body>
</html>

  See the img src line.  I assign cid:Logo to it, which is the id of my embedded object.

Opening a registration email in Outlook Express (I have to use View, Message in HTML for it to show up properly.  And this is what I see:

Email 


Jimmy Chandra
Blogging at Incoherent Rambling

Mark this post as Answer if you think it helped you solve the problem.

EllaW
Asp.Net User
Re: Send HTML Email but Images Don't Go6/11/2008 10:56:08 AM

0/0

Hi, jchandra,

 I used code like this

<MailDefinition BodyFileName="news.html" Subject="Registration Confirmation - Natarom Admin"  From=[email protected] IsBodyHtml="true">
<EmbeddedObjects>

<asp:EmbeddedMailObject Name="todaynews_01" Path="~/Member/images/todaynews_01.gif" />

<asp:EmbeddedMailObject Name="todaynews_02" Path="~/Member/images/todaynews_02.gif" />

</EmbeddedObjects>

</MailDefinition>

but in the email I recieved (recieved in two mailboxes) , I need download and save the two images.

 

Thank you!


EllaW
need help and willing to help

jchandra
Asp.Net User
Re: Send HTML Email but Images Don't Go6/11/2008 11:14:51 AM

0/0

 This might be to security settings of your Outlook (if you are using that mail client) or Exchange which I really am not an expert about :(.  You might want to talk to your IT guys.


Jimmy Chandra
Blogging at Incoherent Rambling

Mark this post as Answer if you think it helped you solve the problem.

EllaW
Asp.Net User
Re: Send HTML Email but Images Don't Go6/11/2008 11:25:13 AM

0/0

Thanks a lot! I do think you way you show me works. I will redesign a html file, starting from 1 or 2 images, to try it agin.

 

Ella 


EllaW
need help and willing to help

EllaW
Asp.Net User
Re: Send HTML Email but Images Don't Go6/11/2008 11:31:29 AM

0/0

Hi, sameer_khanjit,

you also provided me  good solutions.

Thanks a lot!

 

Ella


EllaW
need help and willing to help

9 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
PC Annoyances: How to Fix the Most Annoying Things about Your Personal Computer Authors: Steve Bass, Pages: 176, Published: 2003
Mac Annoyances: How to Fix the Most Annoying Things about Your Mac Authors: John Rizzo, Pages: 156, Published: 2004
Special Edition Using Microsoft Windows XP Home Authors: Robert Cowart, Brian Knittel, Pages: 1141, Published: 2004
Office 2004 for Macintosh: The Missing Manual Authors: Mark H. Walker, Franklin Tessler, Pages: 736, Published: 2005
Photoshop Elements 4: The Missing Manual: The Missing Manual Authors: Barbara Brundage, Barbara Brundage Pogue Press, Pogue Press, Pages: 504, Published: 2006
Fixing Windows XP Annoyances: How to Fix the Most Annoying Things about the Windows OS Authors: David Karp, Pages: 219, Published: 2006
Media Relations Handbook for Agencies, Associations, Nonprofits, and Congress: For Agencies, Associations, Nonprofits And Congress Authors: Brad Fitch, Mike McCurry, Pages: 345, Published: 2004
Internet Annoyances: How to Fix the Most Annoying Things about Going Online Authors: Preston Gralla, Pages: 239, Published: 2005
Special Edition Using Microsoft Windows Vista Authors: Robert Cowart, Brian Knittel, Pages: 1489, Published: 2008
Net Words: Creating High-impact Online Copy Authors: Nick Usborne, Pages: 256, Published: 2001

Web:
How to code HTML emails You can't just attach your HTML file and images to an email and send it. .... who want to send emails to their prospects (but don't have permission) to go ...
Why don't pictures show up in the emails I send or receive? - Ask Leo! When someone opens that email, the mailer would go out to the server, ... Some email programs may understand HTML email, but not the referenced to images as hidden ... why don't my friend pictures show up in email on myspace when i send ...
Outlook issue with HTML form [Solved] I don't understand why it will open outlook express. .... To send email using a form you will need to have some script on the page, ... Traditionally, the file is given an .htm or .html extension, but a web page may have ... Express) Go to Menu Tools and... en.kioskea.net/faq/sujet-1205-outlook-no-image-display ...
HTML Emails - Taming the Beast | Think Vitamin Jun 3, 2006 ... But before you decide to plunge into HTML email design head first, ... Gmail will never see the images in any emails you send them by default. ... This ensures the empty placeholder images don’t get stretched and .... Don’t be ashamed if you’re forced to go down the tables and inline styles path. ...
Safe Email Viewing with Eudora But new email can come in that you haven't checked out and you could get burned. ... If you don't download HTML images, you won't download Web bugs. ... Go ahead and do that if you feel you must. (Please don't send them to me, though; ...
How to Create Great HTML Emails with CSS - WebReference.com- Some say the only solution is to go retro -- by ditching CSS and using old- school HTML for formatting, but what about serious CSS coders who can't even type a font ... Spammers frequently abuse HTML images, so some email clients don 't ...
HTML Email - CSS Email - Styled Email Messages - Pros and Cons But HTML email can have drawbacks. If you use HTML to write or format messages ... Styled email, with images and fancy text, can be more pleasant to read than plain text. ... While it's possible to see that the links don't go where they appear to go, ... HTML emails make it much easier to send non-English email. ...
Why HTML in E-Mail is a Bad Idea Wired News posted an interesting piece Friends Don't Email Friends HTML, which is worth reading. ... If you are on mailing lists or newsletters that send HTML email, ... I'm afraid that unchecking the HTML images, etc. button in Apple Mail ... Go to Tools-Options-Outgoing Mail-Message Formatting and tick the box ...
Configuring Mail Clients to Send Plain ASCII Text Mar 24, 2004 ... There are now a variety of HTML/MIME programs, including but not limited ... Go to Keyword: Preferences (or choose Preferences from the .... If your recipients don't have MIME, then just turn off the QP ...... [IMAGE] Envision is looking to purchase used ophthalmic .... Send email to: [email protected].
Why Attached Microsoft Documents Are A Bad Thing Please don't send Word Documents by email! ... makes 360 MB of only email. Well, harddisks are cheap today .. but some mail servers might eventually go full. ... You can then attach the new HTML document instead of your Word document. ...

Videos:
Gotta Digg Hey Diggers! Here's a little Digg love from me to you :) **UPDATE 12/23/08** Download the mp3 for free at http://www.kinagrannis.com ...
My Peaceful Solution (interpretation of Willie's song) A PEACEFUL SOLUTION (original by Willie Nelson, adapted and altered by invitation) Am / E7 There is a peaceful solution called a peace ...
A Reminder For Our Unofficial Trailer Contest -EDIT-The music that was used for the video is from a Taiwanese Drama called 鬥牛。要不要 or Bullfighting. Go here to download the soundtrack for ...
Auto Responders :How To Get Your SubScribes To Trust You This Auto Respponder Article was brought to you by www.freeguide.ws/r/virals/autorespon.html Every online business provides great service to ...
Try it Yourself: Episode 11 - IP & Batch File Tricks & Hacks High Quality Version: http://dillonp23.net/videos/tiy/tiy11.mp4 Hey and welcome to this episode of try it yourself. http://www.myforumz.org ...
Stephen Lynch - Kill a Kitten A Photo Music Video for the Stephen Lynch Song "Kill a Kitten" It is a controversial song, but it's just a song. Fresh out of the Greene Blob oven ...
Try it Yourself: Episode 12 - IP & Batch File Tricks & Hacks High Quality Version: http://dillonp23.net/videos/tiy/tiy12.mp4 Hey and welcome to this episode of try it yourself. http://www.myforumz.org ...
Human Computation Google TechTalks July 26, 2006 Luis von Ahn is an assistant professor in the Computer Science Department at Carnegie Mellon University, where ...
How to Get Free Steam games on Pacsteam Tutorial READ DESCRIPTION FOR HELP!!! IF THE ANSWER IS NOT IN HERE THEN POST ON THE PACSTEAM FORUMS FOR HELP. How to get every Steam game for free. Get ...
Synched Up Show: Clear Is Cool In this episode: Escape key makes an escape, the G-1 glass top pool table by Nottage Design, the British Video Game Awards, Blockbuster Video ...




Search This Site:










how do you prevent "browser history polution?"

control doesn't contain definition

webrequest on a postback event

adding a java applet to a page

outputcache and server.transfer?

hyperlink

date format

code not firing

check last value of a textbox

losing track of dynamically loaded controls

reduce view state size

the return of the frame!

sending e-mail from vwd express

obtaining column info and displaying it

get page name

creating a word document using asp.net with c#

insert datagrid/datatable data into a new sql database

working with selected text in textbox

binding to label web control (kinda a newbie question)

create thumbnails and shrink jpeg

another question regarding dates, again!!

requiredfieldvalidator problem

access denied :(......please help

strange problem: textbox gives the old text value, not the current text

multipage, viewstate and placeholders - viewstate doesn´t presist.

listbox, .net, vb

problem with windows service and asp.net slightly ot

post back

google page rank?

accessing listbox selecteditem within a web user control

  Privacy | Contact Us
All Times Are GMT