473,513 Members | 2,266 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sending email with atachments in Access 2003 (vb)

Hello all!

A few years ago I created a form with button which let me send an email
with an attachment. It was created in Access 97. Now I would like to
move this application into Access 2003. But when I did it, sending email
code doesn`t work. Can you be so kind and give me the code how to send
email with and without attachment in vb in Access 2003??
Thank you in advance
Marcin

*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #1
7 3545
Post your code. Are there any error messages? It may be something ver
simple that is causing the problem.

Nov 13 '05 #2
Marcin wrote:
Hello all!

A few years ago I created a form with button which let me send an email
with an attachment. It was created in Access 97. Now I would like to
move this application into Access 2003. But when I did it, sending email
code doesn`t work. Can you be so kind and give me the code how to send
email with and without attachment in vb in Access 2003??


If you are using anything other than Outlook as your email client you
may be experiencing problems as a result. For example, I use Netscape
7.x. When the sendobject method is used (which was also tempermental in
A97, though not like it is in A2003) in A2003 and the email client is
Netscape 7.x, the "to" addresses are not transmitted to the email. So I
too found that A2003 did not send anything. If you set your editmessage
argument to true, you will see the email generated without the addresses.

I wouldn't know what to do if you need to do large amounts of emailling,
but in my recent app where there was a small number of emails setn, I
developed an email procedure which opened a form with all the subject,
to, body arguments. A send button also copied the to addresses to the
clipboard (I used an API proceudre to do this) and involed the
sendobject action with editmessage set to true. It is then just a
matter of pasting the address(es) in the 'to' field and sending.

But as I said, for mass emailling - I don't know.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Nov 13 '05 #3


Hello again!

Thanks for your posts. I use Outlook 2003 and also 2000 and Access 2003.
Could you paste me the example how to send emails with and without
attachments?

Thank you in advance
Marcin from Poland.

*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #4


I will paste the error and the code on Monday, because now I am on
holiday.

Sorry for inconviences
Marcin

*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #5
Please post the code you used before

Nov 13 '05 #6
read up on SendObject. But that only works with objects inside your
database. Otherwise, look into automating your email application,
either by using MAPI or automation.

Nov 13 '05 #7
pi********@hotmail.com wrote in
news:11**********************@o13g2000cwo.googlegr oups.com:
read up on SendObject.


SendObject can't do attachments.

However, to get around that, I let the user browse to the attachment
before creating the email message, then copy the attachment path to
the clipboard, so the user can then initiate their email client's
ADD ATTACHMENT function and simple Ctrl-V the path into the
resulting File Open dialog.

I would never tie my clients to Microsoft email clients, which are
the worst email clients available anywhere.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #8

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

Similar topics

3
8464
by: Neil Greenough | last post by:
I currently have the following VB code in a MS Access Database which I use to send emails. Nonetheless, it opens Outlook and I would like it to send an email using Outlook Express. Could anyone...
13
3184
by: joe215 | last post by:
I want my users to send emails from a Windows app that I am developing in Visual Basic.NET 2003. I found a good example of sending email to a SMTP server using the SmtpMail class. However, using...
1
4129
by: Devonish | last post by:
I am composing an email with Access VB and then sending it from within Access. Everything works correctly (the email actually goes!) but Outlook ask some irritating questions that the user is...
17
2874
by: Bonj | last post by:
Right guys. (I would like a solution to this in VB6 as this is what our needy app is written in, but any solutions that involve .NET would be much appreciated likewise as I could instantiate...
3
6806
by: VB Programmer | last post by:
I have an ASPX page where I send out emails through my mail server mail.MyDomain.com. When I send emails to MyName@MyDomain.com it sends PERFECTLY. When I try sending an email to any other address...
1
8156
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
9
4882
by: Miro | last post by:
VB 2003 at the end of the code, this works great. bytCommand = Encoding.ASCII.GetBytes("testing hello send text") udpClient.Send(bytCommand, bytCommand.Length) and this recieves it Dim...
5
1743
by: Paridevi | last post by:
Hai, i am getting the following error system.runtime.interopservices.COMException.The server rejected one or more recipient addresses.The server responce was:553 sorry, relaying denied from...
2
3316
by: martin DH | last post by:
Hello all, I'm looking to send an email message from my database at the "click of a button." I've got that part worked out - the only thing is, it sends text only and I would like the message to...
0
7388
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,...
0
7539
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...
0
5692
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,...
1
5095
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4751
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...
0
3240
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...
0
3228
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1605
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 ...
0
461
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.