System.Web.Mail and Pickup Directory

G

Guest

Hi,

I am not too sure how to send email with System.Web.Mail using Pickup
directory.
The following is what I have

====================================================
eMail = new MailMessage()
eMail.BodyFormat = MailFormat.Text
eMail.To = "(e-mail address removed)"
eMail.From = _SendFrom
eMail.Body = _Body
eMail.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") =
"1
eMail.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory")= "C:\Inetpub\mailroot\Pickup"

SmtpMail.SmtpServer = "localhost"
SmtpMail.Send(eMail)
===================================================

Also, do I have to specify SmtpMail.SmtpServer if I am only using the pickup
directory?
 
K

Kevin Yu [MSFT]

Hi

We have reviewed this issue and are currently researching on it. We will
update you ASAP. Thanks for your patience!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
S

Steven Cheng[MSFT]

Hi,

I think your code is right, If we directly using the pickup directory to
send email via System.Web.Mail ( or CDO component), only the sending method
and pickup directory path is required, we don't need to specify the
smtpSErver. Here is a certain kb article mentioned how to use pickup
directory to send mail via CDO.
But since the .net's System.Web.Mail is underlying using CDO, it'll be the
same for system.web.mail

#How To Send HTML Formatted Mail Using CDO for Windows 2000 and the Local
Pickup Directory
http://support.microsoft.com/default.aspx?scid=kb;en-us;286430

Hope also helps. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top