472,101 Members | 1,461 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,101 software developers and data experts.

Sending mail from ASP

Hi all!

I use the following for sending mail from ASP, but there is a problem
- it goes to a intranet thing (eRoom) which does not read it, while
Outlook etc does not have any problems.
eRoom does simply not read anything but the from and subject. The
body
is missing...
Set oMail = Server.CreateObject("ASPXP.Mail")
With oMail
.Host = email_server_address
.Port = email_server_port
.FromName = user_email
.FromAddress = user_email
.Importance = 0
.subject = "Critical design change: " & sChange
.HTMLbody = "<html><head><META http-equiv=Content-
Type
content=""text/html; charset=us-ascii"">" & _
I have tried a number of things:
format as <html><head></head><body>blabla (as outlook)
format as <html><body>blabla
format as <body>blabla
format as blabla
with and without stylesheets
meta tags (<META http-equiv=Content-Type content=""text/html;
charset=us-ascii""" & _ )
etc...
None works i eRoom. Outlook reads them all. Forwarding from Outlook
works well... so there must be some kind of thing, which Outlook
does,
that I do not
Does anyone have the slightest idea of what goes wrong here?
BR
Sonnich

Sep 7 '07 #1
4 2776
"Sonnich Jensen" <so************@jotautomation.comwrote in message
news:11**********************@r29g2000hsg.googlegr oups.com...
Hi all!

I use the following for sending mail from ASP, but there is a problem
- it goes to a intranet thing (eRoom) which does not read it, while
Outlook etc does not have any problems.
eRoom does simply not read anything but the from and subject. The
body
is missing...
Set oMail = Server.CreateObject("ASPXP.Mail")
With oMail
.Host = email_server_address
.Port = email_server_port
.FromName = user_email
.FromAddress = user_email
.Importance = 0
.subject = "Critical design change: " & sChange
.HTMLbody = "<html><head><META http-equiv=Content-
Type
content=""text/html; charset=us-ascii"">" & _
I have tried a number of things:
format as <html><head></head><body>blabla (as outlook)
format as <html><body>blabla
format as <body>blabla
format as blabla
with and without stylesheets
meta tags (<META http-equiv=Content-Type content=""text/html;
charset=us-ascii""" & _ )
etc...
None works i eRoom. Outlook reads them all. Forwarding from Outlook
works well... so there must be some kind of thing, which Outlook
does,
that I do not
Does anyone have the slightest idea of what goes wrong here?

Does eRoom read HTML bodies or only text bodies?
Does ASPXP.Mail create a text body?
Try sending some html with <bor <h1elements to outlook then forward it
to eRoom. Is the bold and heading appearance still intact?

--
Anthony Jones - MVP ASP/ASP.NET
Sep 7 '07 #2
On Sep 7, 2:40 pm, "Anthony Jones" <A...@yadayadayada.comwrote:
"Sonnich Jensen" <sonnich.jen...@jotautomation.comwrote in message

Does eRoom read HTML bodies or only text bodies?
Both. I tested RTF some time ago, though I cannot remember whether
that worked.
Does ASPXP.Mail create a text body?
Tried. See previous answer.
The problem is that we loose formatting, as our part contains some
links.
Try sending some html with <bor <h1elements to outlook then forward it
to eRoom. Is the bold and heading appearance still intact?
Tried, mentioned in previous posting. It works well.
The only thing (and we might live with that) is that tables get lost
(tested from outlook)

Converting it to plain text works too, though it is not nice.

My current message starts with <body<p><b>THIS IS A TEST PLEASE
IGNORE!</b></p>

BR
Sonnich

Sep 7 '07 #3
"Sonnich Jensen" <so************@jotautomation.comwrote in message
news:11*********************@o80g2000hse.googlegro ups.com...
On Sep 7, 2:40 pm, "Anthony Jones" <A...@yadayadayada.comwrote:
"Sonnich Jensen" <sonnich.jen...@jotautomation.comwrote in message

Does eRoom read HTML bodies or only text bodies?

Both. I tested RTF some time ago, though I cannot remember whether
that worked.
Does ASPXP.Mail create a text body?

Tried. See previous answer.
The problem is that we loose formatting, as our part contains some
links.
Try sending some html with <bor <h1elements to outlook then forward
it
to eRoom. Is the bold and heading appearance still intact?

Tried, mentioned in previous posting. It works well.
The only thing (and we might live with that) is that tables get lost
(tested from outlook)

Converting it to plain text works too, though it is not nice.

My current message starts with <body<p><b>THIS IS A TEST PLEASE
IGNORE!</b></p>
I'm not sure what else to suggest since I'm not familiar with ASPXP or
eRoom.

My next step would be to use ASPXP.Mail to email a local SMTP server
(Windows XP Pro machine would do)
and open the resulting .eml file that appears in the drop folder with
notepad. That'll might provide some clues to any irregularities. Try
sending a similar message from outlook and compare the emls.

--
Anthony Jones - MVP ASP/ASP.NET
Sep 7 '07 #4
What is eRoom? Is this a mail reader? Does it accept HTML in the body?

What is ASPXP? Is this something you have installed? Does this product offer
support?

"Sonnich Jensen" wrote:
Hi all!

I use the following for sending mail from ASP, but there is a problem
- it goes to a intranet thing (eRoom) which does not read it, while
Outlook etc does not have any problems.
eRoom does simply not read anything but the from and subject. The
body
is missing...
Set oMail = Server.CreateObject("ASPXP.Mail")
With oMail
.Host = email_server_address
.Port = email_server_port
.FromName = user_email
.FromAddress = user_email
.Importance = 0
.subject = "Critical design change: " & sChange
.HTMLbody = "<html><head><META http-equiv=Content-
Type
content=""text/html; charset=us-ascii"">" & _
I have tried a number of things:
format as <html><head></head><body>blabla (as outlook)
format as <html><body>blabla
format as <body>blabla
format as blabla
with and without stylesheets
meta tags (<META http-equiv=Content-Type content=""text/html;
charset=us-ascii""" & _ )
etc...
None works i eRoom. Outlook reads them all. Forwarding from Outlook
works well... so there must be some kind of thing, which Outlook
does,
that I do not
Does anyone have the slightest idea of what goes wrong here?
BR
Sonnich

Sep 21 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by praba kar | last post: by
10 posts views Thread by Stuart Mueller | last post: by
2 posts views Thread by Mr. x | last post: by
3 posts views Thread by mfleet1973 | last post: by
4 posts views Thread by =?Utf-8?B?R3V5IENvaGVu?= | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.