SPUtility.SendEmail Function truncating htmlbody<p align=left><font face=Arial size=2></font> </p> <p>Hi All,</p> <p align=left> </p> <p align=left>I am sending an email to my sharepoint portal user through SPUtility.SendEmail Function. Its working fine but when ever my message body exceeds 2048 characters it gets truncated by the function. </p> <p align=left>Is there any maximum lenght for email message body?</p> <p align=left>Please help...</p> <p align=left> </p> <p align=left> </p> <p align=left>Nitin Gupta</p>© 2009 Microsoft Corporation. All rights reserved.Fri, 24 Jul 2009 06:31:52 Z3b7627e4-886d-48db-8c54-13fdbaa6dcb6http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/3b7627e4-886d-48db-8c54-13fdbaa6dcb6#3b7627e4-886d-48db-8c54-13fdbaa6dcb6http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/3b7627e4-886d-48db-8c54-13fdbaa6dcb6#3b7627e4-886d-48db-8c54-13fdbaa6dcb6NitinGupta4uhttp://social.msdn.microsoft.com/Profile/en-US/?user=NitinGupta4uSPUtility.SendEmail Function truncating htmlbody<p align=left><font face=Arial size=2></font> </p> <p>Hi All,</p> <p align=left> </p> <p align=left>I am sending an email to my sharepoint portal user through SPUtility.SendEmail Function. Its working fine but when ever my message body exceeds 2048 characters it gets truncated by the function. </p> <p align=left>Is there any maximum lenght for email message body?</p> <p align=left>Please help...</p> <p align=left> </p> <p align=left> </p> <p align=left>Nitin Gupta</p>Thu, 28 Feb 2008 08:31:34 Z2008-03-01T02:54:39Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/3b7627e4-886d-48db-8c54-13fdbaa6dcb6#a1bf083e-b3f3-44a4-9345-da1326c7bbd5http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/3b7627e4-886d-48db-8c54-13fdbaa6dcb6#a1bf083e-b3f3-44a4-9345-da1326c7bbd5Toby Stathamhttp://social.msdn.microsoft.com/Profile/en-US/?user=Toby%20StathamSPUtility.SendEmail Function truncating htmlbody<p>Hi Nitin,</p> <p align=left> </p> <p align=left>I would the use System.Net.Mail to send the email. The one provided in SPUtility is a little restrictive. You can use the OutboundMailSenderAddress property of SPWebApplication to get the SMTP address that the server is using.</p> <p align=left> </p> <p align=left>Cheers</p> <p align=left> </p>Fri, 29 Feb 2008 14:04:34 Z2008-03-01T02:54:39Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/3b7627e4-886d-48db-8c54-13fdbaa6dcb6#1d1e8320-bca5-4397-88fb-998375229369http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/3b7627e4-886d-48db-8c54-13fdbaa6dcb6#1d1e8320-bca5-4397-88fb-998375229369Sudheesh Warrierhttp://social.msdn.microsoft.com/Profile/en-US/?user=Sudheesh%20WarrierSPUtility.SendEmail Function truncating htmlbody Have you got any other solution for this problem?<br><br>I am also facing this issue, and unfortunatly i m not allowed to use &quot;System.Net.Mail&quot; this namespace in my org.Sun, 08 Feb 2009 09:36:57 Z2009-02-08T09:36:57Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/3b7627e4-886d-48db-8c54-13fdbaa6dcb6#54647e53-1478-4b52-81d9-ed916fe523f3http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/3b7627e4-886d-48db-8c54-13fdbaa6dcb6#54647e53-1478-4b52-81d9-ed916fe523f3Anozirethhttp://social.msdn.microsoft.com/Profile/en-US/?user=AnozirethSPUtility.SendEmail Function truncating htmlbody I just ran into this issue as well, and discovered that SPUtility.SendEmail seems to cap the length of a single line.  I added newlines after each tag in the body of my email and it works like a charm.Mon, 23 Feb 2009 23:50:04 Z2009-02-23T23:50:04Z