Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





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.




View Complete Forum Thread with Replies

Related Forum Messages:
Send Mail By Connect PHP To Ms Outlook?
how can we send mail by connect PHP to ms outlook?

View Replies !
Send Mail To Outlook From Http://localhost
Does anyone know how to set up a script to send mails from http://localhost to your local mail client (Outlook, to be exact).

View Replies !
Send Mail From Windows Without Access To Php.ini?
I've found example on how to send email using PHP on Windows 2000. However they
all say to set the outgoing SMTP server address in the php.ini file in the
Windows system directory.

That's a problem for me because I intend to upload this to my hosting company's
server, where I do not have access to the system directory. Each user on this
system has their own virtual mail server.

Is there a way to specify the mail server in the script itself?

View Replies !
Outlook Send Meeting
I hope somone can help im trying to create a file in any laguage (asp, php...) that will allow me to send a meeting request to users on outlook and entourage from my company intranet. The idea is that people can insert information and someone else will select who is taking part then the meeting request will be sent to the persons email inbox so they can accpet the meeting.

View Replies !
Sending HTML Mail To Outlook Express With Mail()
I'm sending out an HTML mailer using the mail() function in PHP. I'm appending all of the headers to the message. This message displays correctly in Hotmail, Outlook 2000, and even Mac's OSX mail client. But, for some reason, Outlook Expess (on Win XP & OSX) displays the HTML code and doesn't render it.

If, however, the recipient copies the HTML code and composes a new HTML message in Outlook Express, it gets sent correctly.

This particular user is also getting other HTML mailers that display correctly, so I know that the client is capable of accepting HTML mail.

I'm led to believe that PHP's mail() headers are not being interpreted correctly. In fact, they appear as the first 3 lines in the body of the message when viewed in Outlook Express. OK, here are some samples to tie this all together: First, the mail() code I'm using: PHP Code:

View Replies !
Mail(), Html & Outlook
I see that a while ago people had the same problems as me (http://www.phpbuilder.com/board/show...eadid=10240258), but I see no answers anywhere, so here goes:

I am sending E-Mail from a form on my website using the php mail(). The problem is that when I send it as html, outlook has problems. Here are the headers I'm using:


$headers  = "From: $name <$email>";
$headers .= "Reply-To: $email ";
$headers .= "MIME-Version: 1.0";
$headers .= "Content-type: text/html;";

When I do this, the E-Mail looks fine in squirrelmail (a webmail program www.squirrelmail.org), but in outlook...instead of getting a nicely formatted html message, I get a message that starts with "Content-type: text/html;" then continues on in plaintext, showing me all the html tags, etc. I tried switching some of the headers around, and if I switch the mime & content-type headers, I see html in BOTH E-Mail programs, but outlook starts the message off with "MIME-Version: 1.0" which I suppose is the lesser of 2 evils, but there is no reason that I should have to see that. Does anyone have a solution?

View Replies !
Mail() Seen As Junk In Outlook
I am trying to set up a system that automatically sends out emails to subscribers. I am testing it on my system using my own email address as the recipient address. For some reason it gets put into my junk folder by outlook express. Any way of stopping this?

It will eventually be used to send to people who use all sorts of different email clients. Are there any easy ways to avoid these being filtered into the junk mail? Code:

View Replies !
Mail & Outlook Express
I'm sending an html email to members subscribed to a mailing list. However, the email isn't showing up as intended. This only occures in Outlook Express, Hotmail displays the email correctly. Code:

View Replies !
Mail() To Outlook, No Carriage Returns
I'm sending normal text email, but in Outlook all the carriage returns
are ignored. The text comes from MySQL database, and I've tried

str_replace("
", "
", $dr['email_template']);

I also tried sending header Content-type: text/plain but still no luck,
still the email comes through as one big line.

I'm sure this must be a common thing but I can't immediately find an
answer through Google.

View Replies !
Read E-mail Addresses From Outlook Express
how to read email addresses from outlook express (from local hard disk) It will be great if you help me to read e-mail addresses from and folders (of outlook Express) like Send, input, output etc).

View Replies !
Sending Mail From Php And Correct MS Outlook Receive
In my MS Outlook I use global address book to handling contacts.
When I send email from Outlook to myself and double click on sender I
get information about me from my global address book.

When I use php mail() function to sending messages and then double
click on sender I get specificity message email window only.

How do I have to prepare header at mail() function (for example: FROM:
?) that after send and double click on sender in Outlook I get
information about sender from Outlook global address book ?

View Replies !
SMTP Mail Problem (but Works OK In Outlook)
I'm finding when a mail is sent from a script, I get:

Warning: mail() [function.mail]: Failed to connect to mailserver at
"smtp.ntlworld.com" port 25, verify your "SMTP" and "smtp_port" setting in
php.ini or use ini_set() in C:Documents and Settings

However, when using Outlook and setting the SMTP agent in that to
smtp.ntlworld.com, on the same PC, mail is sent fine (using Outlook)
without any problems.

View Replies !
Make A Mail System Like Outlook Express
i need to make a mail system like outlook express that mean i run my system on client system it connect to server download mail on client system and after this i work with these mail exectly like outlook express. Firstly i am confuse how to download mails from web to client system?

View Replies !
Mail Ends Up In Outlook Junk Folder?
I have a mail PHP mail script set up to send email to me when a user completes a from on my web site. The problem I'm having is that if the mail is sent to an address on my domain it ends up in Outlook's "Junk-mail" folder. However if I send it to another adress not on my domain it works fine. Code:

View Replies !
Outlook Chopping Href Tags In Html Mail
I have been trying to send a multipart text and html message through the mail() funciton. It works beautifully with Hotmail. However, when it is received by the IceWarp web-based mail server or by Outlook, some of the HTML is hacked out. Specifically, on href tags, look like this when viewing the source: <a href=ttp://.... It also chops off the last character of the url and the quote before the end ">" on the tag. I can't figure out what is happening ....

View Replies !
Problem Of The Php Mail Function Not Formatting Emails Properly For Outlook Express On A Mac
anyone found a fix ever for the problem of the php mail function not formatting emails properly for outlook express on a mac, they always appear blank, something to do with the mime headers apparently......

View Replies !
Images Shown In Outlook Express But Not In Outlook 2003
I'm writing a php code to send email in mime format. All seams ok if I read the email with outlook express, or Thunderbird, or any webmail, but if I open the email with Outlook 2003, I can't see the images, I just see a small box (I send 1 image) with inside the path of the image. The image is embedded in the message, it's not a link.

<?php
$header = "From: Sender <sen...@domain.org>";
$header .= "CC: Altro Ricevente <blabla...@domain.net>";
$header .= "X-Mailer: Our Php";

$boundary = "==String_Boundary_x" .md5(time()). "x";
$boundary2 = "==String_Boundary2_y" .md5(time()). "y";

$header .= "MIME-Version: 1.0";
$header .= "Content-Type: multipart/related;";
$header .= " type="multipart/alternative";";
$header .= " boundary="$boundary";";

$messaggio = "If you read this, your email client doesn't support MIME";

$message .= "--$boundary";
$messag .= "Content-Type: multipart/alternative;";
$message .= " boundary="$boundary2";";

$message .= "--$boundary2";
$message .= "Content-Type: text/plain; charset="iso-8859-1"";
$message .= "Content-Transfer-Encoding: 7bit";
$message .= "Alternative message in plain text format.";

$message .= "--$boundary2";
$message .= "Content-Type: text/html; charset="iso-8859-1"";
$message .= "Content-Transfer-Encoding: 7bit";.....

View Replies !
Combination Of Outlook And Php - Create Stationery For MS Outlook Using PHP Engine
Some of my clients asked me to create "fancy emails" for them (aka html
formatted emails).

I know how to make a nice html document, but I had trouble creating a simple
way to provide the document to my clients so that they could use it to.

I know most of them use Outlook XP or Outlook 2003, so what I created was a
page that creates a Visual Basic script that, when saved to the desktop and
clicked (run), opens a message in outlook using the html provided.

View Replies !
Get The Mail Function To Send Mail After Processing My Forms Locally
I am using an Apple Mac Book Pro computer on which I am running MAMP (Macintosh, Apache, Mysql, PHP) I can not get the mail function to send mail after processing my forms locally. I checked the php.ini file to see what could be the problem and I believe I have it configured properly.

View Replies !
Mail Function :: Send Form In HTML Mail
I am trying to use the PHP mail function to repopulate the information that has been filled out on a form and send the form out in an html email the same way that it looked when the individual filled it out. The problem I am having is with the Radio buttons and repopulating them. Code:

View Replies !
Php Mail() Function Doesn't Send To Pop3 Mail Address
I'm writing a registration script for een webhosting company but the mail() function i used works only for hotmail addresses and not for pop3 email accounts, it also works for other not pop3 email accounts, does any one know what i should do to make this work. I used the same method before on an other server and there it worked perfectly.

View Replies !
Why Does Mail() Only Send Messages To Some E-mail Addresses?
I've got a form that I use to collect information and store it in a MySQL database and use PHP to send a mail() message confirming registration. When I use my work e-mail address, I never receive the message, but when I use my home e-mail address, I get it right away. What am I doing wrong?

View Replies !
PHP Mail() Function Failing To Send Mail
Our setup: PHP 4.3.11, FreeBSD 5.3 RELEASE, Sendmail 8.1, 1 host
environment, 2 jails.

Our problem: While we can send email from the command line just fine
in one of the jails, we cannot use the php mail() command to send email
using sendmail at all. The function, when executed, does absolutely
nothing. No error, no reports to the maillog, nothing.

I've read somewhere that it's "not possible" to send mail using the php
mail() function within a freebsd jail, but i'm nearly certain we have
it working this way on another server, but can't seem to figure out the
issue.

View Replies !
Send Out The Most Basic E-mail Using PHP And The Mail() Function.
im trying to send out the most basic e-mail using PHP and the mail() function.
the problem i have is that it will always return true but the message is never received and im not sure if its even sent. heres my code....

      $email = "jonathangilmartin@yahoo.co.uk";
      $subject = "Subject!";
      $body = "whatever you want to email";
      $from = "From: Jon <john@beach.es>";
      $p5 = '-f john@beach.es';
if(mail($to,$subj,$mesg,$from,$p5)){
echo " sent ok ";
}
else {
echo " failed ";
}

I think the problem I have could be due to the server I am hosting the site on, but dont quote me on this as im not sure. The site is hosted on my university server, ive now graduated so I cannot ask the support team if any ports are blocked. Does anyone know a way of testing a servers ports, if this is even necessary of course !

can anyone explain the typical server requirements to send e-mail using PHP, i assume port 25 must be open and the server must accept SMTP. Forgive me for asking a dumb question but I take it that i cannot test the mail() function from my testing apache server installed on my local PC ?

Also you will have noticed that i have a yahoo e-mail address, would i have to make any changes to my account to get this working ?? its only a standard free e-mail account.

View Replies !
Mail() Code Doesn't Seem To Send Any Mail
mail($toemail, "Greetings card from $from", $message, "FROM:Website Name<noreply@ourdomain.com>") or die("MAIL NOT SENT");

This code doesn't seem to send any mail - any ideas? Also are there any more advanced features that can be added to validate if the email is sent or not?

View Replies !
Mail Function Send Mail And Attachement
i can send mail and attachement in php with "mail function "

$s = mail($to,$subject,$cont, $headers);

View Replies !
Using The Mail() Command To Send Out An E-mail Message.
I am using the mail() command to send out an e-mail message. But, I am getting different results between two different clients. I am curious if this is a PHP problem, or just a problem with the way the clients are interpreting the headers. Code:

View Replies !
Formmail Send The Form As A Mail (mail())c
-one html -file containing a form, submitting the form (action, onSubmit)
-redirecting to a php processing -file, configure and send the form as a mail (mail())
-if mail() returns true: redirect to the form, AND a new window containing submitted data from the form poping up. Close popup window: return to the form.

View Replies !
Send Mail Using Mail() With Attachment
im trying to find out how to send an email with the mail() function and add an attachment

basically i want the user to be able to send an email and browse their computer and attach a word doc to the email any ideas on the attachment bit ?

View Replies !
Mail Function - How To Send Mail With Php.
I'm learning how to send mail with php. only thing that mystifies me a bit is I can't get NAME of sender to appear in e-mail INBOX under "from". I only see e-mail address. I'm
coming from Java, with Java you can set it up so whatever user puts under "name" in the form you can grab and in e-mail INBOX under "from" you see sender's name, not e-mail address. I would like to be able to do this with php.

View Replies !
Mail() Function - Using The Mail() Function To Send Emails To Members Of A Website
I am using the mail() function to send emails to members of a website. For some reason when I include words such as "free" or "winner" the mail does not send to any of the addresses - it just seems to disappear in space. I figured this out by trial and error - once I removed those words, it worked. I am running cPanel on the server and have no problem sending emails as long as they don't use those words. It seems to be blocking certain words - ones that I assume spammers would use.

View Replies !
Why Can't I Send A Mail With PHP
I can't send a mail with the following mail header:
$headers = "MIME-Version: 1.0";
$headers .= "Content-type: text/html; charset=iso-8859-1";
$headers .= "From: "User" &lt;user@inter.net&gt;";

Therefore $headers is set to (echo $header;)
MIME-Version: 1.0 Content-type: text/html; charset=iso-8859-1 From: "User"
<user@inter.net>

The mail has not been delivered and my PHP server says:
[24-Nov-2005 00:37:19] PHP Warning: mail() [<a
href='function.mail'>function.mail</a>]: SMTP server response: 501 5.5.4
Invalid Address in C:PHPfile.php on line 132

If I use
$headers .= "From: user@inter.net";
instead of
$headers .= "From: "User" &lt;user@inter.net&gt;";

is works perfect.

View Replies !
Cant Send Mail
The problem is I am the mail server administrator also. This is a small
company of 4 ....

View Replies !
Send Mail In Jsp
how to send a mail using jsp on a linux platform (cobalt)...i have tried using the smtp part,but is gives the security access error.

View Replies !
PHP Doesn't Send Mail
I can't make my PHP send mail even if I set an SMTP for it? What could I have missed. Upon using mail(), it sends a true flag, but I never receive the mail. Why? What have I missed out.

View Replies !
How To Send An E-mail....
I have a form and one of the fileds is a users e-mail address

I have the validity set-up and the form now works, accepts data and posts to
a mysql database - that side works great...

I now need to use the e-mail field in the form to send a mail back to the
user who entered the form to let them know registration was a sucess...

How do I do that?

I'm suspect there is not an easy way so a link to a website or code would be
helpful..

Sorry about the crosspost - but this is an urgent one and I need a quick
answer... i've googled but founf nuthin :(

View Replies !
Can't Send A Mail
I don't know where my problem is. Hopefully someone can give me
some hint to explore the problem more. I am running Apache 2.0.48
wih PHP 4.3.4. The apache is running as nobody. I want to use the
mail() to send out the email from a web page but it can't work. The
web server is on the red hat linux 9.0 with rpm sendmail-8.12.8-9.90
and sendmail-cf.
In the begining, I got the error message, 'SYSERR(nobody) can not
write to queue directory /var/spool/clientmqueue/ when I use the
mail(). I kind of make some progress if not worse to follow the
sendmail/SECURITY. I don't see the error message above anymore.
However, the mail does not go out. Here is what I get in maillog now.
Dec 9 20:48:32 flash sendmail[7859]: hBA1mWr6007859: from=nobody,
size=112, class=0, nrcpts=0,
msgid=<200312100148.hBA1mWr6007859@flash.ninds.nih.gov>,
relay=nobody@localhost

View Replies !
Php - Send Mail
I'm using this bit of "send me an email" code in a different part of the site and it works great.

So, I pasted it after this insert query (see below) so as to learn when a "new member" has registered, but when I test it, I'm not receiving mail -- even checked the Bulk folder. What do I need to change to make this work? Code:

View Replies !
How To Send Mail
i got a dillema

i have :
$message = "name:$name
lastname:$lastname";
$message .= "hobby:$hobbies";
$mail ($to,$sub,$message);

but if they leave empty the hobby i don`t want to send  : hooby : <empty>  only to send 
$message = "name:$name
lastname:$lastname";
and if they complete the hobby  send the message completly
$message = "name:$name
lastname:$lastname";
$message .= "hobby:$hobbies";

something like this.

View Replies !
Mail() Won't Send
I'm having a problem with mailing large attachments (~20-50MB). The attachment contains ~100,000 to ~300,000 lines. There's no size limitation with the mail server. The function works fine when the attachment has less than 80,000 lines.

View Replies !
Mail Won't Send
this is my code for sending email to addresses from a DB unfortunately the email doesn't go out. do any of you know what's wrong with the code? PHP Code:

<?php
if($_GET['contact'] = "TRUE") {
$subject = $_POST['subject'];
$message = $_POST['message'];
$result = mysql_query("SELECT email, email2 FROM table WHERE username = 'Something' ") or exit(mysql_error());
while ($row = mysql_fetch_assoc($result)) {$list[] = $row['email'];}

$to = 'someone@free.net'
$headers .= 'to: someone@freet.net' . "";
$headers .= 'from: someone@freet.net' . "";
$headers .= 'bcc: ' . implode(',',$list) . ".............

View Replies !
Send Mail
here is my code:

mysql_connect ("host","user","pass") OR DIE ("unable to connect");
mysql_select_db ("database");

$select = "SELECT name, user, PASSWORD FROM `users` ORDER BY `name` ASC";

$query = mysql_qyery ($select) or die (mysql_error());

while ($row = mysql_fetch_array ($query)) {

$name[] = $row[0];
$user[] = $row[1];
$password[] = $row[2];

}....

View Replies !
Send Mail With Mail Function And "From: " Header
When I send mail with mail function and "From: " header, some SMTP servers uses that header, but other put root@localhost instead of my From header. Can I prevent this? I'm using Q-mail.

View Replies !
Send Mail From Another Host?
Is there any way to send an email message without using the mail server on the local machine?

for example: my computer is running apache and php. When some script is activated, I would like my computer to send out an email. But... I want to connect to another mail server to send the message as my local machine isnt running postfix or sendmail. Can this be done easily with php's functions?

View Replies !
PHP Mail() Function Doesn't Send To AOL?
I am running a PHP3 script, and I have noticed that it won't deliver messages to AOL. It DOES send email messages to mail accounts on my server, I have not tried anywhere else. Any ideas why I do not receive the email sent to AOL? Here is the code:

$email = "name@aol.com";
$subject = "From datera.com";
$message = $message."Tour the Web Now!n";
$message = $message."http://www.datera.comn";
mail($email, "$subject", $message, "From: datera@datera.comn");

NEVER GETS SENT?

View Replies !
How To Send Mail At A Later Time
I have a form on my site that I would like to generate an automated response from when it is submitted.

The trick is that I want the auto response to send an hour or so after the form is submitted. If I'm using PHP to send mail is there something I can add to the header of an e-mail to tell it to send at a specific time?

View Replies !
Send Mail Using 4 Parameters
Using windows XP, when I try to send mail using 4 parameters, I get this :
Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to
relay for ...

View Replies !
Send E-mail Notification
I have a table in mySQL with a birthday field in it, I need a PHP script that notifies the admin one day before about the users Birthday by sending him email reminder.

View Replies !
Function Will Not Send Mail!
I've created the below function to automatically send me an alert in outlook
when someone completes various forms on my website.

The problem though is that mail reports that I have only 1 of the 3 required
parameters defined!

I have no idea where this is going wrong, because as far as I can tell I
have defined all 3 parameters! Can anyone spot the problem?

<?PHP
function alert_outlook($Type)
{
$Type = strtolower($Type);

switch($Type)
{
case 'newsletter':
$Subject = 'message subject one here'
$Alert = "Hi,
Just thought you would like to know that there has been
another subscription to the newsletter!

";
break;

$Alert = wordwrap($Alert, 65);
}

//set headers etc
$Recipient = "Auto Alerts<AutoAlerts@domain.com>";

$Message = "

{$Alert}

";
$Message .= 'Date: ' . date("l, js F Y") . "";
$Message .= 'Time: ' . date("H:i:s") . "";
$Message .= 'IP Address: ' . $_SERVER['REMOTE_ADDR'] . "";
$Headers = "FROM: Auto Mailer<AutoMailer@Domain.com>";

mail("$Recipient, $Subject, $Message, $Headers");

//error check
if(!mail("$Recipient, $Subject, $Message, $Headers"))
{
return FALSE;
}
else
{
return TRUE;
}
}
?>

View Replies !
Php Send Mail Problem
I have a function to send UTF-8 encoded HTML Format email to user.

But my found that the produced email sometime accidently being injected
with the ! sign.......

e.g. <td> sometime become <!td>

here is the code for that function

$sql = "select * from user where userid='$userid'";
$res = send_sql($sql);
//Get Reserve staff info
$row = mysql_fetch_array($res);
$fusername = $row["UserName"];
$femail = $row["Email"];
$message= ERNST."<html><body>";
$message.= "Hi ".htmlspecialchars($fusername).",<br><br>";
$message.= "Please note that the system accepted your borrowing of
files at ".date("d M Y H:i:s")."<br>";
$message.= "<br>";
$message.= "<table width=ï`%' border=&#391;'>";
$message.= "<tr align='center'
bgcolor='#79B1D2'><th>FileID</th><th>Group</th><th>Client
Name</th><th>Client Code</th><th>Year
End</th><th>Type</th><th>Description</th></tr>";
$i=0;
foreach ($fileid as $x) {
$cname="";$gname="";$cc="";$yr="";$type="";$des="";
$query = "SELECT
c.clientname,g.groupname,clientcode,yearend,type,D escription";
$query .= " FROM Client c, f_group g, f_folderlist fl,f_file f";
$query .= " where fl.fileid='$x' and fl.fileid=f.fileid and
fl.clientid=c.clientid and c.grpid = g.gpid" ;
$res2 = send_sql($query);
$j=1;
while($row2 = mysql_fetch_array($res2)) {
$cname .= $j . ": " .htmlspecialchars($row2["clientname"]);
if ($j<=mysql_num_rows($res2)-1) $cname.="<br>";
$gname = $row2["groupname"];
$cc=$row2["clientcode"];
$type=$row2["type"];
$yr=$row2["yearend"];
$des=$row2["Description"];
$j++;
}
$message.="<tr align='center'><td>".htmlspecialchars($x)."<td
align='left'>".htmlspecialchars($gname)."<td
align='left'>".$cname."<td>".htmlspecialchars($cc)."<td>".htmlspecialchars($yr)."<td>".htmlspecialchars($type)."<td>".htmlspecialchars($des);
} //endforeach
$message.= "</table>";
$message.= "<br>";
$message.="<table width=ï`%'><tr><td>Your truly,<BR>System
Administration/Operator<td align='right'>Date:
".htmlspecialchars(date("d M Y"))."</table>";
$message.= "</body></html>";
$headers ="From: MailDaemon <maildaemon@hk.ey.com>" .
'X-Mailer: PHP/' . phpversion() . "" .
"MIME-Version: 1.0" .
"Content-Type: text/html; charset=utf-8" .
"Content-Transfer-Encoding: 8bit";

@mail($femail, "Notify of File borrowing", $message,$headers);

View Replies !
Use Another Computer To Send Mail.
My computer install Redhat and PHP and Apache I want to write script that send mail and use another computer as SMTP (specific by IP). I see in php.ini can specific SMTP but only win32.

View Replies !
How To Send E-mail With Different Sender Name?
When I used PHP to send email, the sender will always be the server name.(For example: ipl.cccu.com) Can I do something to send the email as different sender?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved