Email code

software development

#1

Does anyone know any specific code for adding a link to my page that takes the clicker to their default email program and automaticly adds in my email adress and/or other information? I need this code.


#2

Email Me

This is food for spambots though

[color=#0000CC]jason[/color]


#3

It’s called the mailto: scheme and it is not guaranteed to work, because it depends on whether or not the browser is able to pass the URL to the mail client in full as well as the mail client being able to decode it. There is an RFC: http://www.faqs.org/rfcs/rfc2368.html

:cool: Perl / MySQL / HTML+CSS


#4

Hey, there’s a fairly simple MAILTO: HTML hyperlink reference that can do this… I’ve posted the code below, remember to change the information to what you want it to be…

<a href=“mailto:YourEmailHere?subject=“YourSujectHere”&body=“YourBodyTextHere””>

That’s pretty much it, you can mail to more than one address by adding a comma after the first email and tpying another. You may want to check the way the quotes are set up, I didn’t test it out.


#5

Thanks so much. Ill try them all.


#6

Except that spaces are invalid in URLs unless encoded as , and ampersands within HTML documents need to be represented by &, so you really need to do:

– Dan