Sending mail from ASP
am 07.09.2007 13:06:38 von Sonnich Jensen
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 = "
Type
content=""text/html; charset=us-ascii"">" & _
I have tried a number of things:
format as blabla (as outlook)
format as blabla
format as blabla
format as blabla
with and without stylesheets
meta tags (
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
Re: Sending mail from ASP
am 07.09.2007 13:40:25 von Anthony Jones
"Sonnich Jensen" wrote in message
news:1189163198.827192.293320@r29g2000hsg.googlegroups.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 = "
> Type
> content=""text/html; charset=us-ascii"">" & _
>
>
> I have tried a number of things:
> format as blabla (as outlook)
> format as blabla
> format as blabla
> format as blabla
> with and without stylesheets
> meta tags (
> 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 or elements to outlook then forward it
to eRoom. Is the bold and heading appearance still intact?
--
Anthony Jones - MVP ASP/ASP.NET
Re: Sending mail from ASP
am 07.09.2007 13:55:05 von Sonnich Jensen
On Sep 7, 2:40 pm, "Anthony Jones" wrote:
> "Sonnich Jensen" wrote 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 or elements 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
THIS IS A TEST PLEASE
IGNORE!
BR
Sonnich
Re: Sending mail from ASP
am 07.09.2007 15:22:39 von Anthony Jones
"Sonnich Jensen" wrote in message
news:1189166105.702641.96160@o80g2000hse.googlegroups.com...
> On Sep 7, 2:40 pm, "Anthony Jones" wrote:
> > "Sonnich Jensen" wrote 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 or elements 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
THIS IS A TEST PLEASE
> IGNORE!
>
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
Re: Sending mail from ASP
am 21.09.2007 17:34:04 von jp2code
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 = "
> Type
> content=""text/html; charset=us-ascii"">" & _
>
>
> I have tried a number of things:
> format as blabla (as outlook)
> format as blabla
> format as blabla
> format as blabla
> with and without stylesheets
> meta tags (
> 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
>