473,394 Members | 1,935 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to sent response mails to acess

How someone can sent with vba response mail from Οulook to access 2010. The response mails include a standard form with controls (combo box), text box that the center has completed
Aug 22 '13 #1
2 1173
jimatqsi
1,271 Expert 1GB
There's quite a few threads on Bytes about sending emails with Access. Here's some code I just used last week for a client to send an email. They use Outlook 2007 but I'm not sure the code is any different in 2010:
Expand|Select|Wrap|Line Numbers
  1.     Set olMail = olApp.CreateItem(olMailItem)
  2.     Dim strSendto As String
  3.     Dim strSubject As String
  4.     Dim strBody As String
  5.     Dim strAttachfile As String
  6.     strAttachfile = pdfPath & PDFFile
  7.  
  8.     With olMail
  9.         .To = Me.EmailAddress_txt
  10.         .Subject = "Account aging report"
  11.         .ReadReceiptRequested = False
  12.         .Body = "Your account aging is attached" ' strBody
  13.         .Attachments.Add strAttachfile
  14.         .Display  ' .send
  15.     End With
  16.  
  17.     Set olApp = Nothing
  18.     Set olMail = Nothing
  19.  
Using .Display brings the email up on the screen in Outlook. Using .Send just sends it.

Jim
Aug 22 '13 #2
zmbd
5,501 Expert Mod 4TB
jimatqsi:
That should work so long as the references to the outlook library are set correctly.

gserfiotis:
Your question is just a little vague. Are you wanting to SEND the email or RECEIVE and process the email?

How I read this, you want to send a MS Access form via email and that you would like for the form to function within Outlook, that is not normally possible; however, you can create HTML email forms or InfoPath forms to send out for users to fill out. Pulling the data can be somewhat of a pain. In V2007 there is an automated means of doing this; however, unless both you and your receipents have InfoPath, the wizard is, (IMHO), very poorly implemented.
Biggest issue with the HTML email - conversion to plain text.
Outlook 2010 will do this conversion automatically in a default setup. If you sent a HTML email to me, it would be stripped down to plain text both at work and at home as I do not allow HTML emails to be sent as a security precaution. I've fixed one too many a friend's PC due to virus infections from such emails.

You may also wish to read:
Aug 22 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Janna Deegan | last post by:
Hello all, First off, if there is a better place to post for an answer to this question, please feel free to point me there. I have some very strange behavior happening with my System.web.mail...
3
by: MarkMurphy | last post by:
I have a simple export.aspx page that allows a user to fill in a form to export some data. The postback logic writes the data to the response stream. I have two small issues: 1) The data is...
7
by: Lau | last post by:
I need to send 1000 emails from an asp.net website. Normally I would use System.Web.Mail.MailMessage() to send thru an SMTP server. But the large amount of emails results in a timeout. My server...
2
by: Mariame | last post by:
Hi Everyone, im sending mails using this code Dim smtpmail As Mail.SmtpMail Dim msgRequest As New Mail.MailMessage msgRequest.BodyFormat = Mail.MailFormat.Html msgRequest.Subject = "Track"
3
by: Alan Silver | last post by:
Hello, Sorry if this is a stupid question, but I can't really see much difference between these tow methods according to the scant info in the SDK. Could anyone enlighten me? TIA -- Alan...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
20
by: Tony | last post by:
I have a situation where I want to send data, but I have no need for a response. It seems to me that XMLHTTPRequest is the best way to send the data, but I don't need any response back from the...
7
by: oopsbabies | last post by:
Hello everyone, I am using Apache 1.3.33 as the web server and PHP version 4.3.10. My machine is using Windows XP 2002 professional edition which comes with a Windows firewall. I am using McAfee...
2
by: Hughesie11 | last post by:
Im trying to post from a form to send an email, im using CDONTS ( I have to as it will be running on NT4), the object appears to get created fine, however the email is not sending, its generates 3...
2
by: tiijnar | last post by:
Hi Friends, I Have written a java code to send mails to some receipients.It sends to internal mail ID's in the office. An SMTP server has been provided to me. But the problem is that the mails are...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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...
0
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...

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.