working in mvc 3
have a question regarding send mail in mvc 3. my issue is
When i click on btnApply it should send 2 emails to [email protected] and also send an acknowledgement to (who filled email id in apply form like be [email protected])
or
For Example
Email1 : [email protected]
Email2 : [email protected]
Email3 : email enters in apply form like be [email protected]
when a Email3 click apply send mail from Email1(Sender) to Email2(receiver) & Email3(receiver)
or
when a Email3 click apply send mail from Email2(Sender) ** to **Email2(receiver) & Email3(receiver)
I have form in popup
@using (Html.BeginForm("Emailme", "Home"))
{
Your Full Name
Your Email
Upload Your Resume
}- i have a email manager, it only send 1 mail that from [email protected] to email id that specified in apply form ([email protected] )
public class EmailManager
{
private const string EmailFrom = "[email protected]";
public static void Enquiry( int JobId, string UserName, string Email, string Massage)
{
using (var client = new SmtpClient())
{
using (var message = new MailMessage(EmailFrom, Email))
{
message.Subject = "Successful";
message.Body = "
Dear " + UserName +
",
Thankyou for Registering
"+ "
message.IsBodyHtml = true;
client.EnableSsl = true;
client.Send(message);
};
};
}
}
Munesh SharmaPosted May 1, 2016, 12:38 PM
Rajeesh MenothPosted Apr 27, 2016, 6:35 AM
Amit KumarPosted Apr 27, 2016, 6:08 AM