Easy enough
Okay, basically ignore this first bit of code. This generates an email based on what information is availabe in IE...
Code:
Sub CreateHTMLMail()
''''Creates a new e-mail item and modifies its properties'
Dim olApp As Outlook.Application
Dim objMail As Outlook.MailItem
Set olApp = Outlook.Application
'Create e-mail item'
Set objMail = olApp.CreateItem(olMailItem)
Dim oServMan As InternetExplorer
Dim Client, aClient, ClientNum, ProbLoc, SMmail, Sum, Desc, SD As String
Dim iQLS As Long
Set oServMan = GetServMan
Set otest = New clsSmselect
otest.SMselect oServMan
Set oServMan = GetServMan
Client = otest.Client
ProbLoc = otest.ProbLoc
SMmail = otest.SMmail
Sum = otest.Sum
Desc = otest.Desc
SD = otest.SD
Set oServMan = Nothing
''' Assigning things above in outlook mail message.
With objMail
.Subject = Client & " / " & Sum & " / " & SD
.Body = "Ticket Notes: " & Desc
.To = SMmail
.Display
.ReadReceiptRequested = True
End With
End Sub
Okay, so seeing what that did above lets fit it for your use...
Code:
Sub CreateHTMLMail()
''''Creates a new e-mail item and modifies its properties'
Dim olApp As Outlook.Application
Dim objMail As Outlook.MailItem
Set olApp = Outlook.Application
'Create e-mail item'
Set objMail = olApp.CreateItem(olMailItem)
''' Assigning things in the outlook mail message.
With objMail
.Subject = Forms("Formname").txtboxname
.Body = Forms("Formname").txtboxname
.To = Forms("Formname").txtboxname
.Display
.ReadReceiptRequested = True 'IF you want to enforce a read receipt, keep this part, if not just comment or remove it
End With
End Sub
Now, IF IF IF you were to post your form names and text boxes you want to pull from I could assist further. BUT I hope that points you in the right direction.