Dear all,
Kindly tell me that how can I pass a String/Integer Variable(such as Telephone Number, Customer Name, etc.) in the Email which is sent by using the System.Net.Mail(using the 'MailMessage' Object). I have wrote this code, kindly see an help me if possible.
Please find the below mentioned code:-
MailMessage mMailMessage = new MailMessage();
mMailMessage.From = new MailAddress(from);
mMailMessage.To.Add(new MailAddress(to));
mMailMessage.Body.Insert(1, ClientPhoneNumber);
if ((bcc != null) && (bcc != string.Empty))
{
& ...
Go to the complete details ...