Sending email without pressing 'send' button (1 Viewer)

bloomy555

New member
Local time
Yesterday, 16:01
Joined
Jan 27, 2008
Messages
8
Hi........I have managed to generate an email by using "docmd.send object" command......the problem is that, this command generate an email and open the Outlook for me, but I have to press "send" from the outlook in order to send the message..........what I want to do is to skip that last step.

I know how to create the email and put the address and subject, but what I don't know is how to send the message automatically without having to press the send button each time.

Any help will be greatly appreciated.
 

pbaldy

Wino Moderator
Staff member
Local time
Yesterday, 16:01
Joined
Aug 30, 2003
Messages
36,139
Look at the Edit Message argument of SendObject.
 

bloomy555

New member
Local time
Yesterday, 16:01
Joined
Jan 27, 2008
Messages
8
Look at the Edit Message argument of SendObject.

Yes, I changed the edit message value to 0.

I've tried before to change the value from -1(default) to 1, but It didn't work. I didn't know that the value should be 0.........anyway I have changed it to 0 and it is working.........Many Thanks.
 

pbaldy

Wino Moderator
Staff member
Local time
Yesterday, 16:01
Joined
Aug 30, 2003
Messages
36,139
No problem; I usually use True or False rather than -1 or 0.
 

bloomy555

New member
Local time
Yesterday, 16:01
Joined
Jan 27, 2008
Messages
8
No problem; I usually use True or False rather than -1 or 0.

I think I will do the same as you, using numbers for logical values can get some confusion! like what happened to me.

Thanks again
 

Users who are viewing this thread

Top Bottom