Ask a Question related to Microsoft SQL / MS SQL Server, Design and Development.
-
Shane Porter #1
CDONTS-Sending HTML mail-8000 character limit
Hi all,
I have seen a few messages about this in the archives, but none
provide a comprehensive answer.
Basically, I want to use CDONTS mail support from within SQL server to
send HTML formatted email that could potentially be longer than 8000
characters. (I have done it successfully with short HTML mails).
Is there any way to do this? If not, could anyone offer alternative
suggestions for implementing a mailing list to email addresses stored
in an SQL Server 2000 database table?
Thanks, in advance,
Shane.
Shane Porter Guest
-
Sending Attachement using APS Cdonts
Hi I have a program which is used to send a mail with a attachment using cdonts when i attach a word file and send it ,i have the following... -
[PHP] Problem sending HTML formated mail
Juan -- ...and then Juan Carlos Borrero said... % % Hi People Hi! % -
Problem sending HTML formated mail
Hello Use a mail class to send your mail instead of mail. These classes have a lot of workarounds for mail() problems and are fairly easy to... -
Sending HTML formatted mail using CDONTS
Does anyone have some sample code for sending an HTML formatted message using CDONTS? Thanks RE: Sending HTML formatted mail using CDONTS ... -
Sending message to SMTP server using CDONTS component
I recently set up a web site which I am running locally on my laptop using ASP.Net. From a web form on the site I am attempting to send an email... -
Charlie Yukio Nakagawa #2
Re: CDONTS-Sending HTML mail-8000 character limit
Shane,
In SQL 7.0, I created a sp that receives as parameters the body of the email
as a text parameter. Then, when setting the 'body' property of the
CDONST.NewMail object, I use this parameter. It works just fine. Like this:
CREATE PROCEDURE sp_SysEnviaEmail
@remetente text,
@destinatario text,
@assunto text,
@corpo text
......
EXEC @hr = sp_OACreate 'CDONTS.NewMail', @object OUT
EXEC @hr = sp_OASetProperty @object, 'From', @remetente
EXEC @hr = sp_OASetProperty @object, 'To', @destinatario
EXEC @hr = sp_OASetProperty @object, 'Subject', @assunto
EXEC @hr = sp_OASetProperty @object, 'Body', @corpo
--
---------------------------------------------
Charlie Yukio Nakagawa
Direct Talk - 3049-8421
---------------------------------------------
"Shane Porter" <shaneporter66@hotmail.com> escreveu na mensagem
news:b8b802e8.0307030549.105a20e7@posting.google.c om...> Hi all,
>
> I have seen a few messages about this in the archives, but none
> provide a comprehensive answer.
>
> Basically, I want to use CDONTS mail support from within SQL server to
> send HTML formatted email that could potentially be longer than 8000
> characters. (I have done it successfully with short HTML mails).
>
> Is there any way to do this? If not, could anyone offer alternative
> suggestions for implementing a mailing list to email addresses stored
> in an SQL Server 2000 database table?
>
> Thanks, in advance,
> Shane.
Charlie Yukio Nakagawa Guest
-
Shane Porter #3
Re: CDONTS-Sending HTML mail-8000 character limit
Hi Charlie,
thanks for the feedback, but I have a stored procedure like the one
you have posted. If I change the '@corpo'/body parameter data type to
text, the longest string I can send is 4000 characters.
<I need to be able to send _over_ 8000 characters>
Shane.
"Charlie Yukio Nakagawa" <charlie.nakagawa@uol.com.br> wrote in message news:<exu5M$ZQDHA.2480@tk2msftngp13.phx.gbl>...> Shane,
>
> In SQL 7.0, I created a sp that receives as parameters the body of the email
> as a text parameter. Then, when setting the 'body' property of the
> CDONST.NewMail object, I use this parameter. It works just fine. Like this:
>
> CREATE PROCEDURE sp_SysEnviaEmail
> @remetente text,
> @destinatario text,
> @assunto text,
> @corpo text
> .....
> EXEC @hr = sp_OACreate 'CDONTS.NewMail', @object OUT
> EXEC @hr = sp_OASetProperty @object, 'From', @remetente
> EXEC @hr = sp_OASetProperty @object, 'To', @destinatario
> EXEC @hr = sp_OASetProperty @object, 'Subject', @assunto
> EXEC @hr = sp_OASetProperty @object, 'Body', @corpo
>
>
> --
> ---------------------------------------------
> Charlie Yukio Nakagawa
> Direct Talk - 3049-8421
> ---------------------------------------------
>
> "Shane Porter" <shaneporter66@hotmail.com> escreveu na mensagem
> news:b8b802e8.0307030549.105a20e7@posting.google.c om...> > Hi all,
> >
> > I have seen a few messages about this in the archives, but none
> > provide a comprehensive answer.
> >
> > Basically, I want to use CDONTS mail support from within SQL server to
> > send HTML formatted email that could potentially be longer than 8000
> > characters. (I have done it successfully with short HTML mails).
> >
> > Is there any way to do this? If not, could anyone offer alternative
> > suggestions for implementing a mailing list to email addresses stored
> > in an SQL Server 2000 database table?
> >
> > Thanks, in advance,
> > Shane.Shane Porter Guest
-
Jose Hernandez #4
Re: CDONTS-Sending HTML mail-8000 character limit
Although not CDONTS [url]http://sqldev.net/xp/xpsmtp.htm[/url] has a messagefile
parameter that contains the message text in PlaintText or HTML with a max
file size of 64 KB
Jose
"Shane Porter" <shaneporter66@hotmail.com> wrote in message
news:b8b802e8.0307030549.105a20e7@posting.google.c om...> Hi all,
>
> I have seen a few messages about this in the archives, but none
> provide a comprehensive answer.
>
> Basically, I want to use CDONTS mail support from within SQL server to
> send HTML formatted email that could potentially be longer than 8000
> characters. (I have done it successfully with short HTML mails).
>
> Is there any way to do this? If not, could anyone offer alternative
> suggestions for implementing a mailing list to email addresses stored
> in an SQL Server 2000 database table?
>
> Thanks, in advance,
> Shane.
Jose Hernandez Guest



Reply With Quote

