· 8 years ago · Oct 26, 2017, 03:12 PM
1// Initialize WebMail helper
2 WebMail.SmtpServer = "smtp.gmail.com";
3
4 WebMail.SmtpPort = 25;
5 WebMail.UserName = "Edward";
6 WebMail.From = "...@gmail.com";
7 WebMail.Password = "password";
8
9 WebMail.EnableSsl = true;
10
11 // Send email
12 WebMail.Send(to: "edw.0919@gmail.com",
13 subject: "Help request from - " + customerName,
14 body: customerRequest
15 );
16}
17catch (Exception ex)
18{
19 <text>@ex</text>
20}