My Day and the Email Code
Today was a rather action packed day. I woke up about ten minutes before I had to take Terry to work. I was feeling kind of low because I was stressing about this stupid Safari javascipt bug and about the imap module freaking out after the transfer. The imap module is the part of the site that reads the emails that people send it from their phones or other places.
Since the upgrade, it hadn't worked with attachments which had to end soon because I am getting my new sidekick which can mail voice recordings to my journal soon. It was the only part of the site PHP code that I did not program entirely from scratch and it was killing me to try and fix someone else's crappy script.
I decided to just sit down and address the issue straight up starting at line 1. Within two hours I had a perfect working solution that is well commented and also helped me understand exactly how the imap_fetch_structure(); function is structured in PHP. I love PHP
in case it is not obvious. So now you can email images to your journal from any picture phone again or even from your desktop computer!
This was the exact reason for the little lull in my journal. Without being able to send images from my mobile I was always sad. Hopefully life will get better now.
Since the upgrade, it hadn't worked with attachments which had to end soon because I am getting my new sidekick which can mail voice recordings to my journal soon. It was the only part of the site PHP code that I did not program entirely from scratch and it was killing me to try and fix someone else's crappy script.
I decided to just sit down and address the issue straight up starting at line 1. Within two hours I had a perfect working solution that is well commented and also helped me understand exactly how the imap_fetch_structure(); function is structured in PHP. I love PHP
in case it is not obvious. So now you can email images to your journal from any picture phone again or even from your desktop computer!This was the exact reason for the little lull in my journal. Without being able to send images from my mobile I was always sad. Hopefully life will get better now.