473,770 Members | 4,544 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.NET winform application. email function is pointed to the SMTP server of Linux. But it showns "Pickup" folder is not existed.

Dear All,
Now I just finished my winform application. And a part of that is to
send email reminder to the users. It's working fine in the server that with
SMTP service in Windows 2003.

But now the user wants to used the Linux server to send email messages.
(already installed the SMTP service in that). Unfortunatelly one error shown
after the sending funciton invoked.

It shows "Pickup directory is not existed,x,x,x,, "

It's well known that in SMTP service of windows system. There are
several folders in the C:\Inetpub\Mail Root, "Picker,BadMail ,Queue,etc.".
When one email message is created. It would first to into "Pickup" folder.
And then changes to "Queue" folder. And then sent out.

But seems Linux system didn't has those folder or the architecture is
not same as windows system. So it prompts errors.

Should I goto change the email function and didn't use the CDO object to
send emails? Change to used Jmail to send messages? Is this a solution for
me?

Let me describe this one again.

CDO + Email Function + SMTP Service (Windows 2003) <--Successed
CDO + Email Function + SMTP Service (Linux System) <--Failed

The program is still runs on the Windows 2003 system. Only changed SMTP
Server's content that in the configuration file to Linux System.
(mail.abc.com)

So, Can you give me any suggestion about this issue?
Best Regards,

Benny Ng
Mar 30 '06 #1
1 2956
Dear All,

The following is the source code snippet. Please review it.

using CDO;
using Message = CDO.Message;

Message oMsg = new Message();

oMsg.From = SendEmailAddres s;
oMsg.To = userEmail;
oMsg.Subject = "Prospect Reminder";
oMsg.HTMLBody = EmailContent.To String();
oMsg.TextBody = EmailContent.To String();

oFields["http://schemas.microso ft.com/cdo/configuration/sendusing"].Value
= 1;
oFields["http://schemas.microso ft.com/cdo/configuration/sendemailaddres s"].Value
= SendEmailAddres s; //sender mail
oFields["http://schemas.microso ft.com/cdo/configuration/smtpaccountname "].Value
= SendAccountName ; //email account
oFields["http://schemas.microso ft.com/cdo/configuration/sendusername"].Value
= SendUserName;
oFields["http://schemas.microso ft.com/cdo/configuration/sendpassword"].Value
= SendPassWord;
oFields["http://schemas.microso ft.com/cdo/configuration/smtpauthenticat e"].Value
= SendAuthenticat ion;
//value=0 Anonymous
//value=1 Basic£¨basic (clear-text) authentication.
//The configuration sendusername/sendpassword or
postusername/postpassword fields are used to specify credentials.£©

//Value=2 NTLM£¨Secure Password Authentication in Microsoft Outlook
Express£©
oFields["http://schemas.microso ft.com/cdo/configuration/languagecode"].Value
= 0x0804;
oFields["http://schemas.microso ft.com/cdo/configuration/smtpserver"].Value
= SmtpServer;

oFields.Update( );

oMsg.Send();
oMsg = null;

Best Regards,

Benny Ng

"Benny Ng" <be**********@h otmail.com> wrote in message
news:Oc******** *****@TK2MSFTNG P12.phx.gbl...
Dear All,
Now I just finished my winform application. And a part of that is to
send email reminder to the users. It's working fine in the server that
with SMTP service in Windows 2003.

But now the user wants to used the Linux server to send email messages.
(already installed the SMTP service in that). Unfortunatelly one error
shown after the sending funciton invoked.

It shows "Pickup directory is not existed,x,x,x,, "

It's well known that in SMTP service of windows system. There are
several folders in the C:\Inetpub\Mail Root, "Picker,BadMail ,Queue,etc.".
When one email message is created. It would first to into "Pickup" folder.
And then changes to "Queue" folder. And then sent out.

But seems Linux system didn't has those folder or the architecture is
not same as windows system. So it prompts errors.

Should I goto change the email function and didn't use the CDO object
to send emails? Change to used Jmail to send messages? Is this a solution
for me?

Let me describe this one again.

CDO + Email Function + SMTP Service (Windows 2003) <--Successed
CDO + Email Function + SMTP Service (Linux System) <--Failed

The program is still runs on the Windows 2003 system. Only changed SMTP
Server's content that in the configuration file to Linux System.
(mail.abc.com)

So, Can you give me any suggestion about this issue?
Best Regards,

Benny Ng

Mar 30 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1897
by: Fox | last post by:
Forgive me for asking this here. I know it is a stretch topic-wise, but there is only one SMTP group and very little in the way of anyone answering anyone else. I am writing a file to disk using ASP. This file is to be written to the SMTP pickup folder. It includes the correct basic headers and works. The headers
1
2293
by: Bruce W.1 | last post by:
I'm new to ASP (but not ASP.NET) and I'm trying to setup a simple ASP web form to send an email to me. So I try this code: http://www.library.unr.edu/subjects/guides/mailplay.asp I upload the web page file to my hosting company, which is running Windows 2000, and I get this error message: CDO.Message.1 error '80040220' The "SendUsing" configuration value is invalid. /mailplay.asp, line 63
4
2973
by: Francois Keyeux | last post by:
hello everyone: i have a web site built using vbasic active server scripting running on iis (it works on either iis 50 and 60, but is designed for iis 50) i know how to create a plain text email by creating a text file, with content following certain format, and saving that file into the correct '..\mailroot\pickup' folder, and it is working fine
1
3718
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, since it is connecting using the port, I will get an error if I turn off the SMTP service. I need to configure it so that it writes the emails to the pickup folder. I've done quite a bit of digging, and found some references to...
5
2084
by: BVM | last post by:
Hi: I have a problem when sending large email(more than 20Mb) from a web page. I got timeout error. How to overcome this problem? I am thinking to have a thread to send email. Once the thread starts, return response to client immediately. The client should be able to kee checking if the thread is finished. If it's finished, return back a value. I don't know whether it works or not. Any idea, please. Thanks, Dennis
7
3521
by: Lau | last post by:
I need to send 1000 emails from an asp.net website. Normally I would use System.Web.Mail.MailMessage() to send thru an SMTP server. But the large amount of emails results in a timeout. My server administrator told me to write the emails to the “pickup directory†instead. I know that JMail can do this in ASP, but how do you do this in asp.net? -- --------------------
4
6886
by: AndyNY | last post by:
We are using asp.net 2.0 to send email to the pickup folder but are getting an error: Cannot get IIS pickup directory the code is rather simple we are testing with. System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage("test@testing.com", "test@test.com",
8
3732
JamieHowarth0
by: JamieHowarth0 | last post by:
Hi folks, Got a problem - I've got all my automated emails (in HTML format) stored in a table in my DB (called tbl_emails). I've set up a trigger so that every time a new user registers (data put into tbl_users), it creates a validation code using UUID(), and outputs an email into my mail pickup folder (idea being that if the user clicks on the link contained in the email, they get validated). Code looks like this: SELECT CONCAT("To:...
4
4941
by: Jens | last post by:
Hello, We have several cases where an email, send with the CDO.Message object in ASP, is received malformed at the receiver's e-mail address. code in it. When the message is received at the client's email address there are some characters or text mallformed, each time at another position in the e-mail. I know for sure that the html code is valid so that's not the problem.
0
10057
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10002
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9869
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8883
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7415
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5312
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5449
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3970
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 we have to send another system
3
2816
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.