Sending an email.... - Windows Mobile Development and Hacking General

Hi,
I went through the SendEmail sample as reference for implementing similar functionality within my app. However, the example creates a new message in each of the messaging accounts setup on the ppc (Outlook Email, Text Messages & any other pop3 accounts you have created). So the result is, i have each of my accounts having a mail created in its outbox.
There is a while loop created, which parses through all the rows in the table -
Code:
// Get the message stores table
hr = pSession->GetMsgStoresTable(MAPI_UNICODE, &pTable);
EXIT_ON_FAILED(hr);
while (SUCCEEDED(pTable->QueryRows(1, 0, &psrs)))
{
.....
.....
.....
}
This is where each of the accounts are being fed with a new message in the outbox. Now coming to the point, i dont find any attribute which contains the ACCOUNT NAME, so, how do i figure out which account i'm sending an email from? Basically, my intention is to parse through all accounts that exist, and give the user an option to select the pop3/outlook email account to send his mail from.
Any help appreciated, as its beginning to really drive me up a wall
Thanks,
San

Related

Sending Email to Distribution Lists

Hello fellow users
Is there something like email to "Distribution List" or "Category" that I've assigned a whole bunch of Contacts to??
I have been using my T-Mobile MDA VARIO for several months now but still can't workout if there is a way to simply email using a POP3 email account to more than one recipient.
:?:Are POP3 Email Distribution Lists possible?
thanks for your wise words,
justin.fletcher said:
Hello fellow users
Is there something like email to "Distribution List" or "Category" that I've assigned a whole bunch of Contacts to??
I have been using my T-Mobile MDA VARIO for several months now but still can't workout if there is a way to simply email using a POP3 email account to more than one recipient.
:?:Are POP3 Email Distribution Lists possible?
thanks for your wise words,
Click to expand...
Click to collapse
Interesting...I didn't realize the feature was missing until you pointed it out.
Here's a temporary workaround (don't have much time to sit and search for a freeware addon):
1. Create a new contact named as the group name you'd like to use (say "Development Team")
2. Enter all the e-mail addresses for your distribution list within the "e-mail" tag of this new contact, placing a semicolon ( ; ) between all addresses.
3. When you go to create a new email, enter the group name you just created and the email field should automatically fill with all the addressees (I tried with two, there may be a limitation)
glhs509,
Thanks for the TIP.
I've found there is a limit at 247 characters which works out at 6 - 7 email address' for me so not much scope for large distributions.
For more than 247 characters I've ...
1) on my PC created a temporary email to the distribution list
2) Expanded the name to show all email address
3) Copied into notes section of a new contact.
4) on my PPC I can sink the new contact and it just takes a copy and paste of the contact notes into a new email 'To' box.
Not great but a lot better than adding one at a time. So thanks
I would really like to sync my contacts with the distributions in outlook on my PC so if anyone knows how to, please fill us in 

Google sync

hi
I have google sync setup via ActiveSync exchange on me HD2 which works great.
only thing I can't get working is sending from another e-mail address that you can setup in your google account. outlook mobile doesn't let you change the from address but I have found it in the registry and changed it to my other e-mail address but when I send a mail it still shows as coming from googlemail address. Is this a exchange sever side setting or is there a way to get it to send from another email address. I would like this as it would save me adding all my accounts to Outlook mobile.
HD2 is so cool I have hardly used the laptop since getting it.
Thanks in advance if you can help.
Cheers
Dean
anybody any ideas on this one if not guess it's the long way round using other account to send smtp.
cheers
Dean
Overview: Known Limitations
Print
Google Sync for Windows Mobile is still in Beta. We're constantly working on improvements, but we've listed below some known limitations.
* Changing Order of Recurring Event May Remove From Device
If an instance of a recurring event is moved to the same day as the previous or the following instance of the same series, or if it is moved to occur before the previous or after the following instance of the series, the entire series will not be displayed on the device Calendar.
* Changes to Meeting Attendees on Device Aren't Synchronized to Server
If the list of invitees to a meeting is changed on the device, these changes will not be reflected on the server after synchronizing.
* Imported Recurring Events May Not Sync
If you've imported calendar entries from another calendar system into Google Calendar, you may find that only the first occurrence of the event is synchronized, or - in some cases - the event may not be synchronized at all. Recurring events created within Google Calendar will sync correctly.
*Calendar Invites via Gmail Forwarding or replying to Calendar invites in your Gmail inbox is not yet supported when using Google Sync for Mail.
* Apps Administrators: Learn how to enable Sync for your domain.
* Attachments Not Syncing: Google Sync is occasionally failing to properly process attachments. We are working on a fix that we hope to push soon.
* Custom From: Address: At this time Google Sync does not support custom "From:" addresses.
Click to expand...
Click to collapse
So no custom From: addresses...
Best Regards,
Lukas
Cheers Lukas all the stuff I search didn't spot that thanks.
Dean
DT39 said:
...guess it's the long way round using other account to send smtp.
Click to expand...
Click to collapse
Hi,
same problem, but how would you do that manipulating-senderfield-thing with the other smtp-server? modify the smtp-server to replace [email protected] with [email protected]??
I've manage to come to a satisfactory solution staying with gmail...
I have set my other email addresses to forward all mail to gmail, so that I receive them through push. When I answer, as mentioned the e-mail originates from the gmail address. It doesn't bother me so much so far, I've set the From name to My Name (mobile), so people know why it might show up differently.
The real problem was when they answer, obviously only gmail will receive the answer, while I'd like to have it in my normal inbox as well for archival. So I've set filters on gmail so that all mail sent to "my gmail address" and containing "my normal address" (should be the case as they initially wrote the mail to it, which shows up in the included original message when replying, except for those few senders who don't include original message in replies) gets forwarded to my normal address.
If you only have one "normal" address you could just do an unconditional forward, but I preferred having gmail sort my 3 addresses correctly.
Yes this theoretically leads to an infinite loop (when gmail forwards to my normal server, the latter will forward again to gmail as it does this with every message it receives, etc), but gmail servers are clever and ignore it.
kilrah said:
...So I've set filters on gmail so that all mail sent to "my gmail address" and containing "my normal address" (should be the case as they initially wrote the mail to it, which shows up in the included original message when replying, except for those few senders who don't include original message in replies) gets forwarded to my normal address.
....
Click to expand...
Click to collapse
Could you eleborate on how you set those filters, I was looking for the same solution.
See below. Sorry for French gmail, but you should be able to find your way
the .ch address is one of my normal addresses, the gmail one is... well, the gmail one. I have one such rule for each of my normal addresses.

Strange Window Live Push Mail / Hotmail Problem -- HTML removes line breaks??

So I've configured a mail account on my WM6.5 Touch Pro 2 using Windows Live Mobile (and it shows up as a Hotmail account).
If I *create* a new e-mail from the device using the Hotmail account, the recipient will receive a plain text e-mail. The same is saved in Sent Items. That's fine.
Now, if I'm *replying* to or *forwarding* an e-mail -- regardless of if the thread is HTML or plain text -- the recipient will receive an HTML e-mail with my text in Times New Roman, and all line breaks in my response removed! The same is saved in Sent Items.
This is extremely annoying as:
"Thanks for your help.
See you later,
--J."
Turns into:
"Thanks for your help. See you later, --J."
I can't find a way to get line breaks into my e-mails when I'm replying or forwarding!
Is this normal behaviour for Windows Live Mobile push mail? I'm not having this issue with my POP or IMAP accounts on the phone, just the Hotmail account.
If it matters, I'm on MightyROM 2-10-10 and the Windows Live version is 10.7.0061.0500.2000.
And here's one more twist:
If I reply to / forward an e-mail, but before sending do a Save To Draft (and reopen from the Draft folder), and then send, the whole thread gets converted to plain text, and then my line feeds are retained.
So I suppose that's one workaround, but it's pretty annoying to have to convert a whole thread to plain text just so that I can have line breaks in my e-mail response!
Any ideas? Am I alone on this??

Gmail emails not deleting?

Hi everyone,
I have searched the forum for similar problems but can't find anything. I have my email set to check email every 15 minutes. Even after I delete the emails from my phone, when gmail is checked 15 minutes later, the emails return once again as "new". On the computer version of gmail, the emails are still unread in the inbox.
How can I set the "delete" on the email tab to actually get rid of the email? (preferable send the email to the archive function of gmail)
Thanks in advance.
anyone?????
I have the save problem
Use activesync (with push) instead of POP/imap, works perfectly.
Mine did the same thing until I changed my mail settings to say "delete from server" and also "immediately" if you don't change your delete settings to immediate then it wont actually erase the mail until the next time it connects and downloads it all over again.
GMAIL not deleting - Windows Mobile 6.5
I'm running WinMo 6.5 Cell ROM on a Touch Pro 2 from HTC.
I have exactly the same problem. I delete GMAIL messages from the Inbox on my handset. Next time the phone does a Send/Receive it brings down all the new mail again from the GMAIL server. Basically the handset is not marking mail as being deleted, nor is it marking the mail as read on the server.
I'm using GMAIL in MAPI/SMTP mode on the handset as this is what is accepted by default when setting up the GMAIL account on the device.
I've no experience of using ActiveSync/PUSH for mail. How do you set it up?
GNMurray said:
I've no experience of using ActiveSync/PUSH for mail. How do you set it up?
Click to expand...
Click to collapse
I use activesync to download all my messages from google, It also pulled my calendar and contacts to the handset too, I found the instructions by going to: wwwDOTgoogleDOTcom/support/mobile/bin/answer.py?answer=138636&topic=14299 (wont let me post outside links, so Dot = .) Also on section 11 before syncing everything, I synced each item individually first then switched them all on as I was getting errors.
ActiveSync and PUSH MAIL for Google Mail is the best alternative for being able to hardly experience inbox and retrieval errors.
to delete emails go into your inbox and when you delete, use the left softkey (the bin icon) to delete and not the sense menu.
Gmail not syncing
I had the exact same issue. I searched forever until I found what worked for me. It appears to be an issue is you restore using nandroid. Here is the link on how to do it.
www(.)google(.)com/support/mobile/bin/answer.py?answer=113869
remove the () () of course.

[Q] Where do I find the email address history in Windows Mobile 6.5?

My email retains the email addresses of ALL of the emails that I've sent or received. This includes those not in my contact list. When I start a new email they appear whenever I type the first letter in the "To" or "cc" fields. How can I delete these? Does anyone know the name of the file where they are stored? Thanks.
Fixed it.
I still haven't found where it's pulling the email address history from, but it can be turned of with the following registry edit.
[HKEY_LOCAL_MACHINE\SYSTEM\Inbox\RecipientAutocomplete]
"MaxSuggestions"=dword:0
Mine was set to 4. After changing it to 0, presto-chango! No more email address autocomplete frustration.

Categories

Resources