﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » .NET Forums » General .NET Discussion  » Sending Email</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 01:39:35 GMT</lastBuildDate><ttl>20</ttl><item><title>Sending Email</title><link>http://forum.strataframe.net/FindPost11557.aspx</link><description>I am planning to allow users to send mail messages via my application and was wondering what you use?</description><pubDate>Wed, 19 Sep 2007 12:54:15 GMT</pubDate><dc:creator>Michael Reese</dc:creator></item><item><title>RE: Sending Email</title><link>http://forum.strataframe.net/FindPost11592.aspx</link><description>Nah, for just email, you can use the .NET classes.&amp;nbsp; However, I think that email factory was designed for .NET 1.0/1.1, which I don't think had near as many things in the System.Net namespace.&amp;nbsp; The mail implementation is much more robust in .NET 2.0.&lt;/P&gt;&lt;P&gt;But, there is certainly a market for networking related .NET tools.&amp;nbsp; You might also try &lt;A href="http://www.nsoftware.com/"&gt;http://www.nsoftware.com/&lt;/A&gt;.&amp;nbsp; They have the IPWorks suite, which contains lots of stuff for HTTP servers, socket communications, and tons of other stuff.</description><pubDate>Wed, 19 Sep 2007 12:54:15 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Sending Email</title><link>http://forum.strataframe.net/FindPost11585.aspx</link><description>Ok thanks, &lt;/P&gt;&lt;P&gt;I was looking at the Email Factory for .Net which is about $299</description><pubDate>Wed, 19 Sep 2007 11:15:51 GMT</pubDate><dc:creator>Michael Reese</dc:creator></item><item><title>RE: Sending Email</title><link>http://forum.strataframe.net/FindPost11572.aspx</link><description>Good job, guys.&amp;nbsp; Don't forget that you can also make the body of an email HTML by setting the IsBodyHtml property after you set the Body property on the message.&amp;nbsp; It allows you to include formatting and such.</description><pubDate>Wed, 19 Sep 2007 09:00:28 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Sending Email</title><link>http://forum.strataframe.net/FindPost11569.aspx</link><description>something like this perhaps&lt;br&gt;
&lt;br&gt;
        Dim mail As New MailMessage()&lt;br&gt;
        Dim smtp As New SmtpClient(Me.txtSMTPServer.Text)&lt;br&gt;
&lt;br&gt;
        ' form the email, catch errors and report&lt;br&gt;
        Try&lt;br&gt;
            mail.IsBodyHtml = True&lt;br&gt;
&lt;br&gt;
            'set the addresses&lt;br&gt;
            mail.From = New MailAddress("SDSILogtool@sigmadatainc.com", "SDSI Logtool Utility")&lt;br&gt;
            mail.To.Add(Me.txtEmailAddress.Text)&lt;br&gt;
&lt;br&gt;
            'set the content&lt;br&gt;
            mail.Subject = "Backup Report - " &amp; Me.txtCompanyName.Text &amp; " " &amp; Me.txtCurrentLogDate.Text&lt;br&gt;
            mail.Body = emailbody&lt;br&gt;
&lt;br&gt;
            'to authenticate we set the username and password properites on the SmtpClient&lt;br&gt;
            smtp.Credentials = New Net.NetworkCredential(Me.txtSMTPUsername.Text, Me.txtSMPTPassword.Text)&lt;br&gt;
        Catch ex As System.Exception&lt;br&gt;
            MsgBox("Error forming email. " &amp; ex.Message.ToString)&lt;br&gt;
        End Try&lt;br&gt;
&lt;br&gt;
        'send, catch errors and report&lt;br&gt;
        Try&lt;br&gt;
            smtp.Send(mail)&lt;br&gt;
        Catch ex As System.Exception&lt;br&gt;
            MsgBox("Error sending email, check SMTP settings, or contact your administrator." &amp; ex.Message.ToString)&lt;br&gt;
        End Try</description><pubDate>Wed, 19 Sep 2007 08:55:44 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Sending Email</title><link>http://forum.strataframe.net/FindPost11565.aspx</link><description>.NET has classes to do this internally.  See the System.Net.Mail namespace and this article&lt;br&gt;
&lt;br&gt;
http://www.systemnetmail.com/default.aspx&lt;br&gt;
&lt;br&gt;
This works fine if your users are on your network and they will use your smtp server to do the sending.  However, in my case, many of my users are remote and the only way is to configure the system to use THEIR smtp servers (whaterver that might be).  &lt;br&gt;
&lt;br&gt;</description><pubDate>Tue, 18 Sep 2007 22:22:25 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>