Sending an email
#1
Apost 
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.

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.");
}
Reply


Messages In This Thread
Sending an email - by Stefan - 21 Jun 2013, 11:05
RE: Sending an email - by dizzy - 21 Jun 2013, 11:11
RE: Sending an email - by Stefan - 21 Jun 2013, 11:37

Forum Jump:


Copyright © 2011-2018 Spraylight GmbH.