Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 1    Views: 295

AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
11/22/13 04:50 AM (12 years ago)

Email from a custom url page?

I am trying to send an email from an html page that calls the native email app. I'd like to do it IOS (Android too if I could). I am using 'mailto' in my html and I can manage to add html parameters for the to address, subject and body text. This works OK in a browser. The problem I am finding is that if I use the custom url plugin, the email app is opened, but the parameters are not recognised. There is a similar forum post for BT 1.4 where @David gave a good answer. http://www.buzztouch.com/forum/thread.php?tid=46D9126E08CE3CDFF496B15&status=&searchInput=mail&sortColumn=FT.lastPostUTC&sortUpDown=DESC&currentPage=1&doViews=1 Things have moved on since 1.4 though. I believe the plugin to edit for IOS is BT_viewControllerManager.m in the BT_Layout directory, around the following code: //send email with toAddress (triggered when link with "mailto" is clicked in a web-view) +(void)sendEmailFromWebLink:(BT_item *)theScreenData toAddress:(NSString *)toAddress{ [BT_debugger showIt:self theMessage:[NSString stringWithFormat:@"sendEmailFromWebView: %@", toAddress]]; It looks to me as if this is set up to only be able to pass a 'to' address, not sure why or how to modify it, my my programming skills are just not up to this job - I was hoping, pretty please, if anyone could post a suggestion? Thanks, Alan
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
01/27/14 02:08 PM (11 years ago)
Let me look into this, this would be a good BT30. David
 

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.