Hi
Having a little difficulty with this, advice welcome.
I'm paging through a recordset and accumulating user names and corresponding email address from each record into a string variable which I then write to the asp page as part of a mailto: link.
I want the link to fire up the users desktop email client placing the list of Name/Email addresses in the To: box.
My understanding was that each entry in the mailto: link should be of the form...
Name <email_address>;
However, it seems that inclusion of the "<" character in the string results in only the first name being passed??
Here's the relevant bits of my code, anyone spot anything untoward?
Help appreciated
Regards
TS
Having a little difficulty with this, advice welcome.
I'm paging through a recordset and accumulating user names and corresponding email address from each record into a string variable which I then write to the asp page as part of a mailto: link.
I want the link to fire up the users desktop email client placing the list of Name/Email addresses in the To: box.
My understanding was that each entry in the mailto: link should be of the form...
Name <email_address>;
However, it seems that inclusion of the "<" character in the string results in only the first name being passed??
Here's the relevant bits of my code, anyone spot anything untoward?
Code:
do while not rsNSSA.eof
'Build a string of Names and corresponding email addresses
massEmail = massEmail & rsNSSA("m_firstname") & " " & rsNSSA("m_lastname") & " <" & rsNSSA("m_email") & ">; "
rsNSSA.movenext
loop
if massEmail <> "" then
'trim off trailing space and arbitrary last semi-colon
massEmail = trim(massEmail)
massEmail = left(massEmail, len(massEmail)-1)
'Write link to asp page
response.write "<a href='mailto:" & massEmail & "'>Email ALL Commitee Members with an Email Address</a>"
end if
Help appreciated
Regards
TS