21 Jun 2013, 11:05
Hi!
Forcing the default email form to show up is somehow strange. Sending an email without any recipients just returns true and nothing else happens, but if I call AddToRecipient(...) before, sending fails and the email form appears. The desired behavior would be to show the form without adding recipients before or invoking the send method.
Forcing the default email form to show up is somehow strange. Sending an email without any recipients just returns true and nothing else happens, but if I call AddToRecipient(...) before, sending fails and the email form appears. The desired behavior would be to show the form without adding recipients before or invoking the send method.
IEMail* email = state->GetDeviceHandler()->CreateEMail(subject, message);
if(email != 0)
{
email->AddToRecipient(address);
if(email->Send())
{
Debug::Trace("Failed to send email.");
}
}
else
{
Debug::Trace("Failed to create email.");
}