Sending Email and Fax

Dear Experts,
   I want to send the documents that are stored in the hard disk through Email and Fax from my Visual Basic application.
    I have no idea. So please guide me and send me the sample code.


Sasikumar.N
sasikumarn77Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sreenathkCommented:
I do not know about fax, but I can tell you how to send attachemnt through email. If you want to start an email session using VB. You should start an MAPISession (Which will be property of MAPI32.dll in your machine). Once you given your authentication etc. there using MAPISession.SignOn(), you have to start a MAPIMessage(). This will give you all the features of email i.e. creating a new email, retriving an email, replying an email, accessing address book, sending an email etc. To attach an document in the email body using the functions AttachmentName and AttachmentPathName of MAPIMessage class. Try out these things. It is very easy to get the help for these topics in VB help. Search help for word "MAPI".
Doubts,
sreenath.reddy@philips.com
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Beginner2104Commented:
I think I have used: "Fax:1111111111" in stead of the e-mail adress when I needed to send a fax.
0
olxCommented:
for faxing you could use winfax, it has some integration with vb, and for emailing you could use "gbmail.exe" or "sendmail.exe"
0
Beginner2104Commented:
In order to use the fax service in win 98 you have to install the tool from the Win 98 CD-ROM. I do not remember the filenames but try a seach for fax or maybe find a directory called oldwin95.
0
Sar1973Commented:
Hi I am looking for a way to redirect faxes to my service by using Outllok.
The code should sound like:
(create email)
.attachFilIe="C:\myFax.doc"
.To="[FAX: 123-456]"
(send)
Is that true? Thanx.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.