473,655 Members | 3,105 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SendObject Method

JustJim
407 Recognized Expert Contributor
Hi All,
I know this is not strictly an Access Problem, but hopefully some advice will be forthcoming.

When I execute
Expand|Select|Wrap|Line Numbers
  1. DoCmd.SendObject acSendNoObject, , acFormatRTF, strEmailAddress, , , strEmailSubject, strEmailBody, True
all is well and an email starts on my user's Outlook compose screen...

But... when the e-mail is sent, Outlook doesn't add her signature block to the email. It does add the department she works for's disclaimer!

There are no arguments left in the SendObject method, does anyone have any ideas how to tell Outlook to do what I want (which by the way, is to send an email just as if my users have clicked New in Outlook and typed it themselves)

Jim
Dec 11 '07 #1
12 5551
ADezii
8,834 Recognized Expert Expert
Hi All,
I know this is not strictly an Access Problem, but hopefully some advice will be forthcoming.

When I execute
Expand|Select|Wrap|Line Numbers
  1. DoCmd.SendObject acSendNoObject, , acFormatRTF, strEmailAddress, , , strEmailSubject, strEmailBody, True
all is well and an email starts on my user's Outlook compose screen...

But... when the e-mail is sent, Outlook doesn't add her signature block to the email. It does add the department she works for's disclaimer!

There are no arguments left in the SendObject method, does anyone have any ideas how to tell Outlook to do what I want (which by the way, is to send an email just as if my users have clicked New in Outlook and typed it themselves)

Jim
Within Outlook, do you have the Add signatures to all outgoing messages check box selected? (Tools, Options, Signature Tab).
Dec 12 '07 #2
JustJim
407 Recognized Expert Contributor
Within Outlook, do you have the Add signatures to all outgoing messages check box selected? (Tools, Options, Signature Tab).
In Outlook 2003 SP2 there ain't a Signature Tab, but I found a Mail Format Tab which had Signature for new messages and a listbox of choices. Also on that tab was a Compose in... combobox which was set to HTML. Hmm thinks I.

I changed that option to RTF and used my same code... no signature. I put the Compose in... option back to HTML and changed my code to
Expand|Select|Wrap|Line Numbers
  1. DoCmd.SendObject acSendNoObject, , acFormatHTML, strEmailAddress, , , strEmailSubject, strEmailBody, True
Still no signature.

The heck with it! Only one user will be using this feature, I'm just going to hard code a signature block along with the body text already coded in strEmailBody.

Thanks anyway and if I don't catch you in the lists before it, have a great Christmas and a Safe New Year.

Jim
Dec 12 '07 #3
JustJim
407 Recognized Expert Contributor
Just noticed something interesting, no matter if I export as acFormatHTML or acFormatRTF, Outlook uses Word as the editor and in the title bar shows Plain Text. Even if I turn off Word as the e-mail editor for new messages!

Jim
Dec 12 '07 #4
ADezii
8,834 Recognized Expert Expert
In Outlook 2003 SP2 there ain't a Signature Tab, but I found a Mail Format Tab which had Signature for new messages and a listbox of choices. Also on that tab was a Compose in... combobox which was set to HTML. Hmm thinks I.

I changed that option to RTF and used my same code... no signature. I put the Compose in... option back to HTML and changed my code to
Expand|Select|Wrap|Line Numbers
  1. DoCmd.SendObject acSendNoObject, , acFormatHTML, strEmailAddress, , , strEmailSubject, strEmailBody, True
Still no signature.

The heck with it! Only one user will be using this feature, I'm just going to hard code a signature block along with the body text already coded in strEmailBody.

Thanks anyway and if I don't catch you in the lists before it, have a great Christmas and a Safe New Year.

Jim
The same goes for you Jim, have a happy Holiday!
Dec 12 '07 #5
Denburt
1,356 Recognized Expert Top Contributor
Just noticed something interesting, no matter if I export as acFormatHTML or acFormatRTF, Outlook uses Word as the editor and in the title bar shows Plain Text. Even if I turn off Word as the e-mail editor for new messages!

Jim
That is interesting, I might just have to look at that.

I did do a little digging, and from what most people are saying is that the signature can be placed in the body automatically as you create a new email, but as soon as you make changes to the body (in VBA) the sig is replaced. If this is in fact what is happening then I would think you could extract the signature before changing the body and add it to the body you are changing it to. Although the following link is for use in Outlook it may help accomplish such a task.

http://www.outlookcode.com/codedetail.aspx?id=615
Dec 12 '07 #6
JustJim
407 Recognized Expert Contributor
That is interesting, I might just have to look at that.

I did do a little digging, and from what most people are saying is that the signature can be placed in the body automatically as you create a new email, but as soon as you make changes to the body (in VBA) the sig is replaced. If this is in fact what is happening then I would think you could extract the signature before changing the body and add it to the body you are changing it to. Although the following link is for use in Outlook it may help accomplish such a task.

http://www.outlookcode.com/codedetail.aspx?id=615
Thanks for that. It's a little complex and, as you say designed for use in Outlook. Going through it so I understand it and then transcribing it to control Outlook from Access sounds like a wonderful holiday entertainment (I am one weird puppy!)

Happy <insert observed holiday here>

Jim
Expand|Select|Wrap|Line Numbers
  1. Smile.Width = Gift.Value * Giver.Love^2
Dec 12 '07 #7
Denburt
1,356 Recognized Expert Top Contributor
Just a quick follow up here. So far I have been unable to retrieve the signature using CDO (which is what I normally use to send emails) and I am currently unable to use sendObject because I am currently running two version of office and they are conflicting. I can't send anything via Outlook from any of my other office apps. LOL However I did manage to retrieve the signature using Outlook and new mailitem (see link below). I currently have my settings in Outlook to send the signature with all new email items. The interesting thing is that the signature is not placed in the email until it is displayed on screen. Go figure. Once you use the .display option you can use the .body to extract the signature then do as you please with it.

Hope this helps, good luck.

http://support.microsoft.com/kb/161088
Dec 20 '07 #8
JustJim
407 Recognized Expert Contributor
<snip> you can use the .body to extract the signature then do as you please with it.
Must be the holiday season. If you "do as you please" with the .body then you are going to have to pay for it!

Happy New Year

Jim
Oops, I messed up the quote codes, Happy New Year anyway
Jan 2 '08 #9
Denburt
1,356 Recognized Expert Top Contributor
Must be the holiday season. If you "do as you please" with the .body then you are going to have to pay for it!

Happy New Year

Jim
Oops, I messed up the quote codes, Happy New Year anyway
ROFLMAO
Fixed the quotes for you...

First I would like to say that I have never abused the body of an email before but then that brings to question what is abuse of an email body...

Second I have never paid for the use of a .body, unless you include the many credit cards my wife has, oh and the ring on her finger/fingers, the earrings she wears, and the bank account that doesn't exist anymore, etc. seriously I am just joking (in case she reads this).
Yeah sometimes I forget to explain myself in enough detail for some of you with your minds in the gutter and all but don't worry I understand it must be the holidays, maybe you should ease up on the Eggnog and such.

Well you have a Happy New Year as well.
Jan 2 '08 #10

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

Similar topics

3
5170
by: J Bunton | last post by:
DoCmd.SendObject Using windows2000 and OutLook Express v6 I have Access 2000 and Access 97 installed on the same machine. To achieve this and so that Access applications open with the appropriate version of access I have two new file types extension .Ac7 for access 97 apps and .md2k for access 2000 apps. The sendobject method works for Access 2000 apps but NOT for Access97 apps
4
3441
by: Fred | last post by:
I want to insert DHL and FedEx tracking links with the waybill numbers in the body of emails I am sending using sendobject. I am not sending attachments. DHL and FedEx use long links that truncate in plain text format. How do I send an html formatted body in sendobject? Or does DHL and FedEx have a shorter link? Thanks.
8
5069
by: Andy Kasotia | last post by:
Warning message in Outlook 2003 while using SendObject. When i try to use sendobject to send an email, a warning massage pops up, saying that "Outlook is trying to send an email.......if this is a virus, you should choose no." Can I do away with this message and have it send the email without user intervention? I wasn't able to find any optional parameters for the SendObject that
1
3784
by: AJ | last post by:
I have a student registration database, that prints a report to PDF. I am using the sendObject method to create an E-mail and write THAT student's registration to a report for him. I am trying to automate the process, so it will cycle through each of the students without user intervention. Right now, it will 1. create the report, 2. create the E-mail (with inserted E-mail address and message), but I have to 1. Save the PDF report to...
3
1657
by: Fred Zuckerman | last post by:
Hello All, I had written a quick email procedure for a client that uses DoCmd.SendObject. However they have the SR-1 version of Access 2K. They do not have the SP-3 upgrade. The procedure does not work all of the time (it seems to fail on long emails). The procedure works fine on my computers that have the SP-3 upgrade. I read about the SP-3 upgrade and it evidently repairs some SendObject bugs. Unfortunately, the client has another...
2
846
by: Andy_Khosravi | last post by:
I posted this question about two days ago, but for some reason it never actually got put up. I couldn't' find it with searches, so I am re-posting it now. I apologize if this is a double post. Hello, I've a bit of a problem with the SendObject command in VBA. On my computer when I execute the below code, a new memo is generated in Lotus Notes with an attachment labeled "Benefit Issues Log.rtf". (Benefit Issues Log is the name of the...
2
3150
by: Owen Mac | last post by:
Hello everyone, Is it possible to use an email address from a table and/or query with the Sendobject Method. An email address from my form works fine...what I would like is the 'To:' section be filled from a query I have. DoCmd.SendObject acReport, stDocName, acFormatRTF, _ "email address here", , !!,,
0
1403
by: (PeteCresswell) | last post by:
Another thread got me going on SendObject. Works like a champ for emailing somebody a .SNP of a report as in: DoCmd.SendObject acSendReport, "rptMaturities", "Snapshot Format", "pCresswell", , , "Maturities", "Maturities Report attached...", False But I do lot of so-called "reports" where I'm actually creating
5
12343
by: Ken OHanlon | last post by:
I wrote a short program that uses "SendObject". It works fine on my computer, it works fine on my clients computer, but when I copy/paste it up to the server to use it there also, Access issues the following message: The expression on click......The command or Action "SendObject" isn't available now. If you click on the See Details button you get: Visual Basic for Applications (VBA) encountered a problem while attempting to access a...
0
8380
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
8296
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
8598
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
7310
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
5627
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
4150
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
4299
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2721
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
2
1928
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.