Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP.NET email - messages ending upin the '\Inetpub\mailroot\Queue'

Reply
Thread Tools

ASP.NET email - messages ending upin the '\Inetpub\mailroot\Queue'

 
 
Robert Salasidis
Guest
Posts: n/a
 
      03-29-2005
I am trying to get an email application working in ASP.Net

I was trying to use a remote SMTP server (on my web site - but hosted
by a third party), but was constantly getting the 'Could not access
'CDO.Message' Object ' message.

I tried all teh suggestions I could find on Google, ut was unable to
get it to work.

In the end I decided to use my local host (using my local IP address.

The program completes as expected, no exceptions are thrown.

the problem is that all my emails are ending up in the
\Inetpub\mailroot\Queue directory on my local computer (running the
SMTP server)

The sizes of the emails are accurate.

Any ideas?



the relevant code is listed below

for(;(readStr = srEmail.ReadLine()) != null; )
{
try
{
try
{
MailMessage Message = new MailMessage();

Message.To = readStr;
Message.From = EmailAccountTextBox.Text;
Message.Subject = SubjectTextBox.Text;
Message.Body = htmlString;

foreach (string s1 in attachmentStrings)
{
MailAttachment myAttachment = new
MailAttachment(s1, MailEncoding.Base64);
Message.Attachments.Add(myAttachment);
}
try
{
// SmtpMail.SmtpServer =
SMTPServerTextBox.Text;
SmtpMail.SmtpServer = "192.168.0.5";
// SmtpMail.SmtpServer =
"216.119.106.22";
SmtpMail.Send(Message);
}
catch(System.Web.HttpException ehttp)
{
SendingLabel.Text = "Error Sending
Email - " + readStr + " Message - " + ehttp.ToString();
break;
}
}
catch(IndexOutOfRangeException)
{
}
}
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Email attachments ending with attachment ".PPS" not automatically opening meteore Computer Information 2 11-24-2011 05:24 PM
Email attachment​s ending with ".PPS" not automatica​lly opening with Power point? meteore Computer Information 0 11-24-2011 02:18 PM
wx.ToplevelWindow.SetIcon: Native MS Windows error dialog pops upin wxPython app, no exception raised, no stack trace Laszlo Nagy Python 3 09-13-2007 02:08 PM
email package and line ending Manlio Perillo Python 1 12-27-2005 05:04 AM
Problems with posting email/news messages via OE6 and working with Web-based email Alex Vinokur Computer Support 2 06-18-2004 12:56 PM



Advertisments