Sending Email from Visual Basic.

Visual Basic is very powerful! All I want to know is some expert advice on email sending. When sending email you can use the mailto command but there are some limitation in the body. You can only send a certain amount of caracters. Using Outlook's Com Object is also limited in the sence that you can only use Outlook. If the user only has Outlook Express or even navigator, then you sit with your finger in your ear! What is the best possible way to do this? How can we as developers send email so that the default installed email client will be used? I have a feeling that it is going to be the mailto command. Why this is limited for me is that I need to be able to email document. Text that users insert into a database must be emailed at will. So obviously the documents will contain more that 500 caracters. Please help!!!

Abrian
AbrianAsked:
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.

iozturkCommented:
Try using the code someting like. First add CDONTS lib. from references.

Dim objmail As cdonts.NewMail
   Dim email As String
   Dim file_name As String
   Dim fso As Scripting.FileSystemObject
   Dim objability As Helpdesk.Ability
   Dim uploadpath
   
   
   On Error GoTo ErrorX
     
   uploadpath = fUploadPath
   Set objmail = New cdonts.NewMail
   isim = objability.fFindAdi(kulkodu) & " " & objability.fFindSoyadi(kulkodu)
   objmail.From = objability.fFindEmail(kulkodu)
   objmail.To = "a@b.com"
   objmail.Subject = "subject"
   objmail.Body = "message"
   
   
   
       objmail.Send
    End If
   
    Set objmail = Nothing
    Set objability = Nothing
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
iozturkCommented:
There are some typo


Dim objmail As cdonts.NewMail
Dim email As String
Dim uploadpath
 

 
  Set objmail = New cdonts.NewMail

  objmail.From = objability.fFindEmail(kulkodu)
  objmail.To = "a@b.com"
  objmail.Subject = "subject"
  objmail.Body = "message"
 
 
   
   objmail.Send

0
iozturkCommented:

Again typo

pls change

 objmail.From = objability.fFindEmail(kulkodu)
to
 objmail.From = "youremail"
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Éric MoreauSenior .Net ConsultantCommented:
0
CleanupPingCommented:
Abrian:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
Éric MoreauSenior .Net ConsultantCommented:
split points between emoreau and iozturk
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
Game Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.