Mail sending
-
Hi, I am reposting this message,plz help me to fix it. I have written code for sending mails using c#.I am facing the following problem with this. Mail Body is not showing up for Meeting requests/mail received through Lotus Notes. The meeting request is shown correctly when viewed through the Outlook with the body showing up but not in Lotus Notes. Here is the code i am using, msg.From = new MailAddress(From); msg.Subject = Subject; msg.SubjectEncoding = System.Text.Encoding.Default; StringBuilder strBodyText = new StringBuilder(); strBodyText.AppendLine(some string on logical criteria); msg.Body = strBodyText.ToString(); msg.BodyEncoding = System.Text.Encoding.Default; msg.IsBodyHtml = false; msg.Priority = MailPriority.High; SmtpClient client = new SmtpClient(); client.Port = 25;//or use 587 client.Host = smtpServer; client.Send(msg); Plz help me... Thanks in Advance Alok...
-
Hi, I am reposting this message,plz help me to fix it. I have written code for sending mails using c#.I am facing the following problem with this. Mail Body is not showing up for Meeting requests/mail received through Lotus Notes. The meeting request is shown correctly when viewed through the Outlook with the body showing up but not in Lotus Notes. Here is the code i am using, msg.From = new MailAddress(From); msg.Subject = Subject; msg.SubjectEncoding = System.Text.Encoding.Default; StringBuilder strBodyText = new StringBuilder(); strBodyText.AppendLine(some string on logical criteria); msg.Body = strBodyText.ToString(); msg.BodyEncoding = System.Text.Encoding.Default; msg.IsBodyHtml = false; msg.Priority = MailPriority.High; SmtpClient client = new SmtpClient(); client.Port = 25;//or use 587 client.Host = smtpServer; client.Send(msg); Plz help me... Thanks in Advance Alok...
Are you sending HTML or text ?
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Are you sending HTML or text ?
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Hi, I am reposting this message,plz help me to fix it. I have written code for sending mails using c#.I am facing the following problem with this. Mail Body is not showing up for Meeting requests/mail received through Lotus Notes. The meeting request is shown correctly when viewed through the Outlook with the body showing up but not in Lotus Notes. Here is the code i am using, msg.From = new MailAddress(From); msg.Subject = Subject; msg.SubjectEncoding = System.Text.Encoding.Default; StringBuilder strBodyText = new StringBuilder(); strBodyText.AppendLine(some string on logical criteria); msg.Body = strBodyText.ToString(); msg.BodyEncoding = System.Text.Encoding.Default; msg.IsBodyHtml = false; msg.Priority = MailPriority.High; SmtpClient client = new SmtpClient(); client.Port = 25;//or use 587 client.Host = smtpServer; client.Send(msg); Plz help me... Thanks in Advance Alok...
I don't know what kinds of checks Lotus Notes does, but I would see if there is anything that you are sending that would cause Lotus Notes to not want to download the body. Some email clients don't show the body of the message if the body contains words that are common to spam mail. I would see if that is the root of this evil.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
-
Hi, I am reposting this message,plz help me to fix it. I have written code for sending mails using c#.I am facing the following problem with this. Mail Body is not showing up for Meeting requests/mail received through Lotus Notes. The meeting request is shown correctly when viewed through the Outlook with the body showing up but not in Lotus Notes. Here is the code i am using, msg.From = new MailAddress(From); msg.Subject = Subject; msg.SubjectEncoding = System.Text.Encoding.Default; StringBuilder strBodyText = new StringBuilder(); strBodyText.AppendLine(some string on logical criteria); msg.Body = strBodyText.ToString(); msg.BodyEncoding = System.Text.Encoding.Default; msg.IsBodyHtml = false; msg.Priority = MailPriority.High; SmtpClient client = new SmtpClient(); client.Port = 25;//or use 587 client.Host = smtpServer; client.Send(msg); Plz help me... Thanks in Advance Alok...
Hi Basically when we are try send email with smtpclient, we shoulkd provide few necessary settings. see this http://msdn2.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx[^] Thanks
Cheers,Earn and Enjoy RRave MCTS,MCPD http://ravesoft.blogspot.com