Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Email with attachments?

Author
Message
Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 27th Sep 2013 23:11
Hi all.
I know that we can initiate an email in an AppGameKit app with mailto:
I imagine that adding the subject and body works, but does attachment&attachment= work?
It would be much more efficient for my game's support request function to send email with attachment rather than uploading the file to the server.
Would love to know if anyone's tried this on iOS and Android.
Thanks!

Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 2nd Oct 2013 18:27
Try as I may I can't get this to work.
I think the &attachment= variable has been excluded from working with most modern webmail clients. Probably due to security. I guess the only way to get error logs from my users is to have them upload the file to the server.
Now I need to decide whether to let all of them do that carte blanc or only after a support request has been submitted.

Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 2nd Oct 2013 18:43
alternate maybe you can send a mail from a .php script.
means without the local mail app.
Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 2nd Oct 2013 18:47
Not a bad idea, I didn't think of that. Thanks!

Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 2nd Oct 2013 18:52
Naphier, your example of using SendHTTPFile is a perfect place for this.

Use that to upload the 'attachment' and then use the normal mail stuff to send you an email about it.

Or, it could all be done with the SendHTTPFile. It is relatively easy to send mail from PHP. There are lots of classes out there for using SMTP and such with PHP.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 2nd Oct 2013 19:00
@AL - ya that's what I'm leaning towards (upload attachment and have the php script send an email to me).

=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 8th Dec 2013 01:09 Edited at: 8th Dec 2013 01:09
Being a complete PHP noob, could I cheekily ask you to "gimme teh codez" and to post an example php script which can upload a file and then send it as an attachment in an email? Please

Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 8th Dec 2013 01:19
I put up an example in the online help under the sendHTTPfile command, sorry not at a PC right now to give you the specific link.

=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 8th Dec 2013 01:56
Ah, ok Naphier, thanks for that. I'll check it out later on.

easter bunny
12
Years of Service
User Offline
Joined: 20th Nov 2012
Playing: Dota 2
Posted: 8th Dec 2013 23:27
As it happens, I've already got all the code to do this!

php code: (nbu.php, accepts file and emails it to address)


AGK code:


Login to post a reply

Server time is: 2024-11-24 23:54:14
Your offset time is: 2024-11-24 23:54:14