HTML portion stripped from Email?

V

vincent.y.chan

Hi,

I must be the only one experiencing these weird add in problems :) I
have a problem now where I have some content in the email body that
only consists of text and hyperlinks (using Outlook 2007). When I try
to send out the mailItem, any external account that receives the email
will strip out the html portion of the email. Therefore my hyperlinks
look like this "test
<http://www.cnn.com/?
elq=5C509E8F8A914282AEBC70DB1910456B&elqa=1CC82845C
18C9D93032A64D157536E2D4AFFB927FFD02472C7E20E18FA408888>" instead of
having a html hyperlink with test as the text.

Here is how I send out the email.

safeMailItem =
DirectCast(CreateObject("ElqRd3.ElqSafeMailItem"),
Redemption.SafeMailItem)
Perform_some_Operation (MailItem.HTMLBody)
safeMailItem.Item = MailItem
safeMailItem.Item.DeleteAfterSubmit = True
safeMailItem.Send()

I was wondering if anyone can help me out? And the funny thing is, if
I send it internally to myself, everything looks fine. It's only when
I'm trying to send out the email to an external account does this
weird behaviour happen. Also if I add an image to the email body,
then everything shows up fine. The only time where the body of the
email seems to be in a weird format is when the body only consists of
text and hyperlinks.

Any help would be greatly appreciated.

thanks,

Vincent
 
K

Ken Slovak - [MVP - Outlook]

Have you checked the actual Outlook settings for how email sent over the
Internet is formatted? Have you checked any Exchange server settings for the
same, which can override any local Outlook settings?

If those settings are set wrong what you describe can happen.
 
V

vincent.y.chan

Have you checked the actual Outlook settings for how email sent over the
Internet is formatted? Have you checked any Exchange server settings for the
same, which can override any local Outlook settings?

If those settings are set wrong what you describe can happen.

--
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


I must be the only one experiencing these weird add in problems :) I
have a problem now where I have some content in the email body that
only consists of text and hyperlinks (using Outlook 2007).  When I try
to send out the mailItem, any external account that receives the email
will strip out the html portion of the email.  Therefore my hyperlinks
look like this "test
<http://www.cnn.com/?
elq=5C509E8F8A914282AEBC70DB1910456B&elqa=1CC82845C
18C9D93032A64D157536E2D4AFFB927FFD02472C7E20E18FA408888>" instead of
having a html hyperlink with test as the text.
Here is how I send out the email.
               safeMailItem =
DirectCast(CreateObject("ElqRd3.ElqSafeMailItem"),
Redemption.SafeMailItem)
               Perform_some_Operation (MailItem.HTMLBody)
               safeMailItem.Item = MailItem
               safeMailItem.Item.DeleteAfterSubmit = True
               safeMailItem.Send()
I was wondering if anyone can help me out?  And the funny thing is, if
I send it internally to myself, everything looks fine.  It's only when
I'm trying to send out the email to an external account does this
weird behaviour happen.  Also if I add an image to the email body,
then everything shows up fine.  The only time where the body of the
email seems to be in a weird format is when the body only consists of
text and hyperlinks.
Any help would be greatly appreciated.

Vincent

Hi Ken,

Thanks for the quick response... is there a way I can set this using
code? I checked my outlook settings and the format that I have set it
to is set to HTML.

thanks again,

Vincent
 
V

vincent.y.chan

Have you checked the actual Outlook settings for how email sent over the
Internet is formatted? Have you checked any Exchange server settings for the
same, which can override any local Outlook settings?
If those settings are set wrong what you describe can happen.
--
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

Hi Ken,

Thanks for the quick response... is there a way I can set this using
code?  I checked my outlook settings and the format that I have set it
to is set to HTML.

thanks again,

Vincent

Hi Ken,

I just did a regular send with the same settings to my external email
address and it works. Is there some kind of setting that outlook is
looking at? I don't understand how they can differentiate between the
regular send and and the mailitem.send() that I'm using? Both bodies
seem the same to me yet when the outcome is different.

thanks,
Vincent
 
K

Ken Slovak - [MVP - Outlook]

Then it sounds like whatever you're doing in your Perform_some_Operation
(MailItem.HTMLBody)
isn't setting correct HTML. I'd check the HTML you are actually producing.

If you can send through the UI and it works then it's not your Outlook or
Exchange server settings, a Send() call should do the same thing.




On Sep 25, 4:26 pm, (e-mail address removed) wrote:
<snip>

Hi Ken,

I just did a regular send with the same settings to my external email
address and it works. Is there some kind of setting that outlook is
looking at? I don't understand how they can differentiate between the
regular send and and the mailitem.send() that I'm using? Both bodies
seem the same to me yet when the outcome is different.

thanks,
Vincent
 
V

vincent.y.chan

Have you checked the actual Outlook settings for how email sent over the
Internet is formatted? Have you checked any Exchange server settings for the
same, which can override any local Outlook settings?
If those settings are set wrong what you describe can happen.
--
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

Hi,
I must be the only one experiencing these weird add in problems :) I
have a problem now where I have some content in the email body that
only consists of text and hyperlinks (using Outlook 2007).  When I try
to send out the mailItem, any external account that receives the email
will strip out the html portion of the email.  Therefore my hyperlinks
look like this "test
<http://www.cnn.com/?
elq=5C509E8F8A914282AEBC70DB1910456B&elqa=1CC82845C
18C9D93032A64D157536E2D4AFFB927FFD02472C7E20E18FA408888>" instead of
having a html hyperlink with test as the text.
Here is how I send out the email.
               safeMailItem =
DirectCast(CreateObject("ElqRd3.ElqSafeMailItem"),
Redemption.SafeMailItem)
               Perform_some_Operation (MailItem.HTMLBody)
               safeMailItem.Item = MailItem
               safeMailItem.Item.DeleteAfterSubmit = True
               safeMailItem.Send()
I was wondering if anyone can help me out?  And the funny thing is, if
I send it internally to myself, everything looks fine.  It's onlywhen
I'm trying to send out the email to an external account does this
weird behaviour happen.  Also if I add an image to the email body,
then everything shows up fine.  The only time where the body of the
email seems to be in a weird format is when the body only consists of
text and hyperlinks.
Any help would be greatly appreciated.
thanks,
Vincent
Thanks for the quick response... is there a way I can set this using
code?  I checked my outlook settings and the format that I have set it
to is set to HTML.
thanks again,

Hi Ken,

I just did a regular send with the same settings to my external email
address and it works.  Is there some kind of setting that outlook is
looking at?  I don't understand how they can differentiate between the
regular send and and the mailitem.send() that I'm using?  Both bodies
seem the same to me yet when the outcome is different.

thanks,
Vincent

Hi Ken,

I was finally able to resolve the problem by using one of the methods
listed here (under the faq section) http://www.dimastr.com/redemption/
I had to programatically set the encoding to HTML.

thanks again for you advice.

Vince
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top