In my string mensagem
, I would like to have a space of two lines, I already tried to use "/ n" and did not get the expected result.
@{
var customerName = Request["customerName"];
var customerEmail = Request["customerEmail"];
var customerRequest = Request["customerRequest"];
var customerSubject = Request["customerSubject"];
var atendimento = "[email protected]";
var errorMessage = string.Empty;
var debuggingFlag = false;
string mensagem = string.Format(customerRequest + "\n\n{0}", customerEmail);
try
{
// Initialize WebMail helper
WebMail.SmtpServer = "smtp.teste.com.br";
WebMail.SmtpPort = 25;
WebMail.UserName = "[email protected]";
WebMail.Password = "teste";
WebMail.From = "[email protected]";
// Send email
WebMail.Send(to: atendimento,
subject: customerSubject + " - " + customerName,
body: mensagem
);
}
catch (Exception ex)
{
errorMessage = ex.Message;
}
}