G
Guest
Hiya, I've had a good poke around the System.Web.Mail class, and I 'think' everything is okay, but, I just cannot get it:
[CODE
using System
using System.Web.Mail
namespace ConsoleApplication
/// <summary
/// Summary description for Class1
/// </summary
class Class
/// <summary
/// The main entry point for the application
/// </summary
[STAThread
static void Main(string[] args
MailMessage DabzMail = new MailMessage()
DabzMail .From = "(e-mail address removed)"
DabzMail .To = "(e-mail address removed)"
DabzMail .Subject = "Blah"
DabzMail .Body = "hehehehehehe"
SmtpMail.SmtpServer = "mail.btinternet.com"
SmtpMail.Send(DabzMail)
[CODE
I also add a reference to System.Web.dll
When I compile using Debug/Start, a warning window pops up saying:
"An unhandled exception of type 'System.Web.HttpException' occurred in system.web.dl
Additional information: Could not access 'CDO.Message' object.
Anyone explain what's happening... My Visual C# Step by Step book doesnt explain this sorta stuff!!! ;
Dab
:
[CODE
using System
using System.Web.Mail
namespace ConsoleApplication
/// <summary
/// Summary description for Class1
/// </summary
class Class
/// <summary
/// The main entry point for the application
/// </summary
[STAThread
static void Main(string[] args
MailMessage DabzMail = new MailMessage()
DabzMail .From = "(e-mail address removed)"
DabzMail .To = "(e-mail address removed)"
DabzMail .Subject = "Blah"
DabzMail .Body = "hehehehehehe"
SmtpMail.SmtpServer = "mail.btinternet.com"
SmtpMail.Send(DabzMail)
[CODE
I also add a reference to System.Web.dll
When I compile using Debug/Start, a warning window pops up saying:
"An unhandled exception of type 'System.Web.HttpException' occurred in system.web.dl
Additional information: Could not access 'CDO.Message' object.
Anyone explain what's happening... My Visual C# Step by Step book doesnt explain this sorta stuff!!! ;
Dab
: