473,396 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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
2 1278
"Sonnich Jensen" <so************@jotautomation.comwrote in message
news:11**********************@w3g2000hsg.googlegro ups.com...
I use the following for sending mail from ASP
Does anyone have the slightest idea of what goes wrong here?
You're in the wrong newsgroup - this one is for ASP.NET.

For ASP questions, please post to; microsoft.public.inetserver.asp.general
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 7 '07 #2
Something common to ASP and ASPX when trying to send e-mails... normally the
problems is not on the code, is on the server side (you should authenticate,
or your from address must have an specific domain name...), try to send an
e-mail using telnet:

http://msexchangeteam.com/archive/20...14/428324.aspx

More resources about SMTP and ASP .net:

http://www.tipsdotnet.com/ArticleBlo...TP&PageIndex=0

Good luck
Braulio

/// ------------------------------
/// Braulio Diez
///
/// http://www.tipsdotnet.com
/// ------------------------------


"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 7 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
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...
10
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...
2
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 -...
3
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...
3
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...
1
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...
2
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...
3
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
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...
4
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.