Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

MailMessage m = new MailMessage();
		m.To = email.Value;
		m.From = "jack@abc.com";
		m.Subject = "2005 Pictures";
		m.BodyFormat = MailFormat.Html;
		m.Body = "Here are the pictures you requested. The pictures you requested to be printed are on their way";

		//Add File Attachments
		string[] pics = files.Value.Split(';');

		foreach (string s in pics)
		{
			if (s != string.Empty)
			{
				string localPath = s.Replace("http://localhost/CatalogView", "");
				m.Attachments.Add(new MailAttachment(Server.MapPath(string.Empty) + localPath, MailEncoding.UUEncode));
			}
		}

		SmtpMail.SmtpServer = "10.5.5.5";
		SmtpMail.Send(m);

 

The attachments are sent in the message, not as attachments...

 

begin 666 c439827a.jpg

M_]C_X `02D9)1@`!`0$`2 !(``#_Y0!*345$24%"24Y?1$E$0B C34(E.GM!

M0SDP0T%$-2TQ-D5$+30P0C8M.3)!.2TU,CDQ,C Q,#9%,39]5$M85$M!24I5

M53HE34(C_]L`0P`%`P0$! ,%! 0$!04%!@<," <'!P</"PL)#!$/$A(1#Q$1

M$Q8<%Q,4&A41$1@A&!H='1\?'Q,7(B0B'B0<'A\>_]L`0P$%!04'!@<." @.

M'A01%!X>'AX>'AX>'AX>'AX>'AX>'AX>'AX>'AX>'AX>'AX>'AX>'AX>'AX>

M'AX>'AX>'AX>_\ `$0@`Y %\`P$B``(1`0,1`?_$`!\```$%`0$!`0$!````

M```````!`@,$!08'" D*"__$`+40``(!`P,"! ,%!00$```!?0$"`P`$$042

M(3%!!A-180<B<10R@9&A""-"L<$54M'P)#-B<H()"A87&!D:)28G*"DJ-#4V

M-S@Y.D-$149'2$E*4U155E=865IC9&5F9VAI:G-T=79W>'EZ@X2%AH>(B8J2

MDY25EI>8F9JBHZ2EIJ>HJ:JRL[2UMK>XN;K"P\3%QL?(R<K2T]35UM?8V=KA

MXN/DY>;GZ.GJ\?+S]/7V]_CY^O_$`!\!``,!`0$!`0$!`0$````````!`@,$

M!08'" D*"__$`+41``(!`@0$`P0'!00$``$"=P`!`@,1! 4A,08205$'87$3

M(C*!"!1"D:&QP0DC,U+P%6)RT0H6)#3A)?$7&!D:)B<H*2HU-C<X.3I#1$5&

M1TA)2E-455976%E:8V1E9F=H:6IS='5V=WAY>H*#A(6&AXB)BI*3E)66EYB9

MFJ*CI*6FIZBIJK*SM+6VM[bYNL+#Q,7&Q\C)RM+3U-76U]C9VN+CY.7FY^CI

MZO+S]/7V]_CY^O_:``P#`0`"$0,1`#\`O[.:79S5GR^:#'S7V?,?-6*VSVI=

ME60O2@H:+A8K;*4)[59$=.\NBX[%8)QTI=AJR$I=A]*7,%BLL?/6CRZM",]J

M41^U*X^4K>6<4HCYZU9\JE$9Z4KCY2N(^.E+L XJR(C2F*BX<I5"#%."?A5D

M1TX1]:7,/E*PC/K1Y9[&K0B-*(N1Q2<BN4J[#Z4",8JV8@/:E$?'. />CF%R

ME7RN*!'STXJX(O:@1<XXS1<=BGY?M3EB]JM+%D9[>M2"`]:7,'*4_*X%.$9J

MYY!V@X./6GI;,>B,?PI\P^0I>4,XI?*![5H"TD)P$;\JE73[AONPR'_@)I.5

 

I've searched the web a little, but was wondering if anyone has had this problem b4?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...