| View previous topic :: View next topic |
| Author |
Message |
spiderman Guest
|
Posted: Sun Dec 21, 2003 5:29 am Post subject: MMS Diary |
|
|
Hi,
Just got 2 questions to ask:
1. Can i break the mms diary into few pages to display my mms photos ? say about 10 photos in one page instead of displaying all photos togather.
This will help to improve the speed of loading the web page. If possible, can let me know the script source code?
2. Can i modify the script to send to an email address eg.mms@domain.com instead of changing the mobilephone homepage?
appreciate your help?
regards,
Spiderman |
|
| Back to top |
|
 |
Peffis Site Admin
Joined: 09 Sep 2003 Posts: 324 Location: Sweden
|
|
| Back to top |
|
 |
Spiderman Guest
|
|
| Back to top |
|
 |
Peffis Site Admin
Joined: 09 Sep 2003 Posts: 324 Location: Sweden
|
Posted: Sun Dec 21, 2003 7:08 pm Post subject: |
|
|
Oh shit. I misunderstood your question. Since we were talking about MMS Diary I sort of got into the mode that you wanted to forwad the MMS to an email address after it has been sent as that is usually what people do. About using an email address to send...well, that's rather easy as well really. It's more a matter of email configuration really.
Take a look at Peffisaur which is the successor of MMS Diary (download from same place). In that code I have a file called recmail.pl or something that handles email that is received by sendmail and forwarded to that script via procmail. I set up an account that catches all emails that doesn't have a proper account on the server and then determine who sent it by looking at the address used.
It's a bit different with MMS Diary though as it doesn't store content in a database (Peffisaur uses MYSQL) so you might need to change it. It's not much work though. Hmm...I think you can just remove all the database stuff and it will work fine really if you point out the message storage directory ok. You will need the munpack program though but that you can download from the net (google to find it).
May the beards of your enemies grow inwards! |
|
| Back to top |
|
 |
Spiderman Guest
|
Posted: Tue Dec 23, 2003 4:38 pm Post subject: MMS - send via email |
|
|
Hi Peffis,
Thanks for your help. I still try to figure out how to get this thing work. I've downloaded & installed recmail.pl & did the email filteration for any email send to mms@domain.com to be directed to recmail.pl.
Too bad, nothing seems to be happened. No photos were shown in the mms dairy.
I have no idea wether my hosting a/c installed with munpack program & in the mildst of checking with them.
In the recmail.pl, i just did the change for the path point to msgstore & deleted mysql database string, are these correct? Fyi, my webserver uses sendmail for sending email.
Hope that you can help & wish you Merry Xmas!!
rgds,Spiderman |
|
| Back to top |
|
 |
Spiderman Guest
|
Posted: Wed Dec 24, 2003 10:50 am Post subject: MMS Dairy- Send via email |
|
|
Hi Peffis,
Can I use CPAN (perl script?) instead of munpack as MIME decorder as my web hosting a/c does not has this feature?
If so, any configuration need to be done?
Merry Xmas!!
rgds,Spiderman |
|
| Back to top |
|
 |
Peffis Site Admin
Joined: 09 Sep 2003 Posts: 324 Location: Sweden
|
Posted: Thu Dec 25, 2003 8:48 pm Post subject: |
|
|
Well, you can of course use anything you like. You will have to change recmail.pl though to make it work. Change line 8 and line 28 so it's compatible with your system. Munpack unpacks all the attachments into the target dir so you can replace that with anything you find suitable. Unfortunately the rest script also relies on that a file named info.txt is created. That's a file containing rows on the form:
<filenam> <ccontent type>
So if you replace munpack you will need your replacement to do the same...or just totally redesign recmail.pl. All it has to do is to unpack the attachments and add all the content to the mysql-database (not the content itself but the filenames of content and the content-type of the content)
Cheers,
Stefan |
|
| Back to top |
|
 |
Spiderman Guest
|
Posted: Fri Dec 26, 2003 2:59 am Post subject: MMS - Send Via Email |
|
|
Hi Stefan,
Thanks for your help. Merry Xmas & happy holiday!
I cant find any configuration on line 28 (recmail), pls help.
Line 8 is the path to munpack program, line 28?? no idea.
rgds,Spiderman |
|
| Back to top |
|
 |
Peffis Site Admin
Joined: 09 Sep 2003 Posts: 324 Location: Sweden
|
Posted: Fri Dec 26, 2003 10:53 am Post subject: |
|
|
Oh...I should have written 48 and nothing else. Line 48 is where munpack is used so you might need to change the command line options there to suit your program.
Cheers,
Stefan |
|
| Back to top |
|
 |
Spiderman Guest
|
Posted: Sun Dec 28, 2003 5:11 pm Post subject: MMS Via Email |
|
|
Hi Stefan,
I think i have configured everything & initiated 2 emails out. Nothing was happened & no photos were shown in mms diary. However, i noticed that mms folder has created a file called recmail.php & when i opened the file to check; all the photos details (file name, date & time sent, lots of funny coding, etc) that supposed to send were all kept in this file. see below:
************
content-type: image/jpeg; Name="pic_023.jpg"
content-id: <i1:pic_023.jpg>
content-location: pic_023.jpg
Content-Transfer-Encoding: base64
/9j/4QEQRXhpZgAATU0AKgAAAAgABgEaAAUAAAABAAAAVgEbAAUAAAABAAAAXgEoAAMAAAABAAIA
AAEyAAIAAAAUAAAAZgITAAMAAAABAAEAAIdpAAQAAAABAAAAegAAAAAAAABIAAAAAQAAAEgAAAAB
MjAwMzoxMjoxODoxNDoyMzo......
Any idea what went wrong? |
|
| Back to top |
|
 |
Peffis Site Admin
Joined: 09 Sep 2003 Posts: 324 Location: Sweden
|
Posted: Fri Jan 09, 2004 1:03 am Post subject: |
|
|
| Thats very strange I must say. I think I would have to see your source code to see what is going on. As I understand it you have changed it to something else now. Am I right? |
|
| Back to top |
|
 |
|