Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6999107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:29:53+00:00 2026-05-27T20:29:53+00:00

I don’t have enough idea on how to work with this. Objective: 1) Embed

  • 0

I don’t have enough idea on how to work with this.

Objective:
1) Embed HTML file in dll

  • Content of the html would be:

    Good Day!

    You received this email because a request was made for password retrieval with this email address.
    Please go to the link below to start the process:

    Click the link below
    BaseUrl{}

    Please ignore this email if you did not make such request.

    Best,
    Web Master

2) Everytime I have to send this email, I have to find and replace the “BaseUrl{}” with a link for verification inside the embeded html.

3) I have to send the file in a form of html file, beacause in further development, I will have to put images in the file.

Code for sending email:

using System.Net.Mail;
using System.Net;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;

public static void SendEmail(MailMessage mail)
{
SmtpClient client = new SmtpClient();
client.Host = "smtp.gmail.com";
client.Port = 123;
client.Credentials = new System.Net.NetworkCredential("username@mail.com", "strongpassword");
client.EnableSsl = true;

ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(ValidateServerCertificate);
client.Send(mail);

}  


private static bool ValidateServerCertificate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)  
{
if (sslPolicyErrors == SslPolicyErrors.None)
    return true;
else
{
    ServiceFault.WriteLog("Invalid SSL");
    return true;
}
}

Or you can give me links for tutorial, or if you have more better suggestion, please let me know.
Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:29:54+00:00Added an answer on May 27, 2026 at 8:29 pm

    I think the strategy of using string replacement for the URI is fine.

    In order to embed this into you DLL:

    1) Create a file with the content you want.
    2) Add a Resources file to your project.
    3) Add a “File” type resource (the Add Existing File option) and select your file (which will copy your file into your project.
    4) In your code, access the content of that embedded file using the auto-generate resource accessor.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I don't understand why this code doesn't work: function Messages(type,text) { console.log(In function Message);
Don't overthink this - there's a very commonly used term and I ... have
I don't know why this double json response are not successful: [{first_content:content,...}][{second_content:content,...}] So i
Don't know if this has been answered before. Have custom routes to users. If
Don't yell at me! i have seen many threads claiming that HTML cannot be
Don't know why but I can't find a solution to this. I have 3
Don't think my virtualhost is working correctly. This is what I have inside of
Don't need to do this right now but thinking about the future... What would
Don't you hate it when you have class Foobar { public: Something& getSomething(int index)
Don't dismiss this as a newbie question! It's not, I'm not, I've tried everything,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.