473,846 Members | 1,866 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

*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #1
7 3559
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/
/#) "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

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

Sorry for inconviences

*** 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********@hotm ail.com wrote in
news:11******** **************@ o13g2000cwo.goo glegroups.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

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 please oblige in ammending the code for me, so that it uses Outlook Express 5? Thanks ______________ Private Sub cmdSendEmail_Click()
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 this, it seems, that the user must install IIS on their computer. Isn't there a class that will detect whatever mail server is available on a computer and use that? How do I create this functionality without having the user add any other...
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 required to answer. A summary of the relevant code is: Dim mailObj as Outlook.MailItem
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 them, otherwise please forgive the crossposting.) I'm sure I've seen posts here before criticising the practice of automating outlook for the purpose of programatically sending email, on the grounds that it's naff. Well now we're really landed in...
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 (non-MyDomain.com address) I get the following error: The server rejected one or more recipient addresses. The server response was: 550 You must check your mail from this IP or SMTP Auth before sending to BSmith@Juno.com Here's the FULL...
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 the members of my organization. I think my problem is incorrectly setting the settings on my server or an authentication problem. Here is the code I have written to send a test message: -----Code Begins: Sensitive Information Replaced by -----...
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 strReturnData As String = _ System.Text.Encoding.ASCII.GetString(receiveBytes)
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 your location(#5.7.1) in sending email from client machine.i have refered their SMTP Server name and i have added that in SMTPServer access in relay option.whta is the problem here can any one help me pls.thanks in advance. ...
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 include our company's fonts, colors, etc. So, anyone know of a way to have Access 2003 create this message in HTML verses the text only? Code below. Thanks in advance for any help! Private Sub cmdEmailLetter_Click() 'Opens Outlook mail message...
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...
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,...
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...
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...
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.