<a class="dropdown-item"
href="../default.aspx"> using ../
<i class="ti-power-off text-primary"></i>
Logout
</a>
<a class="dropdown-item"
<i class="ti-power-off text-primary"></i>
Logout
</a>
USING SYSTEM.NET.MAIL
SmtpClient smtpClient = new SmtpClient("globeyog.com", 25);
smtpClient.Credentials = new System.Net.NetworkCredential("globeyog.contact@globeyog.com", "PASSWORD");
smtpClient.DeliveryMethod = SmtpDeliveryMethod.Network;
MailMessage mailMessage = new MailMessage("globeyog.contact@globeyog.com", txtemail.Text);
mailMessage.Subject = "OTP Verification - GlobeYog Yoga Demo Session Registration";
mailMessage.Body = @"
<html>
<head></head>
<body style='font-family:Arial, Helvetica, sans-serif; font-size:14px;'>
<p>Dear Student,</p>
<p>
Thank you for registering for the <b>Yoga Demo Session</b> with
<b>Globeyog</b>.
</p>
<p>
To complete your registration, please verify your email address using the
One-Time Password (OTP) below:
</p>
<p style='font-size:20px; color:#0066CC;'>
<b>Your OTP: " + n.ToString() + @"</b>
</p>
<p>
This OTP is valid for <b>10 minutes</b>.
Please do not share it with anyone.
</p>
<p>
If you did not request this registration, please ignore this email.
</p>
<p>
Thank you for choosing <b>Globeyog</b>.
We look forward to welcoming you to the Yoga Demo Session.
</p>
<br />
<p>
Regards,<br /><br />
<b>Team Globeyog</b><br />
Email:
<a href='mailto:globeyog.contact@globeyog.com'>
globeyog.contact@globeyog.com
</a>
<br />
Website:
<a href='https://globeyog.com/demosession.aspx'>
www.globeyog.com
</a>
</p>
</body>
</html>";
mailMessage.IsBodyHtml = true;
smtpClient.Send(mailMessage);
SmtpClient smtpClient = new SmtpClient("domainname", 25);
ONLY BODY SECTION
mail.Body = @"
<html>
<head></head>
<body style='font-family:Arial, Helvetica, sans-serif; font-size:14px;'>
<p>Dear Student,</p>
<p>
Thank you for registering for the <b>Yoga Demo Session</b> with
<b>NRsolution4u</b>.
</p>
<p>
To complete your registration, please verify your email address using the
One-Time Password (OTP) below:
</p>
<p style='font-size:20px; color:#0066CC;'>
<b>Your OTP: " + otp + @"</b>
</p>
<p>
This OTP is valid for <b>10 minutes</b>.
Please do not share it with anyone.
</p>
<p>
If you did not request this registration, please ignore this email.
</p>
<p>
Thank you for choosing <b>NRsolution4u</b>.
We look forward to welcoming you to the Yoga Demo Session.
</p>
<br />
<p>
Regards,<br /><br />
<b>Team NRsolution4u</b><br />
Email:
<a href='mailto:info@nrsolution4u.com'>
info@nrsolution4u.com
</a>
<br />
Website:
<a href='https://www.nrsolution4u.com'>
www.nrsolution4u.com
</a>
</p>
</body>
</html>";
StringBuilder sb = new StringBuilder();
foreach (ListItem item in CheckBoxList1.Items)
{
if (item.Selected)
{
sb.Append(item.Text + ", ");
}
}
lblfocdata.Text=sb.ToString();
<table align="center" cellpadding="10" cellspacing="0" border="1" width="700">
<tr>
<td align="center">
<asp:Label ID="lblTitle" runat="server"
Text="Registration Successful"
Font-Bold="True"
Font-Size="X-Large"
ForeColor="#a33987">
</asp:Label>
<br /><br />
<asp:Label ID="lblMessage" runat="server">
</asp:Label>
<br />
<asp:Literal ID="Literal1" runat="server" Text="
<b>Dear Student,</b><br /><br />
Thank you for registering for the <b>Yoga Demo Session</b>.<br /><br />
Your registration has been received successfully.
Our admin team will verify your registration and send the
<b>Google Meet Link</b> along with the
<b>Demo Class Schedule</b> to your registered email address
within <b>24 hours</b>.<br /><br />
Kindly check your <b>Inbox</b> as well as your
<b>Spam/Junk</b> folder for the email.<br /><br />
Thank you, and we look forward to seeing you in the demo session!<br /><br />
<b>Team NRsolution4u</b>">
</asp:Literal> <br />
<a href="Default.aspx" style="color: #666; font-size: 0.9rem;">← Back</a> <br />
</td>
</tr>
</table>
[1] FULL LENGTH DROP DOWN LIATS
<asp:DropDownList ID="ddlStudentType" runat="server"
CssClass="fullDropdown">
<asp:ListItem Text="Indian Student" Value="Indian"></asp:ListItem>
<asp:ListItem Text="International Student" Value="International"></asp:ListItem>
</asp:DropDownList>
CSS CREATE
.fullDropdown {
width: 100%;
height: 38px;
padding: 6px 12px;
border: 1px solid #ced4da;
border-radius: 4px;
box-sizing: border-box;
}
<a class="dropdown-item" href="../default.aspx"> using ../ <i class="ti-power-off text-prim...