Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mailto problems

Status
Not open for further replies.

crystalized

Programmer
Jul 10, 2000
390
CA
I have the following lines of code on one of my asp pages
Code:
<% dim subjectLine
   subjectLine=&quot;Firm&quot; & Session.Contents(&quot;firmID&quot;) & &quot;Logo&quot; %>
<STRONG>
<A HREF=&quot;mailto:crystals@genesis.sk.ca&subject=<%=subjectLine%>&quot;>
	Submit your logo</A>

I am now having other people in the office test what I have so far. The problem is that when I click the link the email message that is opened is addressed and has the subject correct. The other people in the office are getting this for the address

crystals@genesis.sk.ca&subject=Firm5Logo

Of course this does not work at all. There are various operating systems and versions of IE testing this around the office. Can anyone shed any light on the problem I would be very grateful. [sig]<p>Crystal<br><a href=mailto:crystals@genesis.sk.ca>crystals@genesis.sk.ca</a><br><a href= > </a><br>--------------------------------------------------<br>
Experience is one thing you can't get for nothing.<br>
-Oscar Wilde<br>
[/sig]
 
Hi Crystal,

Try this,

<HTML>
<BODY>

<% dim subjectLine
subjectLine=&quot;Firm&quot; & Session.Contents(&quot;firmID&quot;) & &quot;Logo&quot;
%>

<%
Response.write (&quot;<A HREF='mailto:crystals@genesis.sk.ca&subject=&quot; & subjectectLine & &quot;'>&quot;)
%>Submit your logo </A>

</BODY>
</HTML>

this should work,
[sig]<p>Chiu Chan<br><a href=mailto:cchan@gefmus.com>cchan@gefmus.com</a><br><a href= America, Inc</a><br>[/sig]
 
Actually that did not fix the problem I still get

To: crystals@genesis.sk.ca
Subject: Firm5Logo

in the appropriate spots on the email message but the other people in the office are still getting

To: crystals@genesis.sk.ca&Firm5Logo
in the address to of the email.

I am thinking of just printing out the subject line and asking the user to copy it and paste it into the subject line of the email. I would like to avoid that though, so if anyone has any other ideas.... [sig]<p>Crystal<br><a href=mailto:crystals@genesis.sk.ca>crystals@genesis.sk.ca</a><br><a href= > </a><br>--------------------------------------------------<br>
Experience is one thing you can't get for nothing.<br>
-Oscar Wilde<br>
[/sig]
 
I know that is why I am so stumped both ways work for me, but the rest of the office has problems with it every time. I just don't have any guesses. [sig]<p>Crystal<br><a href=mailto:crystals@genesis.sk.ca>crystals@genesis.sk.ca</a><br><a href= > </a><br>--------------------------------------------------<br>
Experience is one thing you can't get for nothing.<br>
-Oscar Wilde<br>
[/sig]
 
Hey Crystal, think what you have differently of the rest of users...must be a little detail.

I suppose the & are killing you. Have you tried:
<%
Response.write (&quot;<A HREF='mailto:crystals@genesis.sk.ca&quot; & _
&quot;&subject=&quot; & subjectectLine & &quot;'>&quot;)
%>Submit your logo </A>

another way coud be include the &subject in a variabe at top of the asp ... &quot;tira varilla&quot;, means must appplicate the trial and error method.

<%
dim varillazo
varillazo = &quot;&subject=&quot;
Response.write (&quot;<A HREF='mailto:crystals@genesis.sk.ca&quot; & _
varillazo & subjectectLine & &quot;'>&quot;)
%>Submit your logo </A>

..and remember that &quot;Experience is one thing..&quot;

Be luck !!!

jumanja@hotmail.com
[sig][/sig]
 
Crystal,

Try using ?subject=... instead of &subject=... It is probably the way e-mail clients are reading it.

[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top