473,772 Members | 3,603 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need ASP code for email attachments...

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
Jun 27 '08 #1
13 2796
Gazing into my crystal ball I observed "Neil Gould" <ne**@terratu.c om>
writing in news:eU******** ******@TK2MSFTN GP06.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

Jun 27 '08 #2
Hi Adrienne,

Recently, Adrienne Boswell <ar****@yahoo.c omposted:
Gazing into my crystal ball I observed "Neil Gould" <ne**@terratu.c om>
[...]
>>
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

Jun 27 '08 #3
Gazing into my crystal ball I observed "Neil Gould" <ne**@terratu.c om>
writing in news:#p******** ******@TK2MSFTN GP02.phx.gbl:
Hi Adrienne,

Recently, Adrienne Boswell <ar****@yahoo.c omposted:
>Gazing into my crystal ball I observed "Neil Gould"
<ne**@terratu.c om>
>[...]
>>>
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

Jun 27 '08 #4

"Neil Gould" <ne**@terratu.c omwrote in message
news:eU******** ******@TK2MSFTN GP06.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
Jun 27 '08 #5
Hi Mike,

Recently, Mike Brind [MVP] <pa*******@hotm ail.composted:
>
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.configurati on 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


Jun 27 '08 #6
Recently, Adrienne Boswell <ar****@yahoo.c omposted:
>>>
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

Jun 27 '08 #7
http://classicasp.aspfaq.com/email/w...0d-errors.html

"Neil Gould" <ne**@terratu.c omwrote in message news:eP******** ******@TK2MSFTN GP02.phx.gbl...
Hi Mike,

Recently, Mike Brind [MVP] <pa*******@hotm ail.composted:
>>
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.configurati on 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


Jun 27 '08 #8
Jon,

Recently, Jon Paal [MSMD] <Jon nospam Paal @ everywhere dot composted:
>
http://classicasp.aspfaq.com/email/w...0d-errors.html
>
Thanks. Exactly what I needed!

Best,

Neil
Jun 27 '08 #9
Recently, Jon Paal [MSMD] <Jon nospam Paal @ everywhere dot composted:
>
http://classicasp.aspfaq.com/email/w...0d-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
Jun 27 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3146
by: LutherRevisited | last post by:
Is there a way I can put a message together without having to download any attachments there may be at the same time. I'm not having any problems dealing with attachments, but the way I'm doing things makes me download the complete message first, attachements and all: mail = for j in M.retr(i): mail.append(j.rstrip()) inMail = email.message_from_string('\r\n'.join(mail)) I don't have a real problem per se with this, it's just that I...
1
2400
by: praba kar | last post by:
Dear All, I am new to python world. I have pasted my code which I used it to build rfc822 format mails for webbased mailing system task(which is like to yahoo.com web interface). Now I am asking some suggestions and guidence regarding this below code. Still What way I can improve this code. If anyone find error kindly let me know how to correct it.
6
1828
by: chris_fieldhouse | last post by:
Hi, I have a script for processing emails, The script finds email sent to a particular alias, grabs the body text of the email and stores it into a database. Problem is that certain character like '_' sometimes get stored as =5F, and some email clients seem to add in =0D encoded characters. I store the text in an Mysql database, and depending on the message
6
10505
by: c_shah | last post by:
how to save outlook email attachments using VB.net?
10
2198
by: Walshi | last post by:
Hi all, I'm a relative newby to access and VBA etc. My forms and tables etc are working great and saving lots of time...However... I have two databases with the exact same table format. I want db1 to be used to input data by a remote operator, when she is ready I want her to be able to click a control button to email her new data to db2. This new data will be added to the table in db2 ready for further processing.
3
6905
by: olafmol | last post by:
Hello, i want to write a PHP4 script that reads POP3 or IMAP mail and can decode the possible attachments in the email. I've looked around for some classes to do this, and found a few, but most of them seem to be very lowlevel or lacking in functionality. Is there a good script, class or example for decoding email attachments? I have used a class called attachmentread, but this class expects an attachment as disposition: attachment,...
3
1857
by: andersond | last post by:
I have a PHP file that usually sends an email. Instead, it now simply displays the code beginning with line 14 (where #eol= begins). Can anybody help me with this? <?php #Change only the information after the equals sign $to = $_REQUEST; $body = "Your request to bind the submission on ".$_REQUEST." has been received by United Brokers. After it has been reviewed for content by an Underwriter and it has been determined that...
3
1487
by: atlanteavila | last post by:
Hello all, I've got a database that is used to register couples preparing to get married in our Church to a class named Pre-Cana, we collect couples personal infomation along with email addresse, I recently created a database for this using access. The database works fine but my quesiton is concerning email with attachments. Every time a couple registers for a class, we send them a confirmation email welcoming them to the class along with...
0
1614
by: printline | last post by:
Hello I have the following macro for outlook: Dim oApp As Application Dim oNS As NameSpace Dim oMsg As Object Dim bDoAction As Boolean Dim oAttachments As Outlook.Attachments
0
9620
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10261
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10104
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9912
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6715
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.