E-mail Attachments - Posted (1273 Views)
Advanced Member
Etymon
Posts: 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?<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Advanced Member
Etymon
Posts: 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.<
Posted
Advanced Member
Etymon
Posts: 2396
2396
I suppose what I am looking for is some sort of template to work from where there is code and function.<
Posted
Snitz Forums Admin
ruirib
Posts: 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.<
Posted
Advanced Member
Etymon
Posts: 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.<
Posted
Snitz Forums Admin
ruirib
Posts: 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.<
Posted
Forum Moderator
AnonJr
Posts: 5768
5768
Just don't forget to add enctype="multipart/form-data" to your form tag...<
 
You Must enter a message