how to put receiver,subject,body and attachm. in Emailwindow

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
matthiasR
Pro Scripter
Posts: 52
Joined: Tue Jan 20, 2004 3:45 pm
Location: Lübbecke, Germany

how to put receiver,subject,body and attachm. in Emailwindow

Post by matthiasR » Wed Nov 29, 2006 10:37 am

Hi,

i want to do the follwing. I want to read a file, which contains the information receiver,subject,body and a path to a file.

This is information should be read by my script. Then the script should send this information to mapi32.dll, so a "New Email" window is opened and all information is in the right place. I tried it to give the parameters to the email program using mailto:. This works fine unless i want to use attachments.

Is there a way to send receivername, subject, bodytext and attachment to mapi. I found a script in the forum, which does this, but it automatically sends the email. But its important, that the user can verify the information before the email is sent. Any idea?

Best regards,

Matthias Rebbe

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Nov 29, 2006 10:59 am

As far as I am aware the mapi mailto: protocol doesn't support attachments.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

matthiasR
Pro Scripter
Posts: 52
Joined: Tue Jan 20, 2004 3:45 pm
Location: Lübbecke, Germany

Post by matthiasR » Wed Nov 29, 2006 11:03 am

Hi,

is there another way to do it with macroscheduler?

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Nov 29, 2006 11:13 am

If you just want to send an email just use the SMTPSendMail command.

Or you can construct an email in Outlook using VBScript and Outlook's COM interface:
http://www.mjtnet.com/forum/viewtopic.php?t=611

Funny, just gave the same answer today here:
http://www.mjtnet.com/forum/viewtopic.php?t=3443
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts