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.





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 Complete Forum Thread with Replies

Related Forum Messages:
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 !
Scrip For Sending An EMail Via PHP And Outlook
our configuration is as following described:

- OS: Windows 2000
- Apache server 1.3
- Php 3.8
- MS outlook client 2000

_and_ no SMTP server available in the whole intranet.

We are looking for a php script for sending eMail with help of the
above named outlook client.

View Replies !
E-mail Receive Works
Any email comes to the server, a php script is automatically run to parse the email? I've never done this before. Later I would like to transfer my website to a Linux box, but I'm using a PC currently to develop the site. Details are welcome. In fact I have no concepts about which program or "server" is supposed to receive email, then how would that program "pass" the email as a parameter to a php script.

View Replies !
Cannot Receive HTML Mail On Same Host
When I use php mail() in a script on my localhost to send an HTML
message to an e-mailaccount on my online host, all is fine.
When I use php mail() in a script on my online host to send an HTML
message to some e-mailaccount other than on my online host, all is fine.

But when I use php mail() in a script on my online host to send an HTML
message to an e-mailaccount on that same online host, I receive the
message code as plain text.

View Replies !
Receive And Handle Incoming Mail
I need to have some sort of script that when an email with a picture attachment is sent to for example user@mysite.com, the script can save the attached picture as a file and get the subject and message of the file.

View Replies !
Receive And Handle Incoming Mail With Attachment
I need to have some sort of script that when an email with a picture attachment is sent to for example user@mysite.com, the script can save the attached picture as a file and get the subject and message of the file. need urgent help on this matter.

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 !
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 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 !
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 !
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 !
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 !
Sending Mail: Choice Between Sending Receipt, Or HTML Formatting
I'm using PHP's mail function to send out a message via email.

I would like for this email message to send a receipt when read as well as send an HTML formatted email. Both aspects are important to me.

I know this is a product of the mail header. This is the format I currently have:

mail(to, subject, body, "From: name <email>
Disposition-Notification-To: name<email>
Content-type:text/html;charset=utf-8");

This prompts the email program to send a reciept, but the email message is not in the HTML format, and even contains "Content-type:text/html;charset=utf-8" at the top of the body.

If I switch the order to this format:

mail(to, subject, body, "From: name <email>
Content-type:text/html;charset=utf-8
Disposition-Notification-To: name<email>");

This sends the email with HTML formatting but does not prompt the sending of the receipt. I also get "Disposition-Notification-To: name<email>" at the top of the email message.

This tells me there is a problem in the transition between the headers, which currently is "".

What am I doing wrong?

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 !
Mail() : Correct Me Where I Am Wrong??
i want to have one astromatch form and the details filled should be sended to particular email !

i tried but emailing is not working ! means i am not able to recieve email ! where i am wrong ! Code:

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 !
PHP Mail Not Sending Mail To Itnernal Email Address
Running a PHP mail script on Linux which has Exchange as the mail
server. The script does not send mail to any internal email address but sends
it to any other address outside its domain!

View Replies !
Sending Mail In Omni HTTPd With Mail()
Whenever I try and use the mail function I get a "Failed to Connect" error. I'm running PHP4.0, Omni Httpd 2.06 on Win98. Is there something else I have to do to enable email? I know if worked before on PWS, but I switched because I couldn't get PHP4 to run under PWS. Any help is greatly appreciated.

View Replies !
Sending Mail Without The Mail Client Popping Up
I was wondering how to send a mail without the mail client popping up to the user.

I want to send a mail to myself, when a user pushes a button on my homepage. Any ideas?

View Replies !
Mail Form Not Sending Mail - Server2003
I am trying to test a simple feedback form. I have php 5.0.3.3 on my dev
Windows server 2003. SMTP is working fine, as we all use it to send mail
from. PHP works fine as well, but I just cant get mail sent by php, although
no errors are reported.

Do I understand it correctly that this simple script should send me a mail?
This is just to test that it works.

<?php
mail('me@whatever.com', 'My Subject', 'message');
header( "Location: http://webserver/message_sent.htm" );
?>

Okay, the " Location: http://webserver/message_sent.htm" comes up fine, and
"<?php phpinfo() ?>" also works fine. SMTP allows relay from my subnet and
does not need authentication.

View Replies !
Mail() / Sendmail Sending Mail As Spam
Wondering if anybody knows why when sending mail through my local sendmail program using the PHP mail() function; emails either do not reach the destination, or register as spam? Prime example is: h0tm@il addresses never receive the email, gmail addresses consider the email to be spam, and my workplace receive the email about 1 hour after the program finishes.

Could it be a problem with my ISP? I am using Fedora Core 6, PHP 5 and Apache 2. Or test it yourself.. just fill out the form with some rubbish and it should send an email saying you've registered.. maybe you can figure out where I am going wrong by looking at the headers? http://aaronweb.no-ip.com:6969/?p=2

View Replies !
Sending Mail To Hotmail Using The Mail() Function
I have been doing some research into how to send mail to a Hotmail address using the mail() function provided in PHP, in previous posts I may have been wrong in mentioning that you need to add your mail server to the hotmail PostMaster website using Smart Network Data Services (SNDS), after doing some research I have found that in order to send e-mail to a Hotmail address you need to add/ask your host to add an SPF record to your domain.

What is SPF?

Well, SPF is a protocol used to eliminate forged e-mails, much like SSL certificates help eliminate phising websites. Microsoft use the SPF record against the SenderID Framework that they have in place.

How do I go about obtaining an SPF Record?

Easy! use the Microsoft wizard found at:

http://www.microsoft.com/mscorp/safety/content/technologies/senderid/wizard/

to generate a unique SPF record for your domain, then add it to your DNS server, or ask your web host to do this.

I manage my own DNS server, how do I add an SPF record to a domain?

To begin, open the DNS MMC from the Administrative Tools menu of your Windows Server 2003 system. Next, find the domain that will host the SPF DNS lookup record. 

Highlight the folder for the domain, and select Other New Records from the Action menu. You can also access this menu by right-clicking the domain folder.

The resource Record Type dialog box will be displayed. From the Select a Resource Record Type area of the screen, scroll down the list and select Text (TXT) from the list.

Click Create Record. This will bring up the New Resource Record dialog box to appear. This is where you paste the SPF record generated by the above website

----------------------------------------------------------------------------------------------------------------------------------
I hope this helps, I have tried it myself and e-mails went straight to my inbox (not junk mail). Would also appreciate feedback if this works for other providers such as Yahoo! etc as I have not tried it with them

Give me your feedback on how it works for you, also if it works possibly make this thread sticky as I'm sure it will resolve many problems for people out there who are denying access to people who have public email addresses.

View Replies !
Mail() Function Doesn't Seem To Be Sending MAIL FROM: Properly
I'm trying to send an email using the mail() function. I've carefully made use of the ini_set(SMTP, "mail.my.server") function to set my SMTP server and also to set my From: address. I'm still getting a "Relaying not explicitly allowed: fakeemail@fakedomain.com" response from the server however, when I try and set a recipient who is outside of my own
domain. This makes my think that the From: address is somehow not getting sent to my server properly or that I'm pointing at the wrong server.

The confounding thing is that it was working for a while and I don't think I changed anything and it just stopped.

I'm running these PHP pages for a client off of one of those cheap hosting services, I think it's called 1dollarhost.com or something, although I can't remember at the moment.

Has anyone else had trouble with this or found a solution?

View Replies !
Sending Mail Otherthan Mail()
My server admin has blocked the mail() due to some spam problems. I
need to send emails using php. Can anyone guide me to the best method
of sending emails using php without using mail().

If there is any tweak to be done at the server level I will be able to
convince the admin. The server has linux Enterprice edition 3 with php
4.3.11 and cpanel/whm.

View Replies !
Mail Function Not Sending Mail...
I used PHP's mail function to mail a simple contact us type form to an admin person. Well, I have need of doing it with my current job. I created a simple contact us form and all it has to do is email it's contents to me (for testing of course). Code:

View Replies !
Sending Mail With Php
I created a registration form with html and php. And i want that when they fill the form correctly they get an e-mail message. I don't know how to do that. Please help.

View Replies !
Sending Mail In PHP
I have a few sections on my site that send me email when a user submitts various forms. I use the mail() function.

This is an example:

$sendto = "me@mysite.com";
$email = "replay@mysite.com";
$message = "Message from user.";

$subject = "Website Feedback - " . date("m/d/y");
$headers = "From: "Online-Website-Feedback" <****@mysite.com>";
$headers .= "Reply-To: $email";
$headers .= "MIME-Version: 1.0";
$headers .= "Content-Type: text/html; charset=ISO-8859-1";
$headers .= "Content-Transfer-Encoding: 8bit;";
$headers .= stripslashes($input);
$headers .= "";

mail($sendto, $subject, $message, $headers);

For some reason though not all emails are sent to me. I setup a little database action that everytime a user views my feedback form it adds to the database that a use viewed the form at this time. Then I set it so whenever a user submits the form it adds his info to the database, emails me, and adds to the database that a user submitted the form. So I have a few inserts in my database that say a few people have submitted the form, but I have no email from my site about their feedback.

I was curious if the mail() function is a good function to use or if there is a better way to send mail. I am also using this function for order confirmations with my shopping cart and if some emails arent being sent that will give me problems down the road with orders not being completed.

So in basic terms what is the easiest, most secure, most reliable way of sending email from a website in php?

View Replies !
( Sending Mail )
I have this php file that sends the result from my forms on my site, but i need that the email captured in the forms appear instead the mail that i have on my code I've tried to change it by the variable name i use in forms ($email) but i can't get it done. PHP Code:

View Replies !
Sending Mail With PHP On IIS
I'm running an app created in PHP running on IIS. Everything is working fine, except I need to send email through PHP, and IIS does not have sendmail. How can I work around this?

View Replies !
Sending Mail
I'm getting an error when I try sending an email from some code I have
written:

"<?php

print "Thank you, <b>$_POST[name]</b>, for your message!<br><br>";
print "Your e-mail address is <b>$_POST[email]</b><br><br>";
print "Your message was:<br><br>";
print "$_POST[message] <br><br>";

// Start building the mail string
$msg = "Name: $_POST[name]";
$msg .= "Email: $_POST[email]";
$msg .= "Message: $_POST[message]";

// Set up the mail .....

View Replies !
Sending Mail ....
I'm trying to send email with code that I've had taken from a form. The code input is in html form, and I want to take this code and send it in an email.

I have no problem sending a MIME message using pear, if the mime is already placed in, but when I try to place the code from the form it just displays it as it is, and doesnt apply any html to it. Code:

View Replies !
Mail() Not Sending
I've been working on this for a couple days now, I'm sure it's something easy, but I don't see it. I'm just trying to send an email using the mail() function. I have done this in the past using PHP but it's been a couple years. I have Sendmail on my machine (pre-installed in OS X) but don't know if it's configured right.

I have tried a few different PHP scripts, a couple from these forums, and am still not getting any mail sent. I have also tried a script that is working on a different box. Does anyone know of a way I can test Sendmail without PHP to see if there is a problem there? Or any advise otherwise?

View Replies !
Mail Sending
how can i send a mail through php. if i just have a use emai id. i just have to send a email on this id. how can i do that through php.

View Replies !
Sending PHP Mail
I created a form that should be sent by the server when the client click on Submit. However, the form doesn't work unless it is fill out completely. What should I do to send only what is on the form it doesn't matter if it is not fill out completely?

View Replies !
Sending A Lot Of Mail
I have say a thousand or so of my customers e-mails to send out, is their a way that I could set the execution time at the beginning of the script and loop through sending an e-mail to each individual one by one and pausing in between. I know the browser might time out after 30 seconds if it does not receive any new data. Could I run a loop that would send a message to the browser every 10 seconds while running the sleep/mail loop.

View Replies !
Sending Mail.
I'm in need of a code that sends mail to specified persons. That is,i've a hyperlink when clicked show open a page which specifies as the following:

To:
Cc:
Subject:
Description:

Send ClearDescription

The to is for sending to an email address which is say xyz@yahoo.com which is constant and should come automatically when the hyperlink is clicked and also same for Cc. When i click send i should be sent to the recipients. Almost same as other sending mail websites.

View Replies !
Sending Html Via Mail
I want to send mail that is formatted as nicely as possible.
For this, I plan to send raw html code URL...but the mail prints out the html also...how do i make the html formatting show ?? I guess I'll have to add some specific header...is it true ??

View Replies !
Sending Html Mail?
I made a .html file taht I want to send by mail, but not as a attatchment. I want it to be sendt as a html mail.

I could use microsoft word and send it trough there, but word will change some of the html code.

View Replies !
Sending Newsletter With PHP Mail()
I have a couple of hundred email of friends and I wanted to send them a newsletter for my site. I designed a little PHP script that fetches the emails from the database, and for each email, construct the newsletter body then invoke the php mail() function to mail to the person.

The problem is only say half of them I guess got the newsletter the rest didn't. Apparently the code broke at some point, and I actually after waiting a long time saw the famous "The page cannot be displayed" page. So it must have been broken at some point while mailing..

is it because my host php couldn't take that many calls to the mail() function ? should I put some kind of delay after each mail() call to give php time to send the email ?

or what is the best way to do this (send this newsletter to a lot of people each inidividually)

View Replies !
Sending HTML Mail Using PHP
I know how to send plain text e-mail using PHP's mail() function, but how to send HTML e-mails using mail() function.

View Replies !
Sending Mail Through Localhost
I've already define SMTP and sendmail_from on my ini file but there's still no respond when I tried to send a mail from my script.

View Replies !
Mail Sending Within A While Failed
I have a table with some email addresses of a mailing list subscribers.
I'm triying to send a mail to them by querying the table and sending
the mail from a 'while' loop, but I only get sent the mail to the first
address, and no more, and the 'while' is correct and I can see the
debug traces from within for each address.

I don't know if there is any reason for this, if the smtp server is
busy sending the first mail when receiving the second and next...

View Replies !
Sending Mail Problem
my script(IMAP email client) is sending mail using imap_mail()
function.

imap_mail($To, $Subject, $Body, $headers);

$headers = "From: <$From>";
$headers .= "X-Sender: <$U@$DOMAIN>";

I have given imap host address of mauj(my server).but while sending mail
it is sending from my server not from mauj server.(while runnig tht script
from my end)

View Replies !
Sending Html Mail
A client wants to send out a mail in html including graphics. The idea
is that it looks like a personalised coupon that they can print off.
I've had a look at http://phpmailer.sourceforge.net/ and the html
example seems pretty straightforward but it doesn't give much
information on the graphics. Should the images be sent as attachments
and simply referenced in the html or am I completely off track here?
--

View Replies !
Html Mail Sending
I tried to send emails in html format in this line : PHP Code:

View Replies !

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