Working URLs for template images
This commit is contained in:
@ -14,17 +14,21 @@ namespace EmailSendTester
|
||||
var username = "noreply@fasetto.com";
|
||||
var password = "somepassword";
|
||||
|
||||
var msg = new MailMessage("noreply@fasetto.com", "contact@angelsix.com");
|
||||
var msg = new MailMessage("noreply@fasetto.com", "contact@angelsix.com")
|
||||
{
|
||||
Subject = "Verify Your Account",
|
||||
Body = File.ReadAllText(@"C:\Users\Luke\Desktop\email.txt"),
|
||||
IsBodyHtml = true
|
||||
};
|
||||
|
||||
msg.Subject = "Verify Your Account";
|
||||
msg.Body = File.ReadAllText(@"C:\Users\Luke\Desktop\Email\emailtest.txt");
|
||||
msg.IsBodyHtml = true;
|
||||
var smtpClient = new SmtpClient
|
||||
{
|
||||
Credentials = new NetworkCredential(username, password),
|
||||
Host = "smtp.office365.com",
|
||||
Port = 587,
|
||||
EnableSsl = true
|
||||
};
|
||||
|
||||
var smtpClient = new SmtpClient();
|
||||
smtpClient.Credentials = new NetworkCredential(username, password);
|
||||
smtpClient.Host = "smtp.office365.com";
|
||||
smtpClient.Port = 587;
|
||||
smtpClient.EnableSsl = true;
|
||||
smtpClient.Send(msg);
|
||||
}
|
||||
}
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
<!-- Top Image -->
|
||||
<tr>
|
||||
<td align="center" class="content-item">
|
||||
<img src="/Assets/Images/logo-small.png" />
|
||||
<img src="https://raw.githubusercontent.com/angelsix/youtube/develop/Email%20HTML%20Template/Template/Source/Assets/Images/logo-small.png" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -98,7 +98,7 @@
|
||||
<!-- Text logo -->
|
||||
<tr>
|
||||
<td align="center" class="text-logo">
|
||||
<img src="/Assets/Images/text-logo.png" />
|
||||
<img src="https://raw.githubusercontent.com/angelsix/youtube/develop/Email%20HTML%20Template/Template/Source/Assets/Images/text-logo.png" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user