Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 3    Views: 79

rakesh jain
Aspiring developer
Profile
Posts: 7
Reg: Dec 16, 2011
hounslow
70
09/10/13 02:26 PM (12 years ago)

Email image

Hi I am trying to use email image on IOS. It works fine but To address will be different for each user. So I was looking for getting recipient address from json. How do I do it? Does this plugin have an option to get data from screen data url?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
09/10/13 02:53 PM (12 years ago)
It has the option to 'pre-populate' the address from the control panel. If you want it to go to different people, you can either 'add' another name when the email sheet pops up, or you can leave it blank and allow the user to choose the destination. Anything else would probably require some code modifications... Cheers! -- Smug
 
rakesh jain
Aspiring developer
Profile
Posts: 7
Reg: Dec 16, 2011
hounslow
70
like
09/10/13 03:16 PM (12 years ago)
Thanks for your reply. Can you advise what need to be modified in code to get this working? Regards Rakesh
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
09/10/13 03:39 PM (12 years ago)
If you want it to go to multiple addresses, you can try adding more than one email address in the control panel, and separate them by comma or semi-colon (although I haven't tried it. It 'should' work). If you want to send one image to 10 people, that should cover it. If you want to send 10 separate emails, you'll have to modify the plugin code, because it's using the internal email methods to send. You'll end up needing to create your own email code within the plugin to keep from making a change that would affect the 'global' email methods. That part of the code starts around line 266 of the 'Email_Image.m' file. Cheers! -- Smug
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.