Preset Subject line in an email

D

Didymus

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have a form - frmAbout
On this form I have some information about the program.
It also contains a url link and an email link.
Both work fine, however, can I make the email link set the
SubjectLine in the email to a predetermined String?

TIA
Gary

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>

iQA/AwUBP/XQbD8KnwrkurVSEQIkQwCZAZAc8KUvvgA56b3jx7dTKdPMBkQAn3pB
W4r7mMMRjV4Wy+R0v/tiwBWP
=dj8U
-----END PGP SIGNATURE-----
 
S

Sean

Is the email being sent from your form or from an
external software such as Microsoft Outlook?
 
D

Didymus

</snip>

Herfried,

Thank you very much for the help!
Works like a charm.
This is how I modified the code for my use:

Private Sub lnklblMail_LinkClicked(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles
lnklblMail.LinkClicked

'Declare the Subject variable

Dim sSubject As String

sSubject = "Reporting errors in Bible Program"

' Change the color of the link text by setting LinkVisited

' to True.

lnklblMail.LinkVisited = True

' Call the Process.Start method to open the default browser

' with a URL:

System.Diagnostics.Process.Start("mailto:[email protected]" & "?subject=" &
sSubject)

End Sub


Thanks,
Gary
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top