473,505 Members | 14,686 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.Web.Mail and Pickup Directory

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
2 3274
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
11019
by: - Steve - | last post by:
Shouldn't this code do it on a Win2k3 box. Set oMsg = Server.CreateObject("CDO.Message") oMsg.From = "address@domain.com" oMsg.To = "address@domain.com" oMsg.Subject = "Subject" oMsg.Body =...
3
24884
by: Alan Howard | last post by:
Hi there, I can't seem to find any info on this error message that's generated when sending email with CDO: "The pickup directory path is required and was not specified" Does anyone know...
3
5852
by: Serge Myrand | last post by:
Hi everybody, The following code for sending email (found on msn I think) works find when used in a .VBS file. I double click the file and the mail is send. When I use the same code in my .ASP...
2
2514
by: Peter | last post by:
I am trying to send SMTP mail: I have the following code which works fine on one domain, but not on other. It does not work until I remove the Message-ID: line, than it works just fine. ...
1
3689
by: Dean | last post by:
I am using MailMessage (CDOSYS) to send emails. I would like to turn off the SMTP service (it's on the local machine) and look at the emails in the pickup folder before they get sent out. However,...
20
2991
by: Adrian | last post by:
What does this error mean? Could not access CDO Message Object. Many thanks.
3
4329
by: pmud | last post by:
Hi, I have ab ASP.Net Application in which I need to send e-mail on button click. Even though my C# code for that is correct.I am getting the following error:: I think the following error can be...
1
2136
by: mpaine | last post by:
Hi, I am trying to write .eml files to a remote UNC directory - do you know if this could be done, such as: <mailSettings> <smtp> <network
2
1853
by: carmelo | last post by:
Hi, I created an ASP page for sending email messages. I'd like to write these messages directly into the C:\Inetpub\mailroot\Pickup directory. The problem is that when the IIS SMTP is active...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7367
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7018
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4699
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1528
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
407
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.