mirror of
https://git.teknik.io/Teknikode/Teknik.git
synced 2023-08-02 14:16:22 +02:00
Changed contact 'from' to be from the user and set 'Sender' as support.
This commit is contained in:
parent
076d99a698
commit
9ea2967e02
@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
@ -61,7 +61,8 @@ namespace Teknik.Areas.Contact.Controllers
|
||||
client.Credentials = new System.Net.NetworkCredential(Config.ContactConfig.EmailAccount.Username, Config.ContactConfig.EmailAccount.Password);
|
||||
client.Timeout = 5000;
|
||||
|
||||
MailMessage mail = new MailMessage(Config.ContactConfig.EmailAccount.EmailAddress, Config.SupportEmail);
|
||||
MailMessage mail = new MailMessage(model.Email, Config.SupportEmail);
|
||||
mail.Sender = new MailAddress(Config.ContactConfig.EmailAccount.EmailAddress);
|
||||
mail.Subject = string.Format("Support Message from: {0} <{1}>", model.Name, model.Email);
|
||||
mail.Body = string.Format(@"
|
||||
New Support Message from: {0} <{1}>
|
||||
@ -89,4 +90,4 @@ Message: {3}", model.Name, model.Email, model.Subject, model.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user