0

How can i send an email from vb6.for example my driver’s license will be expired in a month. I want my vb6 to send an email to notify me about the expiration. Anyone can help me? Thanks in advance.

3
Contributors
4
Replies
18
Views
5 Years
Discussion Span
Last Post by SaRa Ahmad
0

I used an oldie for that: aspmail.ocx. That was the standard, sort of, when I implemented it. I see when I google that it's still around:

Click Here

The software I bult it in is an vb6 dll. I still use it in older installations.

0

thanks for help man.i will now try this and post again if i have problem with this again.thanks

0

i got too many errors..huhu how can i do this? pls help me anyone??

0

Dim olapp As New Outlook.Application
Dim olMail As Outlook.MailItem
''Create a new mail object form the
''Outlook98 Application object
Set olMail = olapp.CreateItem(olMailItem)
''Set the mail fields of the olMail object
olMail.Subject = (your subject here)
olMail.To = "set the email you want to send for"

''olMail.Body = <the mail body does in here>
olMail.Attachments.Add ()

''Tell Outlook to send this message
olMail.Send
''Be kind to your environment and clean
''up your unused objects
'Set olMail = Nothing
'Set olapp = Nothing
''--end code block

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.