Hi i would like to achive this:
when the player beat a special boss, a screenshot is taken from the app and then sended to an email, how can i achieve that?
You can certainly send an html email with a picture embeded, I dont know about a screenshot from android, but you could send one from pc.
I have a tutorial to send a basic email here https://www.scirra.com/tutorials/4897/sending-an-email-from-construct2
To add a picture all you have to do is add an html element inside, the php, example below.
<?php
$date=date('l jS \of F Y h:i:s A');
$msg ="<html>
<head>
<style>
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid black;
border-collapse: collapse;
padding: 8px;
}
th {background-color: DarkKhaki ;
text-align: center;
}
td {background-color: OliveDrab ;}
td {color: white ;
text-align: center;}
</style>
</head>
<body>
<table>
<th>Picture sent on $date</th>
</table>
<img src=\"http://www.yoursever.com/yourpic.png\">
</body>
</html>";
//email information
$to = 'Whoever.@here.com';
$subject = "test1";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= 'MIME-Version: 1.0' . "\r\n";
$headers .= 'From: ' . "\r\n" .
'Reply-To: whoever.vzs@here.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to,$subject,$msg,$headers);
?>
This only uses php mail, and no other plugin or mailer
This is tested, and works, It might go in your junk mail, and takes a while to be received, good luck.