I have made a code using send gird api for send email.My email successfully send but i want to my email with proper format .
Please help me.
- var client = new SendGridClient(apiKey);
- var msg = new SendGridMessage()
- {
- From = new EmailAddress("[email protected]"),
- Subject = subject,
- PlainTextContent = htmlContent,
- HtmlContent = htmlContent
- };
- msg.AddTo(new EmailAddress(toEmail));
- var response = await client.SendEmailAsync(msg); --this is my c# code
this jquery and html code
- I have made a code using send gird api for send email.My email successfully send but i want to my email with proper format .
- Please help me.
- var client = new SendGridClient(apiKey);
- var msg = new SendGridMessage()
- {
- From = new EmailAddress("[email protected]"),
- Subject = subject,
- PlainTextContent = htmlContent,
- HtmlContent = htmlContent
- };
- msg.AddTo(new EmailAddress(toEmail));
- var response = await client.SendEmailAsync(msg); --this is my c# code
- this jquery and html code
- class="contact-main">class="container">class="row">class="col-md">class="back-shadow-contact ">
Get in Touch
- >
class="form-row">class="form-group col-md-6">- "email" class="form-control form-contact" id="htmlContent" placeholder="Your Name" required="required"/>
class="form-group col-md-6">- "text" class="form-control form-contact" id="toEmail" placeholder="Your Email Address" required />
class="form-row">class="form-group col-md-6">- "text" class="form-control form-contact" id="subject" placeholder="Subject" required />
class="form-group col-md-6">- "text" class="form-control form-contact" id="contact" placeholder="Your Contact No." required />
class="form-group">- ="form-control form-contact-msg" rows="5" id="htmlContent" placeholder="Enter Your Message" required>
- ="submit-contact" type="button" id="btnSend">Submit
My result is
Demo
Inbox
|
4:19 PM (56 minutes ago)
|
![]() ![]() |
||
|
||||
Demo -not here UserName

Sachin SinghPosted Mar 25, 2021, 4:53 PM
Rijwan AnsariPosted Mar 28, 2021, 5:44 PM