Is there a simple way to send an email in C# without any extra DLLs?

Any help on this would be appreciated.



using System.Net.Mail;

        public static string sendMail(string theBody, string toEmail, string fromEmail, string subject, string aReturn)
                MailMessage tempMess =
                    new MailMessage(fromEmail, toEmail,
                                    subject, theBody);
                tempMess.IsBodyHtml = true;
                SmtpClient tempClient = new SmtpClient();
                return aReturn;
            catch (Exception E)
                return E.ToString();


You need something like this in the webconfig

<smtp deliveryMethod="Network" from="">
<network host="" defaultCredentials="false" userName="email@hostcom" password="pass"/>

if you use VS 2003
add project->reference->System.Web.Net;