By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,731 Members | 1,123 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,731 IT Pros & Developers. It's quick & easy.

System.Web.Mail and Pickup Directory

P: n/a
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 = "re********@hotmail.com"
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?
Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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."

Nov 19 '05 #2

P: n/a
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...b;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.)

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.