<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - Add SMS to Inbox - Comments</title>
 <link>http://www.newlc.com/en/topic-2428</link>
 <description>Comments for &quot;Add SMS to Inbox&quot;</description>
 <language>en</language>
<item>
 <title>Re: Add SMS to Inbox</title>
 <link>http://www.newlc.com/en/topic-2428#comment-8546</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;div class=&quot;quoteheader&quot;&gt;Quote from: George Tohn&lt;/div&gt;&lt;div class=&quot;quote&quot;&gt;Indeed, calling SetFromAddressL() won&amp;#039;t cause any problem. But it won&amp;#039;t show in message details as well &lt;img src=&quot;/fr/sites/all/modules/smf_filter/smf_smileys/sad.gif&quot; alt=&quot;Sad&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Yes you are right it won&amp;#039;t show in the details and that&amp;#039;s too bad. But in testing this works cause you can get from address when reading this message as well:&lt;br /&gt;&lt;br /&gt;CSmsClientMtm* tempSmsMtm = STATIC_CAST(CSmsClientMtm*, clientMtm);&lt;br /&gt;CSmsHeader&amp;amp; header = tempSmsMtm-&amp;gt;SmsHeader();&lt;br /&gt;iSender.Copy(header.FromAddress());&lt;br /&gt;&lt;br /&gt;Maybe CSendAs will do that kind of message where you can see from number in the details. I don&amp;#039;t know I haven&amp;#039;t try.&lt;br /&gt;&lt;br /&gt;Regards &lt;br /&gt;Ari&lt;/div&gt;</description>
 <pubDate>Wed, 29 Jun 2005 13:31:51 +0200</pubDate>
 <dc:creator>arik</dc:creator>
 <guid isPermaLink="false">comment 8546 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Add SMS to Inbox</title>
 <link>http://www.newlc.com/en/topic-2428#comment-8545</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Indeed, calling SetFromAddressL() won&amp;#039;t cause any problem. But it won&amp;#039;t show in message details as well &lt;img src=&quot;/fr/sites/all/modules/smf_filter/smf_smileys/sad.gif&quot; alt=&quot;Sad&quot; border=&quot;0&quot; /&gt;&lt;/div&gt;</description>
 <pubDate>Wed, 29 Jun 2005 13:06:51 +0200</pubDate>
 <dc:creator>George Tohn</dc:creator>
 <guid isPermaLink="false">comment 8545 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Add SMS to Inbox</title>
 <link>http://www.newlc.com/en/topic-2428#comment-8544</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;div class=&quot;quoteheader&quot;&gt;Quote from: George Tohn&lt;/div&gt;&lt;div class=&quot;quote&quot;&gt;arik, did you try to do that by yourself? Though the message is really created in Inbox it seems to be an outgoing one. &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Yes I have tried it myself. I have used this only in testing, so only thing I want is that message born in inbox. You could be right, but you can put still from number.&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;Ari&lt;/div&gt;</description>
 <pubDate>Wed, 29 Jun 2005 12:58:53 +0200</pubDate>
 <dc:creator>arik</dc:creator>
 <guid isPermaLink="false">comment 8544 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Add SMS to Inbox</title>
 <link>http://www.newlc.com/en/topic-2428#comment-8543</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;arik, did you try to do that by yourself? Though the message is really created in Inbox it seems to be an outgoing one. &lt;/div&gt;</description>
 <pubDate>Wed, 29 Jun 2005 12:39:08 +0200</pubDate>
 <dc:creator>George Tohn</dc:creator>
 <guid isPermaLink="false">comment 8543 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Add SMS to Inbox</title>
 <link>http://www.newlc.com/en/topic-2428#comment-8542</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Perhaps you have resolved the problem. You can add message to the inbox like following:&lt;br /&gt;&lt;br /&gt;void CpssSMSEngine::ConstructL()Â  {&lt;br /&gt;Â  Â  iSession = CMsvSession::OpenAsyncL(*this);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void CpssSMSEngine::CreateSMSMessageL(const TDesC&amp;amp; aAddress, const TDesC&amp;amp; aDescription, const TDesC&amp;amp; aMessage) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;Â  iMtmRegistry = CClientMtmRegistry::NewL(*iSession);&lt;br /&gt;Â  iSmsMtm = STATIC_CAST( CSmsClientMtm*, iMtmRegistry-&amp;gt;NewMtmL(KUidMsgTypeSMS));&lt;br /&gt;&lt;br /&gt;Â  iSmsMtm-&amp;gt;SwitchCurrentEntryL(KMsvGlobalInBoxIndexEntryId); //inbox&lt;br /&gt;Â  //iSmsMtm-&amp;gt;SwitchCurrentEntryL(KMsvDraftEntryId);Â  //draft&lt;br /&gt;&lt;br /&gt;Â  iSmsMtm-&amp;gt;CreateMessageL(KUidMsgTypeSMS.iUid);&lt;br /&gt;Â  //iSmsMtm-&amp;gt;AddAddresseeL(aAddress); //to address if need&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;Â  CSmsHeader&amp;amp; iHeader = iSmsMtm-&amp;gt;SmsHeader();&lt;br /&gt;Â  iHeader.SetFromAddressL(aAddress);&lt;br /&gt;&lt;br /&gt;Â  CRichText&amp;amp; body = iSmsMtm-&amp;gt;Body();&lt;br /&gt;Â  body.Reset();&lt;br /&gt;Â  body.InsertL(0, aMessage);&lt;br /&gt;Â  &lt;br /&gt;Â  TMsvEntry entry = iSmsMtm-&amp;gt;Entry().Entry(); &lt;br /&gt;Â  entry.SetInPreparation(EFalse); &lt;br /&gt;Â  entry.SetVisible(ETrue);&lt;br /&gt;Â  entry.iDate.HomeTime();&lt;br /&gt;Â  entry.iDescription.Set(aDescription);&lt;br /&gt;Â  entry.iDetails.Set(aAddress);&lt;br /&gt;Â  entry.SetUnread(ETrue);&lt;br /&gt;&lt;br /&gt;Â  iSmsMtm-&amp;gt;Entry().ChangeL(entry); &lt;br /&gt;Â  iSmsMtm-&amp;gt;SaveMessageL();Â  Â &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;Ari&lt;/div&gt;</description>
 <pubDate>Thu, 23 Jun 2005 07:47:56 +0200</pubDate>
 <dc:creator>arik</dc:creator>
 <guid isPermaLink="false">comment 8542 at http://www.newlc.com</guid>
</item>
<item>
 <title>Add SMS to Inbox</title>
 <link>http://www.newlc.com/en/topic-2428</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/topic-2428&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/topic-2428#comments</comments>
 <category domain="http://www.newlc.com/en/forums/messaging">Messaging</category>
 <pubDate>Wed, 11 Aug 2004 16:27:04 +0200</pubDate>
 <dc:creator>sms</dc:creator>
 <guid isPermaLink="false">3431 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
