How would I configure this to actually send the form contents to an Outlook address?
This is what I have and it does not work.
protected void btn_submit_Click(object sender, EventArgs e)
Session["Cust_Name"] = txt_username.Text;
MailMessage mail = new MailMessage();
mail.Body = (txt_name.Text + txt_company.Text + txt_address.Text + txt_city.Text + ddl_state.Items + txt_zipcode + txt_phone.Text + txt_email.Text + txt_username.Text + txt_pass.Text);
SmtpClient client = new SmtpClient();
client.Host = ("smtp.mail.companyName.com");
client.Port = 1024;
client.EnableSsl = true;
I am a newbie at c#.net coding, what I have is a "registration form" that when you click the submit button the data from the form will be emailed to the "Administrator" who will manually add the information to a database.
I know there is a better way of doing this, but this is how they want it done, since the Administrators email is an outlook account I would have to email the form contents to that.
I didn't know that it had nothing to do with outlook, I understood that you set up the System.mail.net
and entered information for the SMTP client, Do you have a good link to a tutorial that will show me how to achieve this?