Click here to Skip to main content
15,906,628 members
Please Sign up or sign in to vote.
2.20/5 (3 votes)
See more:
Dear All,

In my application, mails are being sent through SQL Server in the following manner,
SQL
EXEC MSDB.DBO.SP_SEND_DBMAIL                                                            
@PROFILE_NAME = 'Mail Alerts',        
@RECIPIENTS ='AnyEMailID',                
@BLIND_COPY_RECIPIENTS='MultipleEMailIdsSeparatedBy;',
@file_attachments='D:\Birthday Reminders\FINAL2.jpg',      
@BODY ='<html><body>Testing</body></html>',
@BODY_FORMAT ='HTML',                                                                          
@SUBJECT = 'BCC Text Size Test'


The above works well when size of charatcters in @BLIND_COPY_RECIPIENTS is around 8000 characters.
But when the size goes beyond 8000 characters, the mail does not shoot.
The sysmail_mailitems table shows status as 2 for the same.
Checking the sysmail_log table shows following exception:

The mail could not be sent to the recipients because of the mail server failure.
(Sending Mail using Account 1 (2013-04-26T17:29:34).
Exception Message: Cannot send mails to mail server. (Failure sending mail.). )

I fail to understand the issue as the size of @BLIND_COPY_RECIPIENTS is varchar(max).

I have searched a lot on the internet but could not find anything related to this issue.

Please help as I need to close this issue.

Thanks,

Gopal


Some One Please reply....
Posted
Updated 26-Apr-13 23:21pm
v3
Comments
OriginalGriff 27-Apr-13 5:28am    
Reason for my vote of one: Bumping.

Don't just bump your question, it's rude and it doesn't help you get a reply because it just annoys people who notice it. It's the weekend in the western world, so there are a lot less people here than normal and it may take longer to get a reply. 3 hours is not a long time, so have a little patience!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900