Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Cannot get IIS pickup directory

Reply
Thread Tools

Cannot get IIS pickup directory

 
 
=?Utf-8?B?TWlrZQ==?=
Guest
Posts: n/a
 
      08-27-2007
Hi guys,

I'm using this code to generate emails and it's working in my machine:

// Create the mail message
MailMessage objMailMsg = new MailMessage(strFrom, strTo);
objMailMsg.BodyEncoding = Encoding.UTF8;
objMailMsg.Subject = strSubject;
objMailMsg.Body = strMsg;
Attachment at = new Attachment(Server.MapPath(AttachmentPath));

objMailMsg.Attachments.Add(at);
objMailMsg.Priority = MailPriority.High;
objMailMsg.IsBodyHtml = true;
//prepare to send mail via SMTP transport
SmtpClient objSMTPClient = new SmtpClient();
objSMTPClient.DeliveryMethod =
SmtpDeliveryMethod.PickupDirectoryFromIis;
objSMTPClient.Send(objMailMsg);

But, doing the same thing in other machine(having VS.Net express) the
program is giving me this error:"Cannot get IIS pickup directory"
what could the problem.


Thanks

--
Regards,
M.Rochdi
 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      08-27-2007
On Aug 27, 10:10 am, Mike <M...@discussions.microsoft.com> wrote:
> Hi guys,
>
> I'm using this code to generate emails and it's working in my machine:
>
> // Create the mail message
> MailMessage objMailMsg = new MailMessage(strFrom, strTo);
> objMailMsg.BodyEncoding = Encoding.UTF8;
> objMailMsg.Subject = strSubject;
> objMailMsg.Body = strMsg;
> Attachment at = new Attachment(Server.MapPath(AttachmentPath));
>
> objMailMsg.Attachments.Add(at);
> objMailMsg.Priority = MailPriority.High;
> objMailMsg.IsBodyHtml = true;
> //prepare to send mail via SMTP transport
> SmtpClient objSMTPClient = new SmtpClient();
> objSMTPClient.DeliveryMethod =
> SmtpDeliveryMethod.PickupDirectoryFromIis;
> objSMTPClient.Send(objMailMsg);
>
> But, doing the same thing in other machine(having VS.Net express) the
> program is giving me this error:"Cannot get IIS pickup directory"
> what could the problem.
>
> Thanks
>
> --
> Regards,
> M.Rochdi


http://wss3.agileer.com/Lists/Posts/...llPosts%2Easpx

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
7921G - cannot pickup call Thomas Cisco 0 03-04-2010 03:39 PM
Writing into the Pickup directory carmelo ASP .Net 2 07-11-2008 11:25 AM
System.Web.Mail and Pickup Directory =?Utf-8?B?U2FtdWVs?= ASP .Net 2 01-17-2005 02:03 AM
RE: Sending multiple e-mails. Pickup Directory? Steven Cheng[MSFT] ASP .Net 6 12-10-2004 09:07 PM
CDO Error: "The pickup directory path is required and was not specified" Alan Howard ASP General 2 07-05-2004 12:03 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57