AX 2012 – Data Migration Framework: Step-by-step setup
follow this link
Its really help full for the step by step process of Data migration in AX 2009 to Ax 2012.
- Hary
void SendMail() { SysMailer mail; SysOutgoingEmailTable outgoingEmailTable; SysEmailItemId nextEmailItemId; Map map; str SenderName, SenderEmail, To, Subject, Body; ; SenderName = "X++.info"; SenderEmail = "Sender@xplusplus.info"; To = "recipient@xplusplus.info"; Subject = "Subject line for the email"; Body = "<B>Body of the email</B>"; nextEmailItemId = EventInbox::nextEventId(); outgoingEmailTable.EmailItemId = nextEmailItemId; outgoingEmailTable.IsSystemEmail = NoYes::No; outgoingEmailTable.Sender = SenderEmail; outgoingEmailTable.SenderName = SenderName; outgoingEmailTable.Recipient = To; outgoingEmailTable.Subject = SysEmailMessage::stringExpand(Subject, map); outgoingEmailTable.Priority = eMailPriority::Normal ; outgoingEmailTable.WithRetries = false; outgoingEmailTable.RetryNum = 0; outgoingEmailTable.UserId = curUserId(); outgoingEmailTable.Status = SysEmailStatus::Unsent; outgoingEmailTable.Message = Body; outgoingEmailTable.LatestStatusChangeDateTime = DateTimeUtil::getSystemDateTime(); outgoingEmailTable.insert(); }