![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
I have been able to send HTML email programmatically thru Outlook from within
my app. The message is received by the recipient, and the email is recorded as sent in the Outllook sent box. But the message in the sent box is empty. I basically read the html email message from a .htm file, assign the message to a variable, and then assign the value of this variable to the HTMLbody property. I then .send() the email thru Outlook, and the message is received fine. The email is registered in the Outlook sent box as being sent, but the message there is completely blank. Can anyone give me some ideas on what I may be missing? Many thanks, Mark |
#2
|
|||
|
|||
![]()
Does it help if you Save the item before calling Send on it?
-- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Markus" wrote in message ... I have been able to send HTML email programmatically thru Outlook from within my app. The message is received by the recipient, and the email is recorded as sent in the Outllook sent box. But the message in the sent box is empty. I basically read the html email message from a .htm file, assign the message to a variable, and then assign the value of this variable to the HTMLbody property. I then .send() the email thru Outlook, and the message is received fine. The email is registered in the Outlook sent box as being sent, but the message there is completely blank. Can anyone give me some ideas on what I may be missing? Many thanks, Mark |
#3
|
|||
|
|||
![]()
Ken,
Got excited cause that sounded like a good idea, but no luck. Still get the email recorded into sent box but with a blank messge even tho the email arrives to recipient fine with the full message. Also tried save(), send(), save() but still get a blank message in the sent box. Any and all ideas on this one very much appreciated, Mark "Ken Slovak - [MVP - Outlook]" wrote: Does it help if you Save the item before calling Send on it? -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Markus" wrote in message ... I have been able to send HTML email programmatically thru Outlook from within my app. The message is received by the recipient, and the email is recorded as sent in the Outllook sent box. But the message in the sent box is empty. I basically read the html email message from a .htm file, assign the message to a variable, and then assign the value of this variable to the HTMLbody property. I then .send() the email thru Outlook, and the message is received fine. The email is registered in the Outlook sent box as being sent, but the message there is completely blank. Can anyone give me some ideas on what I may be missing? Many thanks, Mark |
#4
|
|||
|
|||
![]()
I can't really think of anything, in fact the Save hasn't been necessary in
any of the code I've worked on that puts formatted text into HTMLBody. All I usually do is set .HTMLBody, .Subject, .BodyFormat (to olFormatHTML) and then I add one or more Recipient object, resolve the recipients and call ..Send. That's it, nothing else, and the sent emails look fine in Sent Items. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Markus" wrote in message ... Ken, Got excited cause that sounded like a good idea, but no luck. Still get the email recorded into sent box but with a blank messge even tho the email arrives to recipient fine with the full message. Also tried save(), send(), save() but still get a blank message in the sent box. Any and all ideas on this one very much appreciated, Mark |
#5
|
|||
|
|||
![]()
Ken,
Thanks. I thought this is the way to do it, but cannot get it to work for me for some reason. I do all the same. I wonder if there is some setting in OL that is preventing the save of the message body? But when I send from inside OL, there is no problem and the full message is saved in the Sent folder, so do not think it can be an OL setting. Not sure what you meant by "resolve the recipients". Don't think this is my problem, but could you explain? Thanks again, Mark "Ken Slovak - [MVP - Outlook]" wrote: I can't really think of anything, in fact the Save hasn't been necessary in any of the code I've worked on that puts formatted text into HTMLBody. All I usually do is set .HTMLBody, .Subject, .BodyFormat (to olFormatHTML) and then I add one or more Recipient object, resolve the recipients and call ..Send. That's it, nothing else, and the sent emails look fine in Sent Items. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Markus" wrote in message ... Ken, Got excited cause that sounded like a good idea, but no luck. Still get the email recorded into sent box but with a blank messge even tho the email arrives to recipient fine with the full message. Also tried save(), send(), save() but still get a blank message in the sent box. Any and all ideas on this one very much appreciated, Mark |
#6
|
|||
|
|||
![]()
Set oRecip = colRecips.Add(whatever)
oRecip.Resolve If oRecip.Resolved Then item.Send ' etc. That would just affect sending however, it wouldn't affect the visibility of the HTMLBody. Just asking, but after you exit and restart Outlook are the bodies still invisible? -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Markus" wrote in message ... Ken, Thanks. I thought this is the way to do it, but cannot get it to work for me for some reason. I do all the same. I wonder if there is some setting in OL that is preventing the save of the message body? But when I send from inside OL, there is no problem and the full message is saved in the Sent folder, so do not think it can be an OL setting. Not sure what you meant by "resolve the recipients". Don't think this is my problem, but could you explain? Thanks again, Mark |
#7
|
|||
|
|||
![]()
Ken,
Resolve...of course I realize what that is. I rarely use it because my emails are programmatically sent using an outside email list, not the address book. Sorry, that was a bonehead question. Please ignore. But sure wish I could figure out why I cannot get the message to show up in the sent email item even tho it shows up in the recipient inbox no probem. Thanks, Mark "Ken Slovak - [MVP - Outlook]" wrote: I can't really think of anything, in fact the Save hasn't been necessary in any of the code I've worked on that puts formatted text into HTMLBody. All I usually do is set .HTMLBody, .Subject, .BodyFormat (to olFormatHTML) and then I add one or more Recipient object, resolve the recipients and call ..Send. That's it, nothing else, and the sent emails look fine in Sent Items. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Markus" wrote in message ... Ken, Got excited cause that sounded like a good idea, but no luck. Still get the email recorded into sent box but with a blank messge even tho the email arrives to recipient fine with the full message. Also tried save(), send(), save() but still get a blank message in the sent box. Any and all ideas on this one very much appreciated, Mark |
#8
|
|||
|
|||
![]()
No idea at this point. I'd suggest backing up and playing with one of the
samples at www.outlookcode.com that sends out HTML messages or formats an HTMLBody. See if those samples work to eliminate anything local to your computer setup. If those work then analyze where your code differs to maybe get some clues as to what's happening. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Markus" wrote in message ... Ken, Resolve...of course I realize what that is. I rarely use it because my emails are programmatically sent using an outside email list, not the address book. Sorry, that was a bonehead question. Please ignore. But sure wish I could figure out why I cannot get the message to show up in the sent email item even tho it shows up in the recipient inbox no probem. Thanks, Mark |
#9
|
|||
|
|||
![]()
Wild thoughts: Debug.Print the body before and after the send.
Try Chr() on the first character. Is the text missing just from the OL interface, or have you tried looking at .Body (in the sent folder) programmatically? On Wed, 1 Aug 2007 11:22:00 -0700, Markus wrote: "Markus" wrote in message ... I have been able to send HTML email programmatically thru Outlook from within my app. The message is received by the recipient, and the email is recorded as sent in the Outllook sent box. But the message in the sent box is empty. I basically read the html email message from a .htm file, assign the message to a variable, and then assign the value of this variable to the HTMLbody property. I then .send() the email thru Outlook, and the message is received fine. The email is registered in the Outlook sent box as being sent, but the message there is completely blank. Can anyone give me some ideas on what I may be missing? Many thanks, Mark |
#10
|
|||
|
|||
![]()
Wild Bill'
Good ideas. I tried adding string to top of the html message and still no message in the sent folder. I tried sending plain text (.body instead of .htmlbody), and again the message arrives fine, but the sent folder has a blank message. Not sure how to check the .body in the sent folder programmatically. Any chance you can give me an example of how to? I know this should not be hard to do, but I'm still a novice at some of this. Thanks again, Mark "Wild Bill" wrote: Wild thoughts: Debug.Print the body before and after the send. Try Chr() on the first character. Is the text missing just from the OL interface, or have you tried looking at .Body (in the sent folder) programmatically? On Wed, 1 Aug 2007 11:22:00 -0700, Markus wrote: "Markus" wrote in message ... I have been able to send HTML email programmatically thru Outlook from within my app. The message is received by the recipient, and the email is recorded as sent in the Outllook sent box. But the message in the sent box is empty. I basically read the html email message from a .htm file, assign the message to a variable, and then assign the value of this variable to the HTMLbody property. I then .send() the email thru Outlook, and the message is received fine. The email is registered in the Outlook sent box as being sent, but the message there is completely blank. Can anyone give me some ideas on what I may be missing? Many thanks, Mark |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Forwarded part of message missing | Artie | Outlook Express | 6 | June 2nd 07 06:54 PM |
missing MAPI32.dll file message | Criss | Outlook - Installation | 3 | August 31st 06 02:18 PM |
how to recover email if missing message when using rule to move from exchange server to 2003 pst | Patrick | Outlook - General Queries | 1 | August 31st 06 05:07 AM |
mail message form missing | dfrahlic | Outlook - Using Forms | 3 | May 4th 06 05:58 PM |
missing message folders | sjcon | Outlook Express | 4 | March 21st 06 08:16 PM |