Click here to Skip to main content
16,005,339 members
Home / Discussions / C#
   

C#

 
GeneralRe: Receive Net Sends within application Pin
sharmaabhishek30-Mar-06 11:47
sharmaabhishek30-Mar-06 11:47 
GeneralRe: Receive Net Sends within application Pin
Ed.Poore30-Mar-06 12:11
Ed.Poore30-Mar-06 12:11 
GeneralRe: Receive Net Sends within application Pin
sharmaabhishek30-Mar-06 12:43
sharmaabhishek30-Mar-06 12:43 
GeneralRe: Receive Net Sends within application Pin
kayhustle31-Mar-06 4:13
kayhustle31-Mar-06 4:13 
GeneralRe: Receive Net Sends within application Pin
Ed.Poore31-Mar-06 6:03
Ed.Poore31-Mar-06 6:03 
QuestionControl advice wanted Pin
Small Rat30-Mar-06 7:27
Small Rat30-Mar-06 7:27 
AnswerRe: Control advice wanted Pin
Ed.Poore30-Mar-06 8:27
Ed.Poore30-Mar-06 8:27 
Question.NET winform application. email function is pointed to the SMTP server of Linux. But it showns "Pickup" folder is not existed. Pin
miaomiaoga30-Mar-06 6:40
miaomiaoga30-Mar-06 6:40 
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\MailRoot, "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)




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

using CDO;
using Message = CDO.Message;

Message oMsg = new Message();

oMsg.From = SendEmailAddress;
oMsg.To = userEmail;
oMsg.Subject = "Prospect Reminder";
oMsg.HTMLBody = EmailContent.ToString();
oMsg.TextBody = EmailContent.ToString();

oFields["http://schemas.microsoft.com/cdo/configuration/sendusing"].Value
= 1;
oFields["http://schemas.microsoft.com/cdo/configuration/sendemailaddress"].Value
= SendEmailAddress; //sender mail
oFields["http://schemas.microsoft.com/cdo/configuration/smtpaccountname"].Value
= SendAccountName; //email account
oFields["http://schemas.microsoft.com/cdo/configuration/sendusername"].Value
= SendUserName;
oFields["http://schemas.microsoft.com/cdo/configuration/sendpassword"].Value
= SendPassWord;
oFields["http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"].Value
= SendAuthentication;
//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.microsoft.com/cdo/configuration/languagecode"].Value
= 0x0804;
oFields["http://schemas.microsoft.com/cdo/configuration/smtpserver"].Value
= SmtpServer;

oFields.Update();

oMsg.Send();
oMsg = null;




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


Best Regards,

Benny Ng
QuestionTask Scheduler problem Pin
Mridang Agarwalla30-Mar-06 6:36
Mridang Agarwalla30-Mar-06 6:36 
AnswerRe: Task Scheduler problem Pin
leppie30-Mar-06 19:31
leppie30-Mar-06 19:31 
Questioncreating a setup app Pin
Manu_8130-Mar-06 6:23
Manu_8130-Mar-06 6:23 
AnswerRe: creating a setup app Pin
Judah Gabriel Himango30-Mar-06 6:33
sponsorJudah Gabriel Himango30-Mar-06 6:33 
GeneralRe: creating a setup app Pin
Manu_8130-Mar-06 6:54
Manu_8130-Mar-06 6:54 
GeneralRe: creating a setup app Pin
Judah Gabriel Himango30-Mar-06 7:10
sponsorJudah Gabriel Himango30-Mar-06 7:10 
Question..enter elements Pin
KORCARI30-Mar-06 5:35
KORCARI30-Mar-06 5:35 
GeneralRe: ..enter elements Pin
George L. Jackson30-Mar-06 6:17
George L. Jackson30-Mar-06 6:17 
GeneralRe: ..enter elements Pin
KORCARI30-Mar-06 6:28
KORCARI30-Mar-06 6:28 
GeneralRe: ..enter elements Pin
Ed.Poore30-Mar-06 8:29
Ed.Poore30-Mar-06 8:29 
QuestionCtrl+F not working??? Pin
lupin9930-Mar-06 3:55
lupin9930-Mar-06 3:55 
AnswerRe: Ctrl+F not working??? Pin
Le centriste30-Mar-06 4:01
Le centriste30-Mar-06 4:01 
QuestionText/Log Files Pin
velkropie30-Mar-06 3:41
velkropie30-Mar-06 3:41 
AnswerRe: Text/Log Files Pin
Le centriste30-Mar-06 3:54
Le centriste30-Mar-06 3:54 
GeneralRe: Text/Log Files Pin
velkropie30-Mar-06 15:13
velkropie30-Mar-06 15:13 
Questionconvert list of coefficients.... Pin
KORCARI30-Mar-06 3:38
KORCARI30-Mar-06 3:38 
AnswerRe: convert list of coefficients.... Pin
Robert Rohde30-Mar-06 4:10
Robert Rohde30-Mar-06 4:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.