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

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -