I have a function that i use on forms via
runcode=send_email(......). May be this will help
Public Function SEND_EMAIL(TOEMAIL, CCEMAIL, SUBJ, BODY)
Set objOutlook = CreateObject("Outlook.application")
Set objEmail = objOutlook.CreateItem(olMailItem)
With objEmail
.TO = TOEMAIL
.cc = CCEMAIL
.Subject = SUBJ
.BODY = BODY
.SEND
End With
Set objEmail = Nothing
End Function
Good luck,
Kuzz
"Time spent debating the impossible subtracts from the time during which you
can try to accomplish it."
I have the function written that works great. However, I wish to capture the address that it was sent from so that I can store it and easily send an email back to the original sender later on.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.