.NETGURU
Queued email using MailMessage
Messages   Related Types
This message was discovered on ASPFriends.com 'ngfx-mail' list.


Steve Shier
Maybe I missed this, but Is it possible to have Queued email with the
MailMessage object?

In Classic ASP, I've used ASPQueueMail (serverobjects.com)
which is a regular COM object. I need to send up to twenty separate emails
on a single page and they are quite time consuming to do synchronously,
making the page
slow to perform. I'd like to dump them into a queue and have the IIS SMTP
server take care of them at its leisure. I notice that the SMTP server has
a queue file but I'm not sure how to use it.

Another alternative is to use a separate app which does nothing but send
emails -I've built one of these in C#, but I'd like something simpler for
this app. A final alternative
is to take the ASPQueueMail object and put an RCW around it.

Any ideas for using the MailMessage object itself?

thanks,

Steve Shier

Reply to this message...
 
    
G. Andrew Duthie
IIRC, the IIS SMTP service will automatically queue messages if it can't
send them immediately. You shouldn't need to worry about anything other
than setting the mail fields and the mail server, and calling Send.

hth,

--
G. Andrew Duthie
Graymad Enterprises, Inc.
http://www.graymad.com
Click here to reveal e-mail address
Author, ASP.NET Step By Step
http://www.amazon.com/exec/obidos/ASIN/0735612870/

[Original message clipped]

Reply to this message...
 
    
Steve Shier
Thanks Andrew.
The problem is that queueing an email takes time for the initial attempt-it
behaves synchronously.

As it turns out I've since been able to put the aspqmail component in an RCW
and it works great because it returns immediately from putting the email on
queue. I can send 3 emails and display a long page with a big trace in it
in 0.3 seconds. With the MailMessage component this was taking in excess of
2.0 seconds.

Steve

-----Original Message-----
From: G. Andrew Duthie [mailto:Click here to reveal e-mail address]
Sent: Friday, March 01, 2002 7:14 AM
To: ngfx-mail
Subject: [ngfx-mail] RE: Queued email using MailMessage

IIRC, the IIS SMTP service will automatically queue messages if it can't
send them immediately. You shouldn't need to worry about anything other
than setting the mail fields and the mail server, and calling Send.

hth,

--
G. Andrew Duthie
Graymad Enterprises, Inc.
http://www.graymad.com
Click here to reveal e-mail address
Author, ASP.NET Step By Step
http://www.amazon.com/exec/obidos/ASIN/0735612870/

[Original message clipped]

| [ngfx-mail] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-mail.asp = JOIN/QUIT

Reply to this message...
 
 
System.Web.Mail.MailMessage




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification