You must Sign In to post a response.
  • Category: .NET

    How to add dropdown in sending email

    i need to get some information from end user from email, so i need to add dropdown list ,text box in while sending email. can anyone share your ideas....
  • #767444
    i cant able to understand your question exactly.?

    i thing you want to add drop down value while send mail to end user Am Right?

    if am right just call the drop down id where you want to add and send the value to mail.thats it.

    hope this will help you.

  • #767445
    no i just want to add one table with dropdown value in email when replying user needs to enter the details in text box and select from dropdown .

  • #767447
    While sending email from c# code you have the propety called IsBody. You have to make that property true

    MyMailL.IsBodyHtml = true;

    If you make that property true, you can send any html code as body of the email. So Now you can write the code for drop down, text box whatever you want. Then send the email. So the user can use receive the email as html.

    By Nathan
    Direction is important than speed

  • #767451
    Refer this:

    MailMessage mailMsg = new MailMessage();
    mailMsg.IsBodyHtml = true;
    mailMsg.Body = "<input type=\"text\" name=\"txt1\" value=\"Type Here!\" /><BR/><select name=\"ddl1\"><option value=\"Item1\">Hi 1</option></select>";

  • Sign In to post your comments