E-mail Attachments - Postet den (1275 Views)
Advanced Member
Etymon
Innlegg: 2396
2396
I had a request for a MOD to allow e-mail attachments to be appended to out-going e-mail from a member's profile being sent by a member who is logged in.
Does anyone remember what MOD or part of a MOD that may do this?<
   
 Sidestørrelse 
Postet den
Advanced Member
Etymon
Innlegg: 2396
2396
I found this topic (http://forum.snitz.com/forum/topic.asp?TOPIC_ID=60185&SearchTerms=mail+attachment), but it does not refer to a MOD.<
Postet den
Advanced Member
Etymon
Innlegg: 2396
2396
I suppose what I am looking for is some sort of template to work from where there is code and function.<
Postet den
Snitz Forums Admin
ruirib
Innlegg: 26364
26364
There is no template, really. You need to do as the post says, find the component you want to use and see how attachments can be added when using it. Then just tweak the Snitz code to do it.
I usually define a variable, say strAttach="c:\...."

Then change inc_mail.asp to test strAttach. if it's not empty then use the appropriate code to add the attachment for the email component in use.<
Postet den
Advanced Member
Etymon
Innlegg: 2396
2396
Thanks Rui!
I guess what I meant was a more of a form rather than a template. Does the attachment take an input along with a Browse button for uploading/attaching the file? I know I could play with the answer, but just wanted to get the basic idea to look at somewhere.<
Postet den
Snitz Forums Admin
ruirib
Innlegg: 26364
26364
I was not thinking about user interface, cause that's not the most important thing. Use an <input type=file...> form element if you need to.<
Postet den
Forum Moderator
AnonJr
Innlegg: 5768
5768
Just don't forget to add enctype="multipart/form-data" to your form tag...<
 
Du må legge inn en melding