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