Official Murl Engine Forum

Full Version: Sending an email
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.");
}
Did you by any chance mean
    if(!email->Send())
    {
        Debug::Trace("Failed to send email.");
    }

instead of
    if(email->Send())
    {
        Debug::Trace("Failed to send email.");
    }

?

Regards,

dizzy
Yeah, sorry.
Anyway, how can I call this form without knowing the recipient before?