473,729 Members | 2,177 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Send Mail From Outlook Web Access

I've got RH9 Linux with default PHP.

Is there a way to send email on Linux to an Exchange Server from PHP
and/or other tools when there is *NOT* SMTP access?

Has anyone figured out a way to use PHP to get inside an OWA (Microsoft
Outlook Web Access) website to send email that way?

The reason I ask is because my corporate office is going to do away
with our rogue SMTP server access and force everything through Exchange
Server. This makes it hard for our batch scripts on the Linux server to
relay to internal email accounts that a job has failed or other errors.

Jul 17 '05 #1
11 12085
NC
Google Mike wrote:

Is there a way to send email on Linux to an Exchange Server
from PHP and/or other tools when there is *NOT* SMTP access?
I'm lost... If you don't have SMTP access to an Exchange Server,
is there a guarantee you can have any other kind of access?
Has anyone figured out a way to use PHP to get inside an OWA
(Microsoft Outlook Web Access) website to send email that way?
Not that I heard of, but it should be doable via cURL or
even fsockopen().
The reason I ask is because my corporate office is going
to do away with our rogue SMTP server access and force
everything through Exchange Server.


Again, Exchange Server can (and does) provide SMTP service...
Can you explain the problem in a little more detail? In
particular, are the Exchange Server and your Linux machine
on the same LAN?

Cheers,
NC

Jul 17 '05 #2
just use the address for the Exchange server as the SMTP and everything
should be fine -- I have never had an issue with it myself.

Jul 17 '05 #3

"Google Mike" <go********@hot pop.com> wrote in message
news:11******** **************@ l41g2000cwc.goo glegroups.com.. .
I've got RH9 Linux with default PHP.

Is there a way to send email on Linux to an Exchange Server from PHP
and/or other tools when there is *NOT* SMTP access?

Has anyone figured out a way to use PHP to get inside an OWA (Microsoft
Outlook Web Access) website to send email that way?

The reason I ask is because my corporate office is going to do away
with our rogue SMTP server access and force everything through Exchange
Server. This makes it hard for our batch scripts on the Linux server to
relay to internal email accounts that a job has failed or other errors.


Not something I've tried. According to Microsoft, all Exchange
functionalities are expose through XML and HTTP/DAV. So in theory, you can
send a message without SMTP.

Here's a good introductory article:

http://msdn.microsoft.com/library/de...devwebapps.asp
Jul 17 '05 #4
The answer: it's firewalled away from my access. The only port I can
reach is the Outlook to Exchange Server port and port 80 (OWA).

Jul 17 '05 #5

"Google Mike" <go********@hot pop.com> wrote in message
news:11******** **************@ l41g2000cwc.goo glegroups.com.. .
I've got RH9 Linux with default PHP.

Is there a way to send email on Linux to an Exchange Server from PHP
and/or other tools when there is *NOT* SMTP access?

Has anyone figured out a way to use PHP to get inside an OWA (Microsoft
Outlook Web Access) website to send email that way?

The reason I ask is because my corporate office is going to do away
with our rogue SMTP server access and force everything through Exchange
Server. This makes it hard for our batch scripts on the Linux server to
relay to internal email accounts that a job has failed or other errors.


Actually, it appears that OWA works with non-IE browsers. You should be able
to post a message via a regular HTTP post. My suggestion is to download a
HTTP logging tool from somewhere, and examine the transaction between
Firefox and OWA when a message is sent to see what need to be done.

If you have a relatively recent version of PHP, doing a HTTP post with
authentication info is fairly easy. Just take a look at
http://www.php.net/stream_context_create/
Jul 17 '05 #6
Yeah. I think I'll try that. You reminded me that I don't have to just
do this from Windows which has like zero tools for monitoring HTTP
traffic. I can do it from Mozilla and Linux. Duh. (Pinching myself
because I forgot about that! :) ) So, I just need to see if I can find
an HTTP logging tool for Linux. Got any suggestions?

Oh, and the good news is that my office has this enabled over HTTP, not
HTTPS, so I can actually read the traffic. They enable it over HTTP for
intranet, and HTTPS for when we're outside the office.

Jul 17 '05 #7

"Google Mike" <go********@hot pop.com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. .
Yeah. I think I'll try that. You reminded me that I don't have to just
do this from Windows which has like zero tools for monitoring HTTP
traffic. I can do it from Mozilla and Linux. Duh. (Pinching myself
because I forgot about that! :) ) So, I just need to see if I can find
an HTTP logging tool for Linux. Got any suggestions?

Oh, and the good news is that my office has this enabled over HTTP, not
HTTPS, so I can actually read the traffic. They enable it over HTTP for
intranet, and HTTPS for when we're outside the office.


There's a Mozilla extension called livehttpheaders . I've never used it
myself, but it's probably worth a try. Just Google for it.
Jul 17 '05 #8
Thanks. Your a pal! :)

Jul 17 '05 #9
To get into OWA, I did some tests by using Linux, Mozilla (with proxy
turned on to self), and then fired up the Squid proxy for Linux. I
disabled strip_query_ter ms in squid.conf so that I could see the full
URL. Here's what I found in the /var/log/squid/acccess.log file after
using OWA to send a message. (Also look for my further comments below
this.)

GET http://webmail/
GET http://webmail/exchange/logon.asp
GET
http://webmail/exchange/LogonFrm.asp...Google%2C+Mike
GET
http://webmail/exchange/LogonFrm.asp...Google%2C+Mike
GET http://webmail/exchange/root.asp
GET http://webmail/exchange/Navbar/nbInbox.asp
GET http://webmail/exchange/inbox/main_f...re=0&obj=&acs=
GET
http://webmail/exchange/inbox/title....pidx=0&store=0
GET
http://webmail/exchange/inbox/peerfl...890000&store=0
GET
http://webmail/exchange/inbox/messag...890000&store=0
GET http://webmail/exchange/inbox/comman...othing&store=0
GET http://webmail/exchange/images/envelope.gif
GET
http://webmail/exchange/forms/ipm/no...nd=new&store=0
GET
http://webmail/exchange/forms/ipm/no...=1&att=0&imp=1
GET
http://webmail/exchange/forms/ipm/no...12136&caller=1
GET http://webmail/exchange/forms/ipm/no....asp?obj=12136
POST http://webmail/exchange/forms/ipm/note/commands.asp
# The above POST, if done in GET format, would probably be:
http://webmail/exchange/forms/ipm/no...1&importance=1
GET http://webmail/exchange/logoff.asp

One of the first things that happens is Basic Authentication. (Note
that NTLM Authentication is just Basic Authentication pointed at a
Active Directory or SAM security file.) That means that one has to pass
a Basic Auth header when trying to login on to LogonFrm.asp.

I think some of these URLs I might not even be required to hit in order
to acquire the proper session ID on the server or the proper cookie
information. For instance, I would reason to bet that the long HEX info
?obj= in some of the URLs above is not even a necessary page one needs
to hit in order to send out email. If it is, then perhaps one of the
prior pages passes this information.

I also think all the magic happens in commands.asp in that POST. Since
I know that often times you can replace a POST with a GET to debug
things, I believe the above replacement for the POST just might work.
Otherwise one will have to pass a form to the commands.asp.

The only cookie I received was on the webmail/logon.asp page, and it
was just an ordinary session ID. Perhaps some of the prior pages to
commands.asp updates the server's session cookie with other information
-- I don't know.

Meanwhile, watch out for the objID parameter in the URL -- that's
uniquely identified each time. I believe one of the prior pages
provides that value and this must be reused in order for the email to
go out.

Jul 17 '05 #10

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

Similar topics

0
3704
by: David Burson | last post by:
Hi, I have a VB.NET windows app that needs to automatically send a simple text email when my users run a new version of the app for the first time. I thought this would be simple, but after days of reading posts and testing, I see it is not - unless I'm missing something? I'm not an email guru. All of my users will be running at least Windows 2000, most on XP sp2. Some of my users will have Outlook, many will be using Outlook...
2
9604
by: Ronny Sigo | last post by:
Hello all, I a struggling for a few days now to find a way to send automated mail. I succeeded except that MS Outlook always gives me those 2 stupid warnings that 1) a "program tries to get access to the emailadresses in the contactlist - and wether I want to allow this" and 2) That a program is trying to send emails on my behalf - and wether I want to allow this. ... I have tried to use the redemption package but obviously I do not...
3
3120
by: Carlos Lozano | last post by:
Hi, I know I can create e-mails and send them using System.Web.Mail, but I was wondering how can I do it using the POP3 settings on Office Outlook or Outlook Express. The problem I have is some users are being denied access to relying directly to the smtp server, but they can send using outlook's POP3 settings. Thanks,
0
2530
by: Erwan | last post by:
I have a strange (but very blocking) result when using the smtpmail class from an ASPX page : here is the (very simple !) code... '-------------------------------------------------- mail.To = "el@illico.fr" mail.From = "el@illico.fr" mail.Subject = "test envoi de mail" mail.Body = "test envoi de mail"
10
24392
by: Mike Charney | last post by:
Is there a simple way to send SMTP email from Access VBA? Mike m charney at dunlap hospital dot org
1
5956
by: Mr T | last post by:
I know how to send email from Access and I know how to create a custom form in Outlook. but.... How do I put the email info from Access into the Outlook custom form ??? Dim MyDB As Database Dim MyRS As Recordset Dim objOutlook As Outlook.Application Dim objOutlookMsg As Outlook.MailItem Dim objOutlookRecip As Outlook.Recipient Dim objOutlookAttach As Outlook.Attachment
17
7642
by: rdemyan | last post by:
My app creates a building report. My users have requested that I provide functionality to e-mail these "building reports" to building managers once a month. So assuming that I have the following table that lists a building manager's name, e-mail address and their building, is there a way that I can automate this to send these monthly e-mails from Outlook. Ideally this would be a click one button type of action:
16
6199
by: Kosmos | last post by:
Good afternoon everyone, just wondering if anyone knew if it's possible to send meetings or appointments through email when you run VBA or SQL code in Access 2003? The following is the code I've been using which sends If you want to see the above code in its full context you can see it here: http://www.thescripts.com/forum/thread581521.html Willakawill helped me out a bit with getting access to remember if it had already added the...
5
4098
by: pat | last post by:
Hi, i'am using an ac2K progrom which sends automaticle emails with an attachment. Since last week , a error occurs with number 2293. Our mail program is Outlook 2003. It's probably a matter of safety in outlook, but i didn't saw an answer to prevent this error on theweb. Where can i configure the safetyitem that Outlook sees the mail not langer
0
8913
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
8761
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
9142
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
8144
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...
1
6722
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2162
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.