Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

Sending mail from ASP

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sonnich Jensen - 07 Sep 2007 11:37 GMT
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
Mark Rae [MVP] - 07 Sep 2007 11:41 GMT
> 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

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

Braulio Diez - 07 Sep 2007 13:14 GMT
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/2006/07/14/428324.aspx

More resources about SMTP and ASP .net:

http://www.tipsdotnet.com/ArticleBlog.aspx?KWID=45&Area=SMTP&PageIndex=0

Good luck
  Braulio

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

> Hi all!
>
[quoted text clipped - 33 lines]
> BR
> Sonnich

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.