Henley12
Troy University Fan
- Local time
- Today, 05:10
- Joined
- Oct 10, 2007
- Messages
- 222
I am trying to send an email through Groupwise from an Access form. The code that follows works with one exception: it seems to have a limit to the number of characters it will send. Has anyone else experienced such a problem? Here is the code I am using.
Private Sub ConfigureHyperlink()
Dim emailAddress As String
Dim subject As String
Dim body As Variant
Const CRLF = "%0A"
'emailAddress = "name of recipient"
subject = "Help Desk Alert!!"
body = "*********** Call Alert!! ***********" & CRLF & CRLF
body = body & "Call ID: " & Me![CallID] & CRLF
body = body & "Caller: " & Me![LName] & ", " & Me![FName] & CRLF
body = body & "Phone: " & Me![Phone] & CRLF
body = body & "Department: " & Me![Dept] & CRLF & CRLF
body = body & "Description: " & Me![Description] & CRLF
mailingLabel.HyperlinkAddress = FormatEmail(emailAddress, subject, body)
End Sub
Private Function FormatEmail(emailAddress As String, _
subject As String, body As Variant)
' Format address, subject and body
' for use with HyperlinkAddress property:
FormatEmail = "mailto:" & emailAddress & _
"?Subject=" & subject & "&Body=" & body
End Function
Private Sub ConfigureHyperlink()
Dim emailAddress As String
Dim subject As String
Dim body As Variant
Const CRLF = "%0A"
'emailAddress = "name of recipient"
subject = "Help Desk Alert!!"
body = "*********** Call Alert!! ***********" & CRLF & CRLF
body = body & "Call ID: " & Me![CallID] & CRLF
body = body & "Caller: " & Me![LName] & ", " & Me![FName] & CRLF
body = body & "Phone: " & Me![Phone] & CRLF
body = body & "Department: " & Me![Dept] & CRLF & CRLF
body = body & "Description: " & Me![Description] & CRLF
mailingLabel.HyperlinkAddress = FormatEmail(emailAddress, subject, body)
End Sub
Private Function FormatEmail(emailAddress As String, _
subject As String, body As Variant)
' Format address, subject and body
' for use with HyperlinkAddress property:
FormatEmail = "mailto:" & emailAddress & _
"?Subject=" & subject & "&Body=" & body
End Function