Click to See Complete Forum and Search --> : Email Attachment thru wesite


Prez
07-30-2003, 08:01 AM
Hi, i am making a website and for it i have got a mailto command that sets up a pre-dtermined message with a subject and a body. The viewer types the email and can send it to anyone. However i want to add to this tag a command that will let me add attachments namely a sound file (.wav) i wish to embed in the email to play while the receiver reads his/her email. Can any one help? the command i use at the moment is

Click, <a href="mailto:""?subject="Im sorry"&body="Please forgive me. I didnt mean to hurt you">here</a>

Is there perhaps a command i could add like "&attachment=/sorry.wav"

Pls help. Thx

pyro
07-30-2003, 08:04 AM
I think the only way you are going to be able to do that is with serverside coding.

Prez
07-30-2003, 08:13 AM
o ok, but how do I do that?

And is it possible to perhaps use java?

pyro
07-30-2003, 08:28 AM
By java, do you mean javascript? If so, no, I don't know of a way to do it. If you server supports PHP, take a look at these links:

http://www.hollowearth.co.uk/tech/php/email_attachments.php
http://www.phpbuilder.com/columns/kartic20000807.php3

Prez
07-30-2003, 08:44 AM
thx pyro these are helpful

pyro
07-30-2003, 08:51 AM
You bet... :)

Prez
07-30-2003, 10:38 AM
Bad news my server doesn not support php...

I have found something though

I could use a the form tag and there is a parameter that willl let me put in an attachment. However i dont fuly understand it because i dont know what kind of path i have to put, relative or actual?

Could someone please enlighten me