Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

sp_send_dbmail

 
   Database Help (Home) -> Programming RSS
Next:  Script Max Char Len Fields in Table  
Author Message
SOC

External


Since: Jun 20, 2008
Posts: 1



(Msg. 1) Posted: Fri Jun 20, 2008 2:23 pm
Post subject: sp_send_dbmail
Archived from groups: microsoft>public>sqlserver>programming (more info?)

Hello,
I'm developing a html mailshot using sp_send_dbmail. It is functioning
perfectly except that the html received in the email is truncated to 2000
characters. I suspect that the mail server may have a 2000 character limit
on messages. Can you advise if there may be some sql issue causing this?
Thanks SOC.

 >> Stay informed about: sp_send_dbmail 
Back to top
Login to vote
John Bell

External


Since: Jun 01, 2004
Posts: 652



(Msg. 2) Posted: Sat Jun 21, 2008 9:43 am
Post subject: Re: sp_send_dbmail [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"SOC" wrote in message

> Hello,
> I'm developing a html mailshot using sp_send_dbmail. It is functioning
> perfectly except that the html received in the email is truncated to 2000
> characters. I suspect that the mail server may have a 2000 character limit
> on messages. Can you advise if there may be some sql issue causing this?
> Thanks SOC.
>
Hi

BOL says the body can be a nvarchar(max) so there is up to 2GB. If this
always exactly 2000 characters you can ignore issues with control or
unescaped characters, but if a message is too long you tend to get an error
sent back, so it may be an account configuration issue. Have you tried
sending emails from other sources? Have you tried using your own local SMTP
relay?

John

 >> Stay informed about: sp_send_dbmail 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
'sp_send_dbmail' - I need to allow some users to run a script once a month that involves calling 'sp_send_dbmail' to communicate progress. What is the best practice method for giving users access to a system SP like this? I guess I can probably go into each ones server....

Executing a query in sp_send_dbmail - I have a relatively simple query that I can execute on my database and get the expected results. It looks like this: Select databasename, sum(data) from SpaceUsed where databasename not in ("master", "msdb") Group By databasename...

sp_send_dbmail sending duplicate emails (2) - I am using sp_send_dbmail to send emails from SQL Server 2005. The problem is that if I have 2 recipients, then each recipient gets the email twice. If I have 3 recipients, then each recipient gets the email 3 times. And so on. This is the code I'm..

sp_send_dbmail: Error formatting query, probably invalid p.. - Hi When using sp_send_dbmail as follows, I receive an email: EXEC msdb.dbo.sp_send_dbmail @profile_name = 'Mail', @recipients = 'some.one@somewhere.com', @body = 'Customer Cleansing Status BODY', @subject = 'Customer Cleansing..

need help with query - I want to sum the records in a table (u) which have 'P.M.' in a field value and test against a fixed limit something to the effect of : case when SUM(substring(u.sTime,1,4)='P.M.') <= 64 Then .... except it should work ...
   Database Help (Home) -> Programming All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]