473,396 Members | 1,866 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,396 software developers and data experts.

.Send command in Outlook.Application not recognised on some computers

But it is on other, supposedly identical machines!

This code:
Expand|Select|Wrap|Line Numbers
  1. Set Mail_Object = CreateObject("Outlook.Application")
  2. Set Mail_Single = Mail_Object.CreateItem(0)
  3. With Mail_Single
  4. .Subject = sSubject
  5. .To = sName
  6. .Body = Stext1
  7. .Send
  8. End With
  9.  
Works on my machine (which is XP and Office 07), and my colleagues laptop (Which is Win7 and Office 10), but not on any other machines. ON the others I get the following error:



I have checked the Reference library is the same on all machines, which it is. I can only assume I have enabled smething on the two machines that work, that isn't automatically enabled, but isnt in th reference library.
Feb 22 '11 #1

✓ answered by James Bowyer

Solved!

Fortunately, the problem was me being an idiot, and the address it was sending to was incorrect (only showing the username, not the whole address). As soon as I corrected this, it worked.

1 2699
Solved!

Fortunately, the problem was me being an idiot, and the address it was sending to was incorrect (only showing the username, not the whole address). As soon as I corrected this, it worked.
Feb 22 '11 #2

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

Similar topics

2
by: Dannic | last post by:
Here is the application. Its a simple application really. I have a db created in Access 2000 which opens to a switchboard created by the switchboard manager. Now the problem. This only works...
1
by: Francisc Molnar | last post by:
Hi. I'm trying to access the appointments from MS Outlook 2003 using the interop assembly. Here is the code using .Net Framework 2.0 beta: Microsoft.Office.Interop.Outlook.Application...
2
by: HvG | last post by:
I'm sure this is a trivial question, but I cannot create an Outlook Object from a WebForm app, but can from a console app. or a Windows app. My COM knowledge is very poor sorry. ...
1
by: Rob McCaughey | last post by:
Hi all! I'm a VB newbie, and trying to send an Outlook Task automatically without user intervention in a VB application. When I use the following code, if I enable the send portion (see code...
1
by: Stephen Noronha | last post by:
Hi, I am trying a sample app to send an email from my app I am getting a "type not defined error" I have added "Office and Outlook" COM component but still I am getting this error... Please...
3
by: tshad | last post by:
I have a program that is reading one of my mailboxes. It is polling the mailboxes ever 5 minutes to see if there is a message or not. Is this how Outlook does it (using Exchange as the...
8
by: Ryan | last post by:
I've created and deployed a VB.Net 2005 Application. I have it set as a FullTrust (ClickOnce) application. The install point is on a network server. I did not run into this issue at all while...
1
by: lonniejohnson | last post by:
I have recreated a report in using the built in Crystal in VS2005 for an ASP.net application. I like what I see. The problem is that it prints on some computers and not others. I am using the...
2
by: RodneyAnonymous | last post by:
I've got some code for composing an e-mail from the contents of an RTF box. The first time I execute it, everything works fine. If I close my app and then re-run it, however, I always receive the...
1
by: MyWaterloo | last post by:
Hi, I am currently using this code I found on the internet to send an appointment to Outlook: orm_frmAppointments!ApptDate = ! 'Form_frmAppointments!ApptTime = Me! Form_frmAppointments!Appt =...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
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.