0

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

3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by muzzy1000
0

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()
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.