Forum Moderators: open

Message Too Old, No Replies

Super Mailto: in html how to?

Specify BCC: but not hardcoded

         

silverbytes

8:25 pm on Oct 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I need a simple link mailto with carbon copy, not a challenge. Here it is:

<a href="mailto:mail@bla.com?Subject=Mysubject&CC=&BCC=other@mail.com.ar;other2@mail.com&Body=Some text">Click here</a>

But here's the tricky part:

I need to replace those emails addresses in BCC but not hardcoded. I'd like to be able to load a variable from a txt file or something...

The document MUST be an html so I don't think a php solution can help in this case...

Any ideas?

PatrickDeese

8:27 pm on Oct 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



why don't you have the mailto: go to an generic email address on the server, and have the server redirect to the recipients.

Most hosting co.s offer email redirects. it is server side, so completely invisible.

silverbytes

11:19 pm on Oct 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I like your idea!

However the recipients will change often... I was thinking in something like a txt list or something..

Setting in server each redirection is some time consuming.

PatrickDeese

11:25 pm on Oct 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



My hosting co has a control panel for email redirects. I can do it in about 1 minute.

killroy

11:53 am on Oct 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The only other way to do it in HTML (i.e. without server side scripting) is to use a JS external javscript file.

the JS is your "txt" i.e. it contains the email address, then a JS function inserts it into the BCC link.

SN

silverbytes

3:17 pm on Oct 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's lovely... unfortunatelly don't know jscrpit so I cant' write such a script... could you provide an example or where to find a tutorial?

Thanks!