Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending email with VB

Status
Not open for further replies.

n0nick

Programmer
Apr 28, 2005
32
NO
I tried to send email with this vb command:
DoCmd.SendObject acSendNoObject, , , "slomic@snort.com", , , "Test", "Text", False

But when i click on the button that calls this command, Lotu Notes opens and edits this email. The field "To" in the edited email is empty, still i wrote "slomic@snort.com".

I have only installed Lotus Notes at my work so is it possible to one some way send this email without editing it before sending?
 
Hi, n0nick,

Certainly it's possible. Unfortunately, the SendObject method is pretty basic and doesn't work quite right with certain groupware applications (like Lotus Notes and Novell Groupwise). That said, you *can* access the full functionality of Notes - but you'll have to get cozy with the Notes API. The basic idea is, through VBA code, to create an instance of the application, then use the application's own objects, methods, events and procedures to accomplish your task.

Here's a link you might find useful:


Also, if you do a search for "Lotus Notes" you'll find a lot of threads right here on Tek-Tips that discuss this very issue.

HTH,

Ken S.
 
Thanks a lot, this helped alot! Its working very fine now! I love this forum, I get always quick and working answers! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top