Hi all,

Thanks for the suggestions for our club's initial bulkmail sending
routines. I did read up on the use of ASP vs. a separate COM app such as
ASPEmail, and determined that for our club's purposes the ASP code that
loops through the data and sends individual messages vs. BCC performs
adequately for simple messaging.

The next phase is to email the club's newsletter, which is in PDF format,
and I've run into the problem that CDO errors out because it doesn't
recognize the format using the basic config settings. In sifting through
the MSDN's CDO content and other sources I found some references that
would permit attaching .txt and .gif files, but not for PDFs. Does anyone
here know of a concise and relatively complete reference to such things as
cdoConfig settings, or better, a solution to this specific problem?

TIA,

Neil

Re: Need ASP code for email attachments... by Adrienne

Adrienne
Sat May 24 12:19:07 CDT 2008

Gazing into my crystal ball I observed "Neil Gould" <neil@terratu.com>
writing in news:eU8HpaMvIHA.5472@TK2MSFTNGP06.phx.gbl:

> Hi all,
>
> Thanks for the suggestions for our club's initial bulkmail sending
> routines. I did read up on the use of ASP vs. a separate COM app such
> as ASPEmail, and determined that for our club's purposes the ASP code
> that loops through the data and sends individual messages vs. BCC
> performs adequately for simple messaging.
>
> The next phase is to email the club's newsletter, which is in PDF
> format, and I've run into the problem that CDO errors out because it
> doesn't recognize the format using the basic config settings. In
> sifting through the MSDN's CDO content and other sources I found some
> references that would permit attaching .txt and .gif files, but not
> for PDFs. Does anyone here know of a concise and relatively complete
> reference to such things as cdoConfig settings, or better, a solution
> to this specific problem?
>
> TIA,
>
> Neil
>
>
>

Your best bet is to send a plain text email with a link to the relavent
PDF file.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share


Re: Need ASP code for email attachments... by Neil

Neil
Sat May 24 16:07:13 CDT 2008

Hi Adrienne,

Recently, Adrienne Boswell <arbpen@yahoo.com> posted:

> Gazing into my crystal ball I observed "Neil Gould" <neil@terratu.com>
> [...]
>>
>> The next phase is to email the club's newsletter, which is in PDF
>> format, and I've run into the problem that CDO errors out because it
>> doesn't recognize the format using the basic config settings. In
>> sifting through the MSDN's CDO content and other sources I found some
>> references that would permit attaching .txt and .gif files, but not
>> for PDFs. Does anyone here know of a concise and relatively complete
>> reference to such things as cdoConfig settings, or better, a solution
>> to this specific problem?
>>
>
> Your best bet is to send a plain text email with a link to the
> relavent PDF file.
>
Thanks for your thoughts... but, why do you think this is the best bet?

Regards,

Neil




Re: Need ASP code for email attachments... by Adrienne

Adrienne
Sat May 24 17:34:45 CDT 2008

Gazing into my crystal ball I observed "Neil Gould" <neil@terratu.com>
writing in news:#pv3MndvIHA.5584@TK2MSFTNGP02.phx.gbl:

> Hi Adrienne,
>
> Recently, Adrienne Boswell <arbpen@yahoo.com> posted:
>
>> Gazing into my crystal ball I observed "Neil Gould"
<neil@terratu.com>
>> [...]
>>>
>>> The next phase is to email the club's newsletter, which is in PDF
>>> format, and I've run into the problem that CDO errors out because it
>>> doesn't recognize the format using the basic config settings. In
>>> sifting through the MSDN's CDO content and other sources I found
some
>>> references that would permit attaching .txt and .gif files, but not
>>> for PDFs. Does anyone here know of a concise and relatively
complete
>>> reference to such things as cdoConfig settings, or better, a
solution
>>> to this specific problem?
>>>
>>
>> Your best bet is to send a plain text email with a link to the
>> relavent PDF file.
>>
> Thanks for your thoughts... but, why do you think this is the best
bet?
>
> Regards,
>
> Neil
>
>
>
>

Attachments take a while to download, and no other mail can be retrieved
until the entire message has been downloaded. Sending a text message
with a link to the relavent PDF file allows the user to get other mail
while going to the address specified and either opening or saving the
PDF file (Firefox has an extension to view PDF documents as HTML,
opening or saving).

I would even go so far as to say that the newsletter would be better off
done as an HTML page, much less to download, open, etc.

If you make a template, you can save the content in a database, and
serve the newsletter like any other page, including navigation, links to
other documents, etc. You can create a form for inputting the
newsletter content, and output it as HTML if you wanted to send a
multipart HTML/Plain text newsletter. You can even archive these
newsletters.


--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share


Re: Need ASP code for email attachments... by Mike

Mike
Sun May 25 03:18:11 CDT 2008


"Neil Gould" <neil@terratu.com> wrote in message
news:eU8HpaMvIHA.5472@TK2MSFTNGP06.phx.gbl...
> Hi all,
>
> Thanks for the suggestions for our club's initial bulkmail sending
> routines. I did read up on the use of ASP vs. a separate COM app such as
> ASPEmail, and determined that for our club's purposes the ASP code that
> loops through the data and sends individual messages vs. BCC performs
> adequately for simple messaging.
>
> The next phase is to email the club's newsletter, which is in PDF format,
> and I've run into the problem that CDO errors out because it doesn't
> recognize the format using the basic config settings. In sifting through
> the MSDN's CDO content and other sources I found some references that
> would permit attaching .txt and .gif files, but not for PDFs. Does anyone
> here know of a concise and relatively complete reference to such things as
> cdoConfig settings, or better, a solution to this specific problem?
>

Have you not tried the AddAttachment method?
http://www.bellaonline.com/articles/art29374.asp

--
Mike Brind
Microsoft MVP - ASP/ASP.NET



Re: Need ASP code for email attachments... by Neil

Neil
Sun May 25 07:09:06 CDT 2008

Hi Mike,

Recently, Mike Brind [MVP] <paxtonend@hotmail.com> posted:
>
> Have you not tried the AddAttachment method?
> http://www.bellaonline.com/articles/art29374.asp
>
That is almost exactly what I tried, with some additional
cdo.configuration specs. Sometimes, simpler is better, so I also tried
this code, and received the same error message:
---------------------------------------
CDO.Message.1 error '800c000d'

The specified protocol is unknown.
---------------------------------------

Best,

Neil





Re: Need ASP code for email attachments... by Neil

Neil
Sun May 25 07:12:39 CDT 2008

Recently, Adrienne Boswell <arbpen@yahoo.com> posted:
>>>
>>> Your best bet is to send a plain text email with a link to the
>>> relavent PDF file.
>>>
>> Thanks for your thoughts... but, why do you think this is the best
>> bet?
>>
>
> Attachments take a while to download, and no other mail can be
> retrieved until the entire message has been downloaded. Sending a
> text message with a link to the relavent PDF file allows the user to
> get other mail while going to the address specified and either
> opening or saving the PDF file (Firefox has an extension to view PDF
> documents as HTML, opening or saving).
>
> I would even go so far as to say that the newsletter would be better
> off done as an HTML page, much less to download, open, etc.
>
> If you make a template, you can save the content in a database, and
> serve the newsletter like any other page, including navigation, links
> to other documents, etc. You can create a form for inputting the
> newsletter content, and output it as HTML if you wanted to send a
> multipart HTML/Plain text newsletter. You can even archive these
> newsletters.
>
I see. The newsletter is available on the website, but some members prefer
to have it emailed to them, which we have done manually for the last few
years. I'm trying to automate the process. In fact, it can be done with
ASPEmail and similar COM apps, but if this task can be accomplished with
ASP code alone, that is our preference.

Best,

Neil




Re: Need ASP code for email attachments... by Jon

Jon
Sun May 25 09:10:39 CDT 2008

http://classicasp.aspfaq.com/email/why-does-cdo-message-give-800c000d-errors.html





"Neil Gould" <neil@terratu.com> wrote in message news:ePmkMflvIHA.3792@TK2MSFTNGP02.phx.gbl...
> Hi Mike,
>
> Recently, Mike Brind [MVP] <paxtonend@hotmail.com> posted:
>>
>> Have you not tried the AddAttachment method?
>> http://www.bellaonline.com/articles/art29374.asp
>>
> That is almost exactly what I tried, with some additional
> cdo.configuration specs. Sometimes, simpler is better, so I also tried
> this code, and received the same error message:
> ---------------------------------------
> CDO.Message.1 error '800c000d'
>
> The specified protocol is unknown.
> ---------------------------------------
>
> Best,
>
> Neil
>
>
>
>



Re: Need ASP code for email attachments... by Neil

Neil
Mon May 26 07:17:29 CDT 2008

Jon,

Recently, Jon Paal [MSMD] <Jon nospam Paal @ everywhere dot com> posted:

>
http://classicasp.aspfaq.com/email/why-does-cdo-message-give-800c000d-errors.html
>
Thanks. Exactly what I needed!

Best,

Neil



Re: Need ASP code for email attachments... by Neil

Neil
Mon May 26 09:51:54 CDT 2008

Recently, Jon Paal [MSMD] <Jon nospam Paal @ everywhere dot com> posted:

>
http://classicasp.aspfaq.com/email/why-does-cdo-message-give-800c000d-errors.html
>
OK... Tracing through this has resolved the ability to send PDFs via
ASP... so far, so good, and it's a pretty elegant method for our purposes.

What happens is that the attachment is given a generated name, e.g.
"ATT0001" rather than the name of the PDF file. I tried to find a
parameter for AddAttachments that would use the actual filename, but have
found nothing so far. Know of some way to accomplish this?

TIA,

Neil



Re: Need ASP code for email attachments... by Jon

Jon
Mon May 26 17:17:32 CDT 2008

this may have some info.. requires digging...

http://pages.prodigy.net/michael_santovec/decode.htm#why





"Neil Gould" <neil@terratu.com> wrote in message news:%234kW2ezvIHA.1768@TK2MSFTNGP03.phx.gbl...
> Recently, Jon Paal [MSMD] <Jon nospam Paal @ everywhere dot com> posted:
>
>>
> http://classicasp.aspfaq.com/email/why-does-cdo-message-give-800c000d-errors.html
>>
> OK... Tracing through this has resolved the ability to send PDFs via
> ASP... so far, so good, and it's a pretty elegant method for our purposes.
>
> What happens is that the attachment is given a generated name, e.g.
> "ATT0001" rather than the name of the PDF file. I tried to find a
> parameter for AddAttachments that would use the actual filename, but have
> found nothing so far. Know of some way to accomplish this?
>
> TIA,
>
> Neil
>
>



Re: Need ASP code for email attachments... by Neil

Neil
Mon May 26 20:29:43 CDT 2008

Recently, Jon Paal [MSMD] <Jon nospam Paal @ everywhere dot com> posted:

> this may have some info.. requires digging...
>
> http://pages.prodigy.net/michael_santovec/decode.htm#why
>
Hmm... I don't suspect that this is an encoding issue, as the received
attachment has the PDF extension and opens correctly as a PDF. So, it is
being transmitted correctly.

The only issue is the filename shown in the "Attachment" window of the
mail client. I haven't tested it with other than OE yet, but at any rate,
worst-case is that we can live with this limitation if it can't be solved.

Thanks for the pointer, it is a good general source of encoding info.

Best,

Neil


> "Neil Gould" <neil@terratu.com> wrote in message
> news:%234kW2ezvIHA.1768@TK2MSFTNGP03.phx.gbl...
>> Recently, Jon Paal [MSMD] <Jon nospam Paal @ everywhere dot com>
>> posted:
>>
>>>
>>
http://classicasp.aspfaq.com/email/why-does-cdo-message-give-800c000d-errors.html
>>>
>> OK... Tracing through this has resolved the ability to send PDFs via
>> ASP... so far, so good, and it's a pretty elegant method for our
>> purposes.
>>
>> What happens is that the attachment is given a generated name, e.g.
>> "ATT0001" rather than the name of the PDF file. I tried to find a
>> parameter for AddAttachments that would use the actual filename, but
>> have found nothing so far. Know of some way to accomplish this?
>>
>> TIA,
>>
>> Neil



Re: Need ASP code for email attachments... by Anthony

Anthony
Wed May 28 13:13:05 CDT 2008

"Neil Gould" <neil@terratu.com> wrote in message
news:%234kW2ezvIHA.1768@TK2MSFTNGP03.phx.gbl...
> Recently, Jon Paal [MSMD] <Jon nospam Paal @ everywhere dot com> posted:
>
> >
>
http://classicasp.aspfaq.com/email/why-does-cdo-message-give-800c000d-errors.html
> >
> OK... Tracing through this has resolved the ability to send PDFs via
> ASP... so far, so good, and it's a pretty elegant method for our purposes.
>
> What happens is that the attachment is given a generated name, e.g.
> "ATT0001" rather than the name of the PDF file. I tried to find a
> parameter for AddAttachments that would use the actual filename, but have
> found nothing so far. Know of some way to accomplish this?
>

Thats strange. Usually AddAttachment will configure the Content-Disposition
header for the attachment and give it filename value matching the source
file name.

Are you including some textbody content, something to the effect "Please
find news letter attached."?


--
Anthony Jones - MVP ASP/ASP.NET



Re: Need ASP code for email attachments... by Neil

Neil
Wed May 28 15:02:49 CDT 2008

Recently, Anthony Jones <Ant@yadayadayada.com> posted:

> "Neil Gould" <neil@terratu.com> wrote in message
> news:%234kW2ezvIHA.1768@TK2MSFTNGP03.phx.gbl...
>> Recently, Jon Paal [MSMD] <Jon nospam Paal @ everywhere dot com>
>> posted:
>>
>>>
>>
>
http://classicasp.aspfaq.com/email/why-does-cdo-message-give-800c000d-errors.html
>>>
>> OK... Tracing through this has resolved the ability to send PDFs via
>> ASP... so far, so good, and it's a pretty elegant method for our
>> purposes.
>>
>> What happens is that the attachment is given a generated name, e.g.
>> "ATT0001" rather than the name of the PDF file. I tried to find a
>> parameter for AddAttachments that would use the actual filename, but
>> have found nothing so far. Know of some way to accomplish this?
>>
>
> Thats strange. Usually AddAttachment will configure the
> Content-Disposition header for the attachment and give it filename
> value matching the source file name.
>
> Are you including some textbody content, something to the effect
> "Please find news letter attached."?
>
Yes... interesting how you predicted almost the exact textbody message!

Neil