PDA

View Full Version : Email code


Aussies-Online
19-02-2003, 00:14/12:14AM
I would like to create some email links for general inquiries.

I want to have it setup so that when someone click on the link, the message is already on the subject line and the body.
That way I can control what the message says and the visitor does not have to type anything. They just have to click "Send'.

I know this can be done. But I don't know how.

Can anyone gives me the code or script to do this?

Or at least tell me where I can find it?

Many thanks in advance.

Blue
19-02-2003, 01:34/01:34AM
Hi Aussies-Online!

This will put your pre-written subject in the subject line:

<a href="mailto:you@your-email.com?subject=type your subject line here">you@your-email.com</a> Just replace "you@your-email.com" with your email address, and repalce "type your subject line here" with the line you want as the subject.

To prefill the body as well, add this code:

&body=type your body text here

So, to combine prefilled subject and body, your code would look like this:

<a href="mailto:you@your-email.com?subject=type your subject line here&body=type your body text here">you@your-email.com</a>

:cheers:

Aussies-Online
19-02-2003, 04:21/04:21AM
Hi Blue

Thank you so much for your help.

I will try your code tonight.

I have re-design more than half of Aussies-Online already.

I had started to make some templates last December and was able to adapt them to the new design. That did save me a lot of time. Unfortunately, less than half of the site was cover by the templates. So I'll keep on working. :)