Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / August 2007

Tip: Looking for answers? Try searching our database.

Cannot get IIS pickup directory

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 27 Aug 2007 09:10 GMT
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

Signature

Regards,
M.Rochdi

Alexey Smirnov - 27 Aug 2007 09:23 GMT
> Hi guys,
>
[quoted text clipped - 25 lines]
> Regards,
> M.Rochdi

http://wss3.agileer.com/Lists/Posts/Post.aspx?List=0201bb03%2D438a%2D4b3c%2D939e
%2D92a68fa2c276&ID=28&Source=http%3A%2F%2Fwss3%2Eagileer%2Ecom%2FLists%2FPosts%2
FAllPosts%2Easpx


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.