Click here to Skip to main content
14,539,961 members
   

ASP.NET

 
GeneralRe: How to use FCKeditorV2 instead of FreeTextBox ? Pin
Member 245846716-Jan-20 21:04
MemberMember 245846716-Jan-20 21:04 
GeneralRe: How to use FCKeditorV2 instead of FreeTextBox ? Pin
jkirkerx17-Jan-20 6:55
professionaljkirkerx17-Jan-20 6:55 
GeneralRe: How to use FCKeditorV2 instead of FreeTextBox ? Pin
Richard Deeming16-Jan-20 1:33
mveRichard Deeming16-Jan-20 1:33 
JokeRe: How to use FCKeditorV2 instead of FreeTextBox ? Pin
ZurdoDev16-Jan-20 3:55
mveZurdoDev16-Jan-20 3:55 
GeneralRe: How to use FCKeditorV2 instead of FreeTextBox ? Pin
jkirkerx16-Jan-20 7:34
professionaljkirkerx16-Jan-20 7:34 
Question.Net Core 2.2.4 - Getting IHostingEnvironment in Program.cs Main Pin
jkirkerx14-Jan-20 10:24
professionaljkirkerx14-Jan-20 10:24 
QuestionHtmlagilitypack -- I'm stuck Pin
Member 175325011-Jan-20 5:40
MemberMember 175325011-Jan-20 5:40 
QuestionHow do I fix System.Net.Mail.SmtException: 'Cannot get IIS pickup directory' error? Pin
Member 1140330410-Jan-20 9:19
MemberMember 1140330410-Jan-20 9:19 
I am trying to send email using the EmailButton_Click code. However I am getting the error on this line smtp.Send(mailMessage)

The error is System.Net.Mail.SmtpException: 'Cannot get IIS pickup directory.'

Can someone help me fix it please?

protected void EmailButton_Click(object sender, EventArgs e)
{
    //get selected email
    EmailButton.Visible = true;
    string requestor = RequestorDropDownList.SelectedValue.ToString();
    string message = "The following records have been prepped for processing.  Valid cases will be processed.";
    if (requestor.Length > 0)
         message = string.Format(message);
        using (MailMessage mailMessage = new MailMessage())
        {
            mailMessage.From = new MailAddress("NoReply_FTA@courts.state.mn.us");
            //Uncomment after testing in Deve June 2019 
            MailAddress to = new MailAddress(requestor);
            mailMessage.To.Add(to);
            string ccEmailAddress = "okaymy1112@mail.com";
            if (ccEmailAddress.Length > 0)
            {
                MailAddress ccto = new MailAddress(ccEmailAddress);
                mailMessage.CC.Add(ccto);
            }
                mailMessage.Subject = "FTA Case Reset Notice";
                mailMessage.Body = message;
                SmtpClient smtp = new SmtpClient();
                smtp.DeliveryMethod = SmtpDeliveryMethod.PickupDirectoryFromIis;
                smtp.Send(mailMessage);//Error on this line
        }
            string msg = "No batches were found";
            Response.Write("<script>alert('" + msg + "')</script>");
}

AnswerRe: How do I fix System.Net.Mail.SmtException: 'Cannot get IIS pickup directory' error? Pin
Richard MacCutchan10-Jan-20 11:37
mveRichard MacCutchan10-Jan-20 11:37 
AnswerRe: How do I fix System.Net.Mail.SmtException: 'Cannot get IIS pickup directory' error? Pin
ZurdoDev11-Jan-20 9:03
mveZurdoDev11-Jan-20 9:03 
QuestionHow do I fix 'object' does not contain a definition for 'Value'? Pin
Member 1140330410-Jan-20 8:27
MemberMember 1140330410-Jan-20 8:27 
AnswerRe: How do I fix 'object' does not contain a definition for 'Value'? Pin
ZurdoDev10-Jan-20 9:09
mveZurdoDev10-Jan-20 9:09 
QuestionWhy can't I login to the web even though the User and password are correct ? Pin
Member 24584679-Jan-20 21:43
MemberMember 24584679-Jan-20 21:43 
AnswerRe: Why can't I login to the web even though the User and password are correct ? Pin
ZurdoDev10-Jan-20 1:00
mveZurdoDev10-Jan-20 1:00 
GeneralRe: Why can't I login to the web even though the User and password are correct ? Pin
Member 245846714-Jan-20 16:19
MemberMember 245846714-Jan-20 16:19 
GeneralRe: Why can't I login to the web even though the User and password are correct ? Pin
ZurdoDev14-Jan-20 16:52
mveZurdoDev14-Jan-20 16:52 
AnswerRe: Why can't I login to the web even though the User and password are correct ? Pin
Richard Deeming10-Jan-20 2:32
mveRichard Deeming10-Jan-20 2:32 
GeneralRe: Why can't I login to the web even though the User and password are correct ? Pin
Member 245846714-Jan-20 16:24
MemberMember 245846714-Jan-20 16:24 
GeneralRe: Why can't I login to the web even though the User and password are correct ? Pin
Richard Deeming15-Jan-20 0:25
mveRichard Deeming15-Jan-20 0:25 
GeneralRe: Why can't I login to the web even though the User and password are correct ? Pin
Member 245846716-Jan-20 20:23
MemberMember 245846716-Jan-20 20:23 
GeneralRe: Why can't I login to the web even though the User and password are correct ? Pin
Richard Deeming17-Jan-20 0:30
mveRichard Deeming17-Jan-20 0:30 
QuestionHow do you have a DropDownList populated without default selected item? Pin
Member 114033049-Jan-20 6:07
MemberMember 114033049-Jan-20 6:07 
AnswerRe: How do you have a DropDownList populated without default selected item? Pin
ZurdoDev9-Jan-20 6:40
mveZurdoDev9-Jan-20 6:40 
GeneralRe: How do you have a DropDownList populated without default selected item? Pin
Member 114033049-Jan-20 6:56
MemberMember 114033049-Jan-20 6:56 
GeneralRe: How do you have a DropDownList populated without default selected item? Pin
ZurdoDev9-Jan-20 7:59
mveZurdoDev9-Jan-20 7:59 

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.