Link to home
Start Free TrialLog in
Avatar of Abrian
Abrian

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of iozturk
iozturk
Flag of Türkiye image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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


Again typo

pls change

 objmail.From = objability.fFindEmail(kulkodu)
to
 objmail.From = "youremail"
SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CleanupPing
CleanupPing

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.
split points between emoreau and iozturk