By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,369 Members | 1,188 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,369 IT Pros & Developers. It's quick & easy.

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

P: 94
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.

Share this Question
Share on Google+
1 Reply


P: 94
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

Post your reply

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