473,598 Members | 3,164 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.CreateOb ject("ASPXP.Mai l")
With oMail
.Host = email_server_ad dress
.Port = email_server_po rt
.FromName = user_email
.FromAddress = user_email
.Importance = 0
.subject = "Critical design change: " & sChange
.HTMLbody = "<html><head><M ETA http-equiv=Content-
Type
content=""text/html; charset=us-ascii"">" & _
I have tried a number of things:
format as <html><head></head><body>blab la (as outlook)
format as <html><body>bla bla
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 2832
"Sonnich Jensen" <so************ @jotautomation. comwrote in message
news:11******** **************@ r29g2000hsg.goo glegroups.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.CreateOb ject("ASPXP.Mai l")
With oMail
.Host = email_server_ad dress
.Port = email_server_po rt
.FromName = user_email
.FromAddress = user_email
.Importance = 0
.subject = "Critical design change: " & sChange
.HTMLbody = "<html><head><M ETA http-equiv=Content-
Type
content=""text/html; charset=us-ascii"">" & _
I have tried a number of things:
format as <html><head></head><body>blab la (as outlook)
format as <html><body>bla bla
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...@yadayaday ada.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>TH IS IS A TEST PLEASE
IGNORE!</b></p>

BR
Sonnich

Sep 7 '07 #3
"Sonnich Jensen" <so************ @jotautomation. comwrote in message
news:11******** *************@o 80g2000hse.goog legroups.com...
On Sep 7, 2:40 pm, "Anthony Jones" <A...@yadayaday ada.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>TH IS 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.CreateOb ject("ASPXP.Mai l")
With oMail
.Host = email_server_ad dress
.Port = email_server_po rt
.FromName = user_email
.FromAddress = user_email
.Importance = 0
.subject = "Critical design change: " & sChange
.HTMLbody = "<html><head><M ETA http-equiv=Content-
Type
content=""text/html; charset=us-ascii"">" & _
I have tried a number of things:
format as <html><head></head><body>blab la (as outlook)
format as <html><body>bla bla
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
522
by: praba kar | last post by:
Dear All, I have doubt regarding mail sending smtplib module. The below code is I used to send a mail. ########################################## import email.Message import email.Utils import mimetypes import os,string
10
4960
by: Stuart Mueller | last post by:
I have an exchange server, that I sometimes use to perform mail shots to clients on our database, these can be upwards of 1000 at a time. As we don't want different clients to see who we are working with we put these mailshots in the bcc field of the mails. This can sometimes cause a problem as we are getting alot of mails bounced back. I would like to write a script to have these emails sent out individually using the to: field of the...
2
9218
by: Mr. x | last post by:
Hello, I am sending emails with Hebrew contents. When receiving emails - I cannot see the Hebrew characters (it is not outlook express configuration, because when receiving emails from friends - I see hebrew, it is just sending by myself using *.aspx scripts). In web.config I have the following : <configuration> <system.web>
3
6817
by: VB Programmer | last post by:
I have an ASPX page where I send out emails through my mail server mail.MyDomain.com. When I send emails to MyName@MyDomain.com it sends PERFECTLY. When I try sending an email to any other address (non-MyDomain.com address) I get the following error: The server rejected one or more recipient addresses. The server response was: 550 You must check your mail from this IP or SMTP Auth before sending to BSmith@Juno.com Here's the FULL...
3
57616
by: HoustonComputerGuy | last post by:
I am working on getting my web applications moved to .Net 2.0 and am having some problems with System.Net.Mail. I get the following error when sending the mail: System.Net.Mail.SmtpException was unhandled by user code Message="Failure sending mail." Source="System" StackTrace: at System.Net.Mail.SmtpClient.Send(MailMessage message) at System.Net.Mail.SmtpClient.Send(String from, String
1
8171
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to the members of my organization. I think my problem is incorrectly setting the settings on my server or an authentication problem. Here is the code I have written to send a test message: -----Code Begins: Sensitive Information Replaced by -----...
2
10132
by: HK | last post by:
In VB.NET, I'm getting the exception "failure sending mail". I'm running VS 2005 on XP Home. This is a new install on a new PC. I've never had email problems with VS 2003, and there I could modify the SMTP settings in IIS. But with this install, there is no IIS (at least I can't find an IIS with MMC browsing the snap-ins). I suspect that is part of the problem but I don't know the solution and I have to be able to test sending email...
3
1971
by: mfleet1973 | last post by:
Hello Again. I have a program that sends e-mails as follows: Try Dim mail As New MailMessage mail.To = "me@comp.com" mail.From = "me@comp.com mail.Subject = "Test" mail.Body = "Testing123"
9
3451
by: JoeP | last post by:
Hi All, How can I find the reason for such an error: Failure sending mail. Some Code... oMailMessage.IsBodyHtml = False oMailMessage.Body = cEmailBody Dim oSMTP As New SmtpClient oSMTP.Send(oMailMessage) (in this line I am getting the above err)
4
2390
by: =?Utf-8?B?R3V5IENvaGVu?= | last post by:
Hi all I use: Dim message As New MailMessage(txtTo.Text, txtFrom.Text, txtSubject.Text, txtBody.Text) Dim emailClient As New SmtpClient(txtSMTPServer.Text) emailClient.Send(message) And its working fine. However I was wondering if there is a way to confirm that the email was sent. The send method does not return anything....
0
7992
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7904
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8398
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8400
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8051
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8267
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6725
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
3940
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1250
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.