Hello, i want to make a program that that can email a message
like you enter the recipient email address and then the message and then send.
So i dont hav any idea on how that works or if its possible to make something like this
so any help will be appreciated
thanks

Recommended Answers

All 3 Replies

Hello
You could try this piece of code:

Dim objEmail = CreateObject("CDO.Message")
        objEmail.From = "someone@home.com"
        objEmail.To = "someonelse@home.co.nz"
        objEmail.Subject = "Hello!"
        'you can add html into the textbody to make it a html message
        objEmail.Textbody = "Hello" & vbCrLf & "From Henry"
        objEmail.AddAttachment("C:\file.txt")
        objEmail.Send()
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.