Author Options:

Does anyone have any vbs mapi and tapi commands? Answered

The title pretty much says it. I wondered how to send e-mails or make phone calls through vbs.

Also... are there any mapi commands for receiving e-mails?



Best Answer 8 years ago

mailing isn't that hard :)

take a look at the below script in an exchange environment:

set objemail = createobject("CDO.Message")
strOutput="full path to file"

objemail.from = "john@doe.com"
objemail.to = "jane@doe.com"
objemail.cc = "mister@x.com"
objEmail.AddAttachment "full path to attachment"
objEmail.AddAttachment ""

///////// below are needed values for the exchange server ////////
objemail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objemail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "relay server or exchange server"
objemail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objemail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 5
objemail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sensusername") = "domein\username"
objemail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "password"



Answer 8 years ago

I have a question.

Where can I find an smtp server?


Answer 8 years ago

an smtp server is nothing more then the server sending and receiving the emails.
exchange (from Microsoft - very expensive) has an integrated smtp service.. each server you install with exchange has its own smtp server to send the messages..
when you have a relay server or so called smarthost, this is the server which sends the messages to the internet (or internally behind the proxy or (corporate) firewall)

another way is to use a POP server.. this works slightly different with an incoming and outgoing server... the outgoing server is called the smtp server and the incoming server is the POP server.. there are some freeware tools but the regular prices for more advanced servers is not really to talk about.

i prefer the Microsoft Exchange server, but that's only because i've worked with it since a couple of years work related (exchange 2003 and 2007) :) at home im running Exchange Server 2010 in my testlab... i love it ;)


Answer 8 years ago

Thanks. Can I find MS Exchange at the computer store or do I have to order it online?


Answer 8 years ago

order it online at the microsoft site.

beware: EXPENSIVE! :(


Answer 7 years ago

Prostitute City of Info than so to grieve the story is better to keep silent into the account.


Answer 8 years ago

objEmail.TextBody = "This is some sample message text."


8 years ago

There must be VBS users' groups and mailing lists and websites and so on. It's worth spending the time to track them down; they will have more and better answers for you than Instructables will.

(I don't go near Microsoft-specific languages, so I have no specific suggestions... but in my experience searching for "vbs faq" and "vbs users group" and "vbs libraries" will probably either find what you need or demonstrate that it doesn't exist.)