asp.net mvc 3 - MvcMailer: trying to send email to one static recipient and Email (in model and view as a text input) -



asp.net mvc 3 - MvcMailer: trying to send email to one static recipient and Email (in model and view as a text input) -

sorry sqotd:

using mvcmailer. created quote system, wherein users inputs determines pricing. based on user inputs, email generated quote. want send e-mail "email" address user input myself.

in mailer.cs have

mailmessage.to.add("some-email@example.com");

i want static e-mail can send myself quote.

but how can send e-mail "email" user input in form?

my model has:

public string email { get; set; }

my form (view) has:

@html.textboxfor(m => m.email)

thanks help.

you utilize bcc field (recipient not see other email):

mailmessage.to.add("some-email@example.com"); mailmessage.bcc.add(model.email);

or cc (recipient see other email).

asp.net-mvc-3

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -