hi team i have i web page that send emails by using a HTM file in the email
<html>
<body bgcolor="#ffffcc">
<p>
<img alt ="" src ="../Pictures/logo1.jpg" style="width: 612px; height: 62px" /></p>
<h2 style="color: #FF6600">Requesting New IDS Access!</h2>
<p>
This Email Confirms That You Have a New Access Request.
</p>
<p>
Please Review The New Access Request For:
</p>
<table>
<tr>
<td>
<b>User :</b>
</td>
<td>
$$UserName$$
</td>
</tr>
<tr>
<td>
<b>Password:</b>
</td>
<td>
<%Password%>
</td>
</tr>
</table>
<p>
Dont Repply To This Email, This is Just For Your Information.
</p>
</body>
</html>
but when i received the email i dont see the image that i attached in the HTM file i only see a X mark
this is my code
Dim mm2 As New MailMessage(emailtxt, Name)
Dim reader As New StreamReader(Server.MapPath("~/Email template/ChangeAccess.htm"))
Dim readFile As String = reader.ReadToEnd()
Dim myString As String = ""
myString = readFile
myString = myString.Replace("$$UserName$$", TXTNAT.Text)
'(2) Assign the MailMessage's properties
mm2.Subject = "Requesting New Access For Metlock ID Account " & " " & TXTNAT.Text & " "
mm2.Body = myString.ToString()
any idea why i can only see an "X" mark in the email, i can see all the information correclty but the image no
jibarra
Member
39 Points
50 Posts
Send email with image embeded
Jan 04, 2013 10:53 PM|LINK
hi team i have i web page that send emails by using a HTM file in the email
<html> <body bgcolor="#ffffcc"> <p> <img alt ="" src ="../Pictures/logo1.jpg" style="width: 612px; height: 62px" /></p> <h2 style="color: #FF6600">Requesting New IDS Access!</h2> <p> This Email Confirms That You Have a New Access Request. </p> <p> Please Review The New Access Request For: </p> <table> <tr> <td> <b>User :</b> </td> <td> $$UserName$$ </td> </tr> <tr> <td> <b>Password:</b> </td> <td> <%Password%> </td> </tr> </table> <p> Dont Repply To This Email, This is Just For Your Information. </p> </body> </html>but when i received the email i dont see the image that i attached in the HTM file i only see a X mark
this is my code
Dim mm2 As New MailMessage(emailtxt, Name) Dim reader As New StreamReader(Server.MapPath("~/Email template/ChangeAccess.htm")) Dim readFile As String = reader.ReadToEnd() Dim myString As String = "" myString = readFile myString = myString.Replace("$$UserName$$", TXTNAT.Text) '(2) Assign the MailMessage's properties mm2.Subject = "Requesting New Access For Metlock ID Account " & " " & TXTNAT.Text & " " mm2.Body = myString.ToString()any idea why i can only see an "X" mark in the email, i can see all the information correclty but the image no
Prashant Kum...
Star
12528 Points
2024 Posts
Re: Send email with image embeded
Jan 04, 2013 11:45 PM|LINK
You can refer to this on how to embed an image in an email
http://www.systemnetmail.com/faq/4.4.aspx
stockcer
Member
518 Points
133 Posts
Re: Send email with image embeded
Jan 05, 2013 03:45 AM|LINK
ASP.NET Arvixe Liaison
James River Webs, Inc.
geniusvishal
All-Star
15157 Points
2950 Posts
Re: Send email with image embeded
Jan 05, 2013 03:52 AM|LINK
Refer this Knowledge Base ...
http://support.microsoft.com/kb/314201
My Website
www.dotnetvishal.com
jibarra
Member
39 Points
50 Posts
Re: Send email with image embeded
Jan 08, 2013 01:04 AM|LINK
Thanks it works but it only send the image not my full HTML
stockcer
Member
518 Points
133 Posts
Re: Send email with image embeded
Jan 08, 2013 01:59 AM|LINK
A Couple of things to try.
ASP.NET Arvixe Liaison
James River Webs, Inc.