Get Smarty

Smarty Icon

You may use the Smarty logo according to the trademark notice.

Smarty Template Engine Smarty Template Engine

For sponsorship, advertising, news or other inquiries, contact us at:

Check reviews of PHP Web Hosting, compatible with Smarty Templates

{mailto}

{mailto} mengotomasi pembuatan link mailto: dan secara opsional mengkodekannya. Mengkodekan email menjadikannya lebih sulit untuk pengawas web untuk mengangkat alamat email dari sebuah situs0.

Catatan Teknis: Javascript mungkin bentuk pengkodean paling teliti, meskipun anda dapat menggunakan pengkodean heksa juga.

Nama AtributTipeDiperlukanDefaultDeskripsi
addressstringYan/aAlamat e-mail
textstringTidakn/aTeks untuk ditampilkan, standarnya adalah alamat e-mail
encodestringTidaknoneBagaimana untuk mengkodekan e-mail. Bisa berupa salah satu dari none, hex, javascript atau javascript_charcode.
ccstringTidakn/aAlamat Email untuk carbon copy, pisahkan entri dengan koma.
bccstringTidakn/aAlamat Email untuk blind carbon copy, pisahkan dengan koma
subjectstringTidakn/aSubyek Email
newsgroupsstringTidakn/aMenulis ke Newsgroups, pisahkan entri dengan koma.
followuptostringTidakn/aAlamat untuk diikuti, pisahkan entri dengan koma.
extrastringTidakn/aSetiap informasi ekstra yang ingin anda kirimkan ke link, seperti kelas style sheet

Teladan 8-23. contoh baris {mailto} diikuti oleh hasil

{mailto address="me@example.com"}
<a href="mailto:me@example.com" >me@example.com</a>

{mailto address="me@example.com" text="send me some mail"}
<a href="mailto:me@example.com" >send me some mail</a>

{mailto address="me@example.com" encode="javascript"}
<script type="text/javascript" language="javascript">
   eval(unescape('%64%6f% ... snipped ...%61%3e%27%29%3b'))
</script>

{mailto address="me@example.com" encode="hex"}
<a href="mailto:%6d%65.. snipped..3%6f%6d">&#x6d;&..snipped...#x6f;&#x6d;</a>

{mailto address="me@example.com" subject="Hello to you!"}
<a href="mailto:me@example.com?subject=Hello%20to%20you%21" >me@example.com</a>

{mailto address="me@example.com" cc="you@example.com,they@example.com"}
<a href="mailto:me@example.com?cc=you@example.com%2Cthey@example.com" >me@example.com</a>

{mailto address="me@example.com" extra='class="email"'}
<a href="mailto:me@example.com" class="email">me@example.com</a>

{mailto address="me@example.com" encode="javascript_charcode"}
<script type="text/javascript" language="javascript">
    <!--
    {document.write(String.fromCharCode(60,97, ... snipped ....60,47,97,62))}
    //-->
</script>

Lihat juga escape, {textformat} dan mengaburkan alamat email.

Comments
No comments for this page.
Post a Comment
All comments are moderated. Support questions are ignored, use the forums instead.
Author:
Email: (not shown)
What is 4 plus 4? (Are you human?)

Sponsors [info]

Cheap Website Hosting @hostdone.com
Cheap Hosting @HostsVault
email marketing @ActiveCampaign
broadband deals @BroadbandGenie
Best UK Web Hosting @webhost.uk.net
Reliable UK and US Web Hosting @rshosting.com
Cheap US and UK Web Hosting @infrenion.com
I.T Certification Exams @pass-guaranteed.com
Certification Practice Tests @firsttrycertify.com
Certification Practice Exam Questions @ace-it-certifications.com
Broadband Speed Test @broadbandspeed.co.uk
bulk email software @americaint.com