简体   繁体   中英

Write an html code to attach a file in mail

I am trying to write an HTML Code which on clicking on one of the links a mail is sent to respective mail Id.But along with that mail i also want to attach an attachment by default.Uptill now i am able to pouplate rest of the fields like to,cc,bcc,sub but the only thing remained is attachment.

Can anyone sort it out for me.Your help would be appreciated and thanks in advance.

Attachments are encoded in mail messages according to the MIME standard. All the major web scripting languages have modules to read and write MIME messages. Searching for "MIME" at CPAN for instance will turn up lots of useful Perl code.

I may be misunderstanding the question, but you're not going to be able to add an attachment to an email with HTML only . You're going to need some server side code.

Are you trying to use mailto: to do this?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM