title: An error while using a local SMTP pickup directory
body: <p>I am configuring SMTPClient with these codes to use local directory:</p>
  
  <p>EmailHelper.cs</p>
  
  <pre><code>  public bool SendMail(string from, string to, string cc, string subject, string body, bool isBodyHtml)
          {
              try
              {
                  var smtpClient = new SmtpClient();
                  string pickUpFolder = @"C:\Users\kerem\Documents\Visual Studio 2012\Projects\Blog\Blog\Email";
                  smtpClient.DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory;
                  Configuration configurationFile = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(HttpContext.Current.Request.ApplicationPath);
                  MailSettingsSectionGroup mailSettings = configurationFile.GetSectionGroup("system.net/mailSettings") as MailSettingsSectionGroup;
                  if (mailSettings != null)
                  {
                      pickUpFolder = mailSettings.Smtp.SpecifiedPickupDirectory.PickupDirectoryLocation;
                      smtpClient.PickupDirectoryLocation = pickUpFolder;
                  }
  
  
                  System.Net.Mail.MailMessage mailMessage = new System.Net.Mail.MailMessage();
                  mailMessage.From = new MailAddress(from);
                  mailMessage.To.Add(new MailAddress(to));
                  if (cc != "")
                      mailMessage.CC.Add(new MailAddress(cc));
                  mailMessage.Subject = subject;
                  mailMessage.Body = body;
                  mailMessage.IsBodyHtml = true;
  
                  smtpClient.Send(mailMessage);
                  return true;
  
              }
              catch (Exception err)
              {
                  return false;
              }
  
          }
  </code></pre>
  
  <p>EmailHelper.cs in BlogServices Project in my Blog solution. Also there is a Blog Project in the same solution. I have replaced <code>Blog\Blog\Email</code> in <code>pickUpFolder</code> with <code>Blog\Email</code> and <code>Blog\BlogServices\Email</code> but I still have an error of <em>Only absolute directories are allowed for pickup directory.</em>  Where  is my mistake? Thanks in advance.</p>