473,748 Members | 2,437 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Repost: Attachments to Outlook Express possible?

Hi all,

This is a repost of a message posted at october 6.
The answer I got was about MapiMessages.At tachmentIndex.
I think I need the MSMAPI32.OCX to use this. (I don't have this file on my PC)

My newsaccount wasn't working anymore until yesterday, so I'll try again.

Question is:
I know it is possible to send email with Access, but can one also automate the attachments?
Question has been asked a lot I know...
I've searched Google but *all* answers that work use Outlook or commercial apps?
So I have not been able yet to automate the attachment-issue using Outlook Express.
Any ideas or 'new' insight?
(Using Access '97 or Access 2000)

TIA
Arno R

Nov 12 '05
12 4731
Hi Chuck,
Thanks for your reply,
BTW, what are your plans for places that have OE removed, or places
that use Groupwise? (OE and Groupwise don't get along all that well!)


To be more specific: All my clients (for this specific app) have 'at least' OE installed.
Some have Outlook or other mail-clients (Eudora is one of them).
I guess they all are MAPI-compliant or not?
So what I really need is a generic MAPI-solution without ocx-controls or dll's
that might not be present at my client's computers.
Arno R
Nov 12 '05 #11
Hi Lyle,
I guess I owe you an apology. I totally misread your reply!
I am really sorry for that!
Peter and Larry both are teling me that you are right, and you are!
I totally misunderstood your 'guessing'. (I guess I was a bit pissed because my newsserver failed
again)
Again: I am sorry and appreciate your help.

It's not the line-wrap that errors (thanks Peter) but it's probably the fact that I don't fully
understand the code.
So I ask for more explanation. (Hope I am specific enough now)

What did I try?
I pasted the code in a new module. (fixed the line-wrap)
I get an error on the first line with code in a form like:

Sub TestMail()
Class_Initializ e
ToAddressAdd "ad*****@test.n l"
BCCAddressAdd "in**@test. nl"
MessageIs "bla bla" & vbNewLine & "second line here"
SubjectIs "Testmail"
FileAdd "C:\test\test.z ip"
Send
end sub

If I comment-out the first line indeed a mailmessage (with attachment!) shows up in the OE-Outbox,
great!!
But how or when is the Class_Initializ e code used?

Other problems:
When I use the sub again the ToAddress-line and BCCAddress-line are doubled.
ToAddress: ad*****@test.nl ;ad*****@test.n l
BCCAddress: in**@test.nl;in **@test.nl
Also the attachment shows up twice
(or trippled on the third try and so on)
What am I doing wrong ?

Arno R
"Lyle Fairfield" <Mi************ @Invalid.Com> schreef in bericht
news:Xn******** ***********@130 .133.1.4...
ar*****@tiscali .nl (Arno R) wrote in news:7599ce12.0 310230414.34a5a 665
@posting.google .com:
Hi Lyle,
This class should send attachments via Outlook Express. But WHY? CDO is
much simpler and much stronger.

I need info for OE because not all of my clients will have the
CDO-library installed.
Or am I missing something obvious here?

Thanks very much for the info but, could you explain a bit more on how
to use this code please?
I guess I start with initializing the class but this immediately
errors?


Should I guess what these errors are?

--
Lyle
(for e-mail refer to http://ffdba.com/contacts.htm)

Nov 12 '05 #12
Hi Lyle,

I just found out what I did wrong and I'm a little embarassed about it...
Its class-code, so I need to paste the code in a class-module and use the class!
Obviously I am not used to class-code ;-)
Anyhow, finally I got it working. I think I need to study more about classes now!

Thanks,
Arno R

Nov 12 '05 #13

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

Similar topics

0
5929
by: John P | last post by:
Hello, I'm building email messages and attachments via the JavaMail API, which are then sent via sendmail. The attachments are mime attachments of type "application/octet-stream". They are received via fine via lotus notes and outlook, but in outlook express, yahoo, and hotmail the attachment does not appear. Yahoo will even report the correct message size. Any ideas on what the issue could be? Any help would be greatly appreciated
3
2415
by: AspDotNetDeveloper | last post by:
I'm trying to troubleshoot why my ASP application can no longer send file attachments larger than 100K, and I have eliminated many possibilities already, but I'm running out of ideas. I think I have it narrowed down to an Outlook Express update that is installed on the Win 2K Server, but when I try to remove the update, then the application returns an Unknown Error during the objNewMail.Send function call. The symptoms are empty file...
2
1952
by: Arno R | last post by:
Hi all, I know it is possible to send email with Access, but can one also automate the attachments? Question has been asked a lot I know... I've searched Google but *all* answers that work use Outlook or commercial apps? So I have not been able yet to automate the attachment issue using Outlook Express. Any ideas or 'new' insight? (Using Access '97 or Access 2000)
5
15934
by: paii, Ron | last post by:
How do I setup a email with attachment for preview but require the user to push the SEND button in Outlook. I have the following function but it sends the email without the sender ever seeing it. Public Function PrintPDFemail2() ' This will create the PDF if the report is setup for it DoCmd.OpenReport "rptJobItemStat", acViewNormal
6
13300
by: A.M-SG | last post by:
Hi, I have an aspx page at the web server that provides PDF documents for smart client applications. Here is the code in aspx page that defines content type: Response.ContentType = "application/octet-stream"; Response.AppendHeader("Content-Disposition", "attachment;filename=" + fileID.ToString() + ".pdf");
14
2837
by: Steve McLellan | last post by:
Hi, Sorry to repost, but this is becoming aggravating, and causing me a lot of wasted time. I've got a reasonably large mixed C++ project, and after a number of builds (but not a constant number) linking (and sometimes compiling) becomes immensely slow, and task manager shows that link.exe (or cl.exe) is barely using any processor time, but an awful lot of RAM (around 150-200MB). I'm going to keep an eye on page faults since I can't...
5
2445
by: Adrian Parker | last post by:
I've got the standard SqlCacheDependency working just fine , ie. I've defined (and encrypted) the connectionStrings section in the web.config, and I've also defined an an sqlCacheDependency in the caching section. So, in my code I add an item to the cache with an sqlCacheDependency, referencing the named sqlCacheDependency in the web.config and the database table it is to be based on (have enabled notificiations for that table). Fine. ...
0
1020
by: DC | last post by:
I have a requirement for an application that, through drag and drop, takes the email attachments from Outlook 2000 desktop clients and sends them in binary format to a SQL Server database. At this point its a POC app, so I am being encouraged to keep it simple. I figure I could use a Webservice and SOAP for this, or perhaps a Windows Service (I have more experience writing winservices than webservices). I have a couple of questions I...
1
1390
by: =?Utf-8?B?U2VyZW5h?= | last post by:
For some reason .jpg attachments, infact any attachments in outlook express have all of a sudden decieded to take ages to open but if saved on the hard disc they open in a flash. i use Windows XP Pro, Outlook Express 6, Office 2003, i have searched the net for anyone that might have similar problems but only came up with someone that had the same problem in Microsoft Outlook 2003 which i dont use. and the solution directions did not match...
0
8995
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
8832
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9558
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
9378
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
9331
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
8250
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6077
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
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3316
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.