Within the below code for Microsoft Email, I am tring to figure out how to place the current day and date in the "Subject=" field.

<html>

<body>

<p>
This is today's quote:
<a
href="mailto:someone@microsoft.com?cc=someoneelse@microsoft.com&bcc=andsomeoneelse2@microsoft.com&
subject=CURRENTDAYDATE&body=Today's%20Market%20Information">Markets!</a>
</p>

</body>

</html>

I don't think this can be done with just html like you are trying to do.

Why do you need to do this when the date is automatically set on emails by the server?

I was thinking that too, but if your determined, you could write your mail as javascript (which might help as antispam aswell) then you could possibly do it. something like this

<Script Language="JavaScript">
<!--
// The following is the same basic example as above,
// however we add a variable for the subject and the document
// title as the subject in the mail link.
var u_a="mail"
var u_b="to:"
var u_c="any_address"
var u_d="@"
var u_e="server"
var u_f="name"
var u_g=".com"
var u_h="subject=something
"
document.write ("<a href='"+ u_a + u_b + u_c + u_d + u_e + u_f + u_g + u_h + document.title +"'>Mail Link with Subject</a>");
-->
</script>

then maybe you could work in some javascript to put date in subject, this is the get date (only way I know)

<script type="text/javascript">

document.write(Date())

</script>

I have no clue hopw though, just trying to help in some small way. Matt Evans is the bloke you need! :D

Thanks for your help.

Reggiezack

Thanks much.

Reggiezack

thanks for this information.. html alone won't do this..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.