Working URLs for template images
This commit is contained in:
@ -14,17 +14,21 @@ namespace EmailSendTester
|
|||||||
var username = "noreply@fasetto.com";
|
var username = "noreply@fasetto.com";
|
||||||
var password = "somepassword";
|
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";
|
var smtpClient = new SmtpClient
|
||||||
msg.Body = File.ReadAllText(@"C:\Users\Luke\Desktop\Email\emailtest.txt");
|
{
|
||||||
msg.IsBodyHtml = true;
|
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);
|
smtpClient.Send(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
<!-- Top Image -->
|
<!-- Top Image -->
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center" class="content-item">
|
<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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@ -98,7 +98,7 @@
|
|||||||
<!-- Text logo -->
|
<!-- Text logo -->
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center" class="text-logo">
|
<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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user