Skip to main content
Participating Frequently
January 26, 2007
Question

dynamic Subject Line in Mail to

  • January 26, 2007
  • 2 replies
  • 1137 views
FIXED IT - Thanks anyway!!

I am using DW MX2004 and MS Access dB...would like to include a dynamic subject line in a mailto. The recordset is complete and the dynamic email works - but can't get it to work with a subject line (HTML - no problem) but... Here is the piece of code for that line:

<td colspan="2" width="25%"><span class="style1"><strong>Email Address: <br></strong></span>
<span class="style3"><a href="mailto:<%=(rsDescription.Fields.Item("Email").Value)%>"><%=(rsDescription.Fields.Item("Email").Value)%></a></span></td>

I would like to add a part number in the subject line or even the body of the message - doesn't matter- which is also in the same record set <%=(rsDescription.Fields.Item("PartNum").Value)%>

Here is the URL: http://www.mri-sales.com/AllInventory_Detail.asp?PartNum=647291

REALLY apreciate the help!!! Am Semi-new at this still - always something to learn! 😄
This topic has been closed for replies.

2 replies

Inspiring
January 28, 2007
I don' know if this will help, but I did the same thing in php this way:

<a href="mailto:you@yourDomain.com?Subject=<?php echo
$row_getEvents['event']; ?>&body=Please send me an invitation to <?php
echo $row_getEvents['event']; ?>">Get An Invitation</a>

It seems the logic would be the same.
Good luck

Jeff Samborski


"Jeney" <webforumsuser@macromedia.com> wrote in message
news:epd97j$luc$1@forums.macromedia.com...
>I am using DW MX2004 and MS Access dB...would like to include a dynamic
>subject
> line in a mailto. The recordset is complete and the dynamic email works -
> but
> can't get it to work with a subject line (HTML - no problem) but... Here
> is the
> piece of code for that line:
>
> <td colspan="2" width="25%"><span class="style1"> Email Address:
> <br>
</span>
> <span class="style3"><a
> href="mailto:<%=(rsDescription.Fields.Item("Email").Value)%>"><%=(rsDescription.
> Fields.Item("Email").Value)%></a></span></td>
>
> I would like to add a part number in the subject line or even the body of
> the
> message - doesn't matter- which is also in the same record set
> <%=(rsDescription.Fields.Item("PartNum").Value)%>
>
> Here is the URL:
> http://www.mri-sales.com/AllInventory_Detail.asp?PartNum=647291
>
> REALLY apreciate the help!!! Am Semi-new at this still - always something
> to
> learn! :D
>


Inspiring
January 26, 2007
How are you sending the email? Are you using cdosys or cdonts to sent the
mail?
or just the email link?

Dave

"Jeney" <webforumsuser@macromedia.com> wrote in message
news:epd97j$luc$1@forums.macromedia.com...
> I am using DW MX2004 and MS Access dB...would like to include a dynamic
subject
> line in a mailto. The recordset is complete and the dynamic email works -
but
> can't get it to work with a subject line (HTML - no problem) but... Here
is the
> piece of code for that line:
>
> <td colspan="2" width="25%"><span class="style1"> Email Address:
> <br>
</span>
> <span class="style3"><a
>
href="mailto:<%=(rsDescription.Fields.Item("Email").Value)%>"><%=(rsDescript
ion.
> Fields.Item("Email").Value)%></a></span></td>
>
> I would like to add a part number in the subject line or even the body of
the
> message - doesn't matter- which is also in the same record set
> <%=(rsDescription.Fields.Item("PartNum").Value)%>
>
> Here is the URL:
> http://www.mri-sales.com/AllInventory_Detail.asp?PartNum=647291
>
> REALLY apreciate the help!!! Am Semi-new at this still - always something
to
> learn! :D
>