473,385 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Preset Subject line in an email

-----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/XQbD8KnwrkurVSEQIkQwCZAZAc8KUvvgA56b3jx7dTKdPMBkQA n3pB
W4r7mMMRjV4Wy+R0v/tiwBWP
=dj8U
-----END PGP SIGNATURE-----
Nov 20 '05 #1
6 2060
Is the email being sent from your form or from an
external software such as Microsoft Outlook?
-----Original Message-----
-----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 theSubjectLine 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/XQbD8KnwrkurVSEQIkQwCZAZAc8KUvvgA56b3jx7dTKdPMB kQAn3pBW4r7mMMRjV4Wy+R0v/tiwBWP
=dj8U
-----END PGP SIGNATURE-----
.

Nov 20 '05 #2
From the default email software, not from the form.

Thx
Gary
Nov 20 '05 #3
* "Didymus" <di************@hotmail.com> scripsit:
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?


<http://groups.google.com/groups?selm=uld6n9xnDHA.1632%40TK2MSFTNGP10.phx.gb l>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
<snip>
<http://groups.google.com/groups?selm...FTNGP10.phx.gb
l>
--
Herfried K. Wagner [MVP]

</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:me@home.c a" & "?subject=" &
sSubject)

End Sub
Thanks,
Gary
Nov 20 '05 #5
* "Didymus" <di************@hotmail.com> scripsit:
<http://groups.google.com/groups?selm...FTNGP10.phx.gb [...]
sSubject = "Reporting errors in Bible Program" [...] System.Diagnostics.Process.Start("mailto:me@home.c a" & "?subject=" &
sSubject)


Notice that the code I posted a reference to encoded the subject properly.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #6
Thank you, Thank you :)
Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: gsb | last post by:
HOW TO: Submit a form to PHP with no return? I need to submit a form for file upload to a PHP script but do not want anything returned. That is the TARGET for the form should be like a null...
13
by: Peter Amberg | last post by:
I would like to create a link on my page that opens the standard e-mail application when someone clicks it. It should have at least the subject preset, better if I could preset the body as well. I...
6
by: Susan | last post by:
Is there any way to take one of the fields from the form and use that as your subject line.. right now I have a default subject line entered - but would rather have the subject be the information...
4
by: murrayatuptowngallery | last post by:
I have looked at some mouseover/ sound object scripts and can't get them to work. Most were more complex than needed and introduced several new parameters for me. I found a simple pair of html...
1
by: ajdude | last post by:
All I need, is to have some preset words, and when the page loads, if the preset words that are in the code are on the page, and alert come like like "Word found" or if one of the preset words like...
3
by: b. dougherty | last post by:
Greetings all- I am trying to extract subject headers from emails that have been saved as text files. The subject headers are in MIME UTF-8 format, and so they appear like this: subject:...
4
by: Alec MacLean | last post by:
Is anyone aware of a size limit imposed on the subject text when using the System.Net.Mail library? I'm getting problems of message not being recieved if the subject exceeds 15 chars. Thx
3
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
I've got some code that is chopping my subject line on the messages I receive, and I do not know why. Our server is running Active Directory and SQL Server 2000 Enterprise. The email is sent,...
9
by: andersond | last post by:
I have a page that has a hot link to email an underwriter to request tax forms. Earlier, on the same page, the user selects a state in a drop-down box called "Garaginjg_State". Because the tax...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.