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.





Mail() Function Sends To Junk Folder On Hotmail


The following mail is sent in a PHP script via the mail() function whenever the user changes their password on our site. the following mail headers were taken from the recipients hotmail account...the mail is delivered to the account but is placed in the 'junk' folder even though it is not a spam email.

The mail works and is placed in the user's inbox in aol/yahoo/outlook express. I understand that this is a common problem with hotmail. How can i get around this problem so that we can send mail and it will be delivered to the users inbox in hotmail? Code:




View Complete Forum Thread with Replies

Related Forum Messages:
Mail Function Sends To Gmail But Not Hotmail.
Can anyone tell me what the requirements are to allow hotmail to collect
messages. I have a script using the mail function at the moment that emails
most email clients but the email doesn't seem to be accepted by hotmail. It
email doesn;t even go into the junk box.

Please help,

The code:

ini_set(sendmail_path, "/usr/sbin/sendmail -t -f webmaster@domain.com");

//Contents of an Registration Auto responce email(text format)
$message = "Thanks for registering".$userName;

$headers .= "From: Name<webmaster@domain.com>
";
$headers .= "Reply-To: <webmaster@domain.com>
";
$headers .= "X-Sender: <webmaster@domain.com>
";
$headers .= "X-Mailer: PHP4
"; //mailer
$headers .= "X-Priority: 3
"; //1 UrgentMessage, 3 Normal
$headers .= "Return-Path: <webmaster@domain.com>
";
mail($email,"Registration ",wordwrap(stripslashes($message)),$headers);

View Replies !
Email Keeps Going To Junk Mail In Hotmail/gmail
Recently i got a dedicated server (running CentOS), and im trying to send emails using a php to hotmail, gmail, yahoo, etc.. But the emails keep going to junk email, this are the headers i get in gmail, i changed my domain name to "example.com", and my ip to 99.99.99.99

-------------------------------------------------------
Delivered-To: myemail@example.com
Received: by 10.140.187.1 with SMTP id k1cs11218rvf;
Sun, 2 Sep 2007 01:16:43 -0700 (PDT)
Received: by
10.35.27.1 with SMTP id e1mr4411248pyj.1188721002619;
Sun, 02 Sep 2007 01:16:42 -0700 (PDT)
Return-Path: <staff@example.com>
Received: from
mysite.net ([99.99.99.99])
by mx.google.com with ESMTP id n63si2393055pyh.2007.09.02.01.16.41;
Sun, 02 Sep 2007 01:16:42 -0700 (PDT)

Received-SPF: neutral (google.com: 99.99.99.99 is neither permitted nor denied by best guess record for domain of staff@example.com
) client-ip=99.99.99.99;
Authentication-Results: mx.google.com; spf=neutral (google.com:
99.99.99.99 is neither permitted nor denied by best guess record for domain of staff@mysite.net) smtp.mail=staff@example.com
Received: from
mysite.net (example.com [127.0.0.1])
by mysite.net (8.13.8/8.13.8) with ESMTP id l828Gj3h013152

-------------------------------------------------------

whats wrong here? i tried everything, im guessing "example.com (example.com [127.0.0.1])" is one of the reasons, but how can i change it so it shows my ip address instead of "127.0.0.1"? what is SPF anyway?

i have googled this a lot, seen many people with the same problem, yet no solutions, you help would really really really reallllyy be much appreciated.

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 !
Bypass Hotmail Junk Filter
I am sending mail through php mail() function, mail goes in inbox in yahoo.gmail,other but only in hotmail it goes in junk.

first i thought there was a problem with the text then we tested the text
through our hosting mail account and when finally we succeeded in
bypassing hotmail filter the mails started going in inbox if i sent them
from a mail account i create at the server test@...

but when i used the same text with php mail() function it still is going in
junk plz see below the code i used i added alot of headers but it still goes
in junk plz help how to bypass junk .....

View Replies !
Emails Going To Junk In Hotmail And Gmail
I am sending emails to all the members of my website using a script i wrote in php using mail function, but my emails are gone to their junk folder and not inbox main folder. specially in hotmail and gmail, please help me to solve out this problem.

View Replies !
Mail Function Sends Backslashes
I have a contact page that uses the mail function, and whenever a message is sent, anything that should be ignored by using the backslash still upholds. For example, an e-mail I would get could say "I didn/'t do it." instead of "I didn't do it.". Is there any way to fix this?

View Replies !
Mail () Function Sends Multiple Emails
The script below uses the mail() function, and everything works fine, except it sends three emails everytime to the same email address. Can anyone tell me why its doing this and how I can fix it? Code:

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 And Hotmail.com
I've the following proplem:
When I send an email to Hotmail account it:
1. Goes directory to the Junk Email !
OR
2. Goesn't go at all !

My website is in a dedicated server using: Linux 2.4.21, Apache, PHP,MySQL
and I'm using the following function to send my emails:

==============================
function SendEmail($veFmName, $veFmEmail, $veToName, $veToEmail,
$veSubj, $veBody) {
$varHeader = "MIME-Version: 1.0";
$varHeader .= "Content-type: text/html; charset=windows-1256";
$varHeader .= "X-Priority: 3";
$varHeader .= "X-MSMail-Priority: Normal";
$varHeader .= "From: $veFmName <$veFmEmail>";
$varHeader .= "Return-Path: $veFmEmail";
$veBody = "<html><body>" . $veBody . "</body></html>";
return mail($veToEmail, $veSubj, $veBody, $varHeader, "-f" .
$veFmEmail);
}
==============================

It's been now several months I tried to solve this problem, and I've
played with the header many times, but the problem still there; the
email sometimes doesn't go to hotmail OR goes to junk email!
This is an email sample sent from my site:

==============================
X-Gmail-Received: 4e24a44374ea625894407eb9fb89a65de91b36e3
Delivered-To: engrkhalid@gmail.com
Received: by 10.54.32.17 with SMTP id f17cs16564wrf;
Sun, 2 Jan 2005 09:58:18 -0800 (PST)
Received: by 10.54.32.28 with SMTP id f28mr293282wrf;
Sun, 02 Jan 2005 09:58:18 -0800 (PST)
Return-Path: <email@mstaml.com>
Received: from server.mstaml.com (server.mstaml.com [69.93.171.50])
by mx.gmail.com with ESMTP id 66si150386wra;
Sun, 02 Jan 2005 09:58:18 -0800 (PST)
Received-SPF: pass (gmail.com: domain of email@mstaml.com designates
69.93.171.50 as permitted sender)
Received: from nobody by server.mstaml.com with local (Exim 4.43)
id 1Cl9zd-0000IV-5k
for engrkhalid@gmail.com; Sun, 02 Jan 2005 20:58:17 +0300
To: engrkhalid@gmail.com
Subject: دعوة من John
MIME-Version: 1.0
Content-type: text/html; charset=windows-1256
X-Priority: 3
X-MSMail-Priority: Normal
From: موقع مستعمل <email@mstaml.com>
Message-Id: <E1Cl9zd-0000IV-5k@server.mstaml.com>
Date: Sun, 02 Jan 2005 20:58:17 +0300
X-AntiAbuse: This header was added to track abuse, please include it
with any abuse report
X-AntiAbuse: Primary Hostname - server.mstaml.com
X-AntiAbuse: Original Domain - gmail.com
X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12]
X-AntiAbuse: Sender Address Domain - mstaml.com
X-Source:
X-Source-Args:
X-Source-Dir:.......

View Replies !
Email Sends With Mail() Function But Arrives Blank
The TextInputForm.html form and WorkMail.php script below work fine. But there is one exception. If the "maxlength" variables for the text input boxes in the HTML form below are increased any more than the current settings the e-mail won't work right. What will happen is the e-mail will send but when it arrives it will be blank when viewed in the e-mail client.

For example, if the "maxlength" in the "AnyConcerns" text input box below is increased to 175 or above, and if all of the text boxes on the HTML form are full of text, the e-mail will arrive blank.

The "echo" statements on the WorkMail.php script below work fine. If the "maxlength" settings on the text boxes are too high (resulting in a blank e-mail) the "echo" statements will still print out all of the input in the browser. That indicates that the $Data string is processing all the way through to the SendMail() function below.

I was thinking that maybe, in order to guard against persons sending spam, the ISP has set the hosting server to limit the amount of text that can be sent in any one e-mail.

Does anyone know what might be the problem? PHP Code:

View Replies !
Mail() Function Not Working With Sender's Hotmail Email
i have this mail() function which works fine but i've tested it with
hotmail where i use hotmail email address for sender and receiver also
hotmail. If I type in a not existent email address for sender and a
right address for receiver, the email is not sent. But if I use
non-existent email and yahoo receiver email, then the mail is delivered
correctly. What's with hotmail? Is there something I can do to prevent
it with mail() function, or extra headers? or is it simply something to
do at the hotmail's end?


View Replies !
HtmlMimeMail Going To Junk Folder
I am making my personal website with some php coding in it. Now I want to send a HTML mail in one of my form. I am using htmlMimeMail class to send it. But when ever I am sending this mail to any hotmail account it is going to junk folder. Can I know how can I send it to Inbox of hotmail account?

View Replies !
Create A Script Which Sends A E-mail To The One Who Submitted The Form And A E-mail To The Webmaster (me).
I'm trying to create a script which sends a e-mail to the one who submitted the form and a e-mail to the webmaster (me). It also has to put the submitted info into my MySQL database. I'm just a beginner with PHP, so I don't know what could be wrong. When I try to submit the form, it gives me this error:

Parse error: parse error, unexpected T_VARIABLE in /home/example/public_html/test3/verwerken.php on line 38.

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 !
Enforce The Server To Accept The Mail In Its Inbox Rather Than To Send It To The Junk?
In one mail server the php mail function sends the mail to the junk.
Can we enforce the server to accept the mail in its inbox rather than to send
it to the junk?I found that hotmail sends the email to the junk folder most frequently
but gmail and yahoomail deliver it to the inbox.

View Replies !
Sends .EXE Or .ZIP Using Mail()
I am in the process of creating a page where a user can type in his e-mail address (or their friends), and then hit 'submit' and each of the address' will recieve in their mailbox an e-mail with either a .zip or a .exe attached. (The file is less than 100k).

I have a script that worked for sending .gif files as attachments, but as soon as I tried changing the file to .zip or .exe it no longer functions properly. For .EXE files it turns them into files with the extension .ZL9 PHP Code:

View Replies !
E-mail Sends
Here is what I am trying to do...

1. Search a database for people that want to receive a newsletter (works)

2. Get the e-mail address and business code (works)

3. Get the business name for the newsletter based on #2 (works)

4. Get the specials for the business for the day of the week (works)

5. Send an e-mail to each person (1) including the business name (3) and the daily specials (4) (kinda works)

We will say that the business has 3 specials for the day. Everything works except for including all the specials for the day in the e-mail. All I can get it to do is display the last special, not all 3. Code:

View Replies !
Sends The E-mail Ok, But It Isnt Cc'ing ?
Sends the e-mail ok, but it isnt Cc'ing ?

View Replies !
Mail Problem - Sends The Email From URL
I'm avinga problem with the mail function. I need specific reply to and from addresses which are in the format of URL
I set up the mail function mail($email, $subject, $message, "From: URL Reply-To: URL");

The problem is that it ignores the whatever and sends the email from URL. Any ideas how I could fix this or why it's doing it? Thanks a ton!

View Replies !
Help With Mail() And Hotmail!
Over the past two weeks, I have noticed that I have suddenly not been able to send e-mails to send e-mails to hotmail addresses with my PHP script. I can, however, send mail to non-hotmail addresses. Can anybody help, please?

The script I am using at the moment is as follows:

<?php
// Send E-Mail
$my_name = "Dave";
$my_email = "me@domain.com";
$to_name = "Dave";
$to_email = "myaddress@hotmail.com";
$subject = "Hello!";
$message = "testing!";
$mailheaders = "From: $my_name <$my_email>";
$mailheaders .= "MIME-Version: 1.0";
$mailheaders .= "Content-Type: text/html; charset=iso-8859-1";
mail("$to_name <$to_email>", "$subject", "$message", "$mailheaders");
?>

Muchly appreciated.

View Replies !
Mail() And Hotmail !!
why when i send email to hotmail using mail function the email goes to Junk box? Code:

View Replies !
Mail() And Hotmail
I have a problem sending mail() to hotmail accounts. The emails don't arrive at all (they don't arrive in the inbox or junk folders).

The script works fine sending to any address other than hotmail.

I've searched these forums and the web and others seem to have the same problem but no one appears to have a solution.

View Replies !
Mail Problem - Sends A File Attatchment
I have a script that looks like this that sends a file attatchment to the server:

$path = "/home/c/o/coilspecialty.com/html/uploads";
/*If you don'r know the path just make a small test
create a php file with just <?echo "teste;?> and see the path of the error so copy and paste here */
$where_to_go = $path."/";

while (list ($chave, $valor) = each ($_FILES['file']['tmp_name'])) {

if (move_uploaded_file($_FILES['file']['tmp_name'][$chave], $where_to_go . $_FILES['file']['name'][$chave])) {
print "
";
} else {
print "
";
}
}

View Replies !
Sends SMTP Mail From Database Info
I've got this script that I want to use to send SMTP mail from a form that allows the user to select recipients from a dropdown list that is created using database info and send a message.  Two of the selections in the dropdown list are groups.  My script works fine when the user selects only one recipient.  I run into trouble when the user selects one of the two groups.

The message ends up getting sent numerous times to the people in the group. I received the message 9 times.  I think the script is looping more times than it should.  Does this make sense so far?  Here's the script that receives the form data and connects to the DB to get the recipient email addresses and then sends the message: Code:

View Replies !
Sends A Mail Message When A User Registers
how to get around having our website emails being sent straight to yahoo (and probably hotmail) bulk mail folders. My website sends a mail message when a user registers to both the user and ourselves. Similar when a user changes their password/account info. At present, the mail is pretty simple. For example:

mail($email,"Your my_domainname_here account has been updated",$user_message ,"From: my_domainname_here.com");

Ive come across a few other posts with the same problem, does anyone have any updated suggestions? Maybe changing the from header to include an email address? How do message board sites format their email when they send out an email after you change your account info etc? Im looking at some of the headers in my yahoo inbox and there is a piece called "Authentication-Results". I think im going to have to dive in and learn about all the different email header elements.

View Replies !
Mailing Newsletter - Sends An E-mail To All My Members
i'm using a mail form on my website that sends an e-mail to all my members but the problem is that i can only send text and not html he always send an html page as text. so i can not send pictures or the desighn that i made for my newsletter.

View Replies !
Mail() Goes To Junk Mail
I tried to send email from my server using mail() but the email goes to
@xyz.com junk mail folders.
Why is that so?
How can I fix it?



View Replies !
Hotmail Like Mail Client
Is their any PHP script available to start mail service like hotmail.com or that provided by EveryOne.net

TheIMP won't have the mechanism to create new mail boxes.

View Replies !
Mail() Not Reaching Hotmail
I am trying to use the mail() function to send a simple, text-only
message. I have two websites hosted by the same company, on different
servers. One is old and established, one I am currently developing.
I am testing the mail functionality by sending a test message to an
email account associated with my old website, and to my hotmail
account. The message seems to be sent to both accounts, and I receive
the message on my website's email account, but it never reaches my
hotmail account.

Are there any special headers required for hotmail? I've looked
around a bit, and can't seem to figure it out. I've even tried
including several different headers, but always with the same results
- reaches my website's email account, but not my hotmail account. The
code I am using to test is:

<?php

$body = 'Hello from the internet mail tubes!'
$subject = 'Test message'
$address = 'working_address@other_domain.com'
$address2 = 'working_address@hotmail.com'
$headers = "From: working_address@this_domain.com";

mail($address, $subject, $body, $headers) or print "Can not deliver
to $address.";
print "Done with $address.<br>";

mail($address2, $subject, $body, $headers) or print "Can not deliver
to $address2.";
print "Done with $address2.<br>";

?>

View Replies !
Mail() Gets Blocked By Hotmail
I have a few systems that rely on the php mail function. One really big problem I'm having is I'm always blocked in Hotmail and marked as "junk mail". Does anyone know a solution to this? See below for my headers:

# Common Headers
 $eol = "
";
 $headers .= 'From: <'.$fromaddress.'>'.$eol;
 $headers .= 'Reply-To: <'.$fromaddress.'>'.$eol;
 $headers .= 'Return-Path: <'.$fromaddress.'>'.$eol;    // these two to set reply address
 $headers .= "Message-ID: <".$now." TheSystem@".$_SERVER['SERVER_NAME'].">".$eol;

View Replies !
Mail() Not Working With Hotmail Or Aol.
Does anyone know any good links on proper syntax and mail setup so i can mail to hotmail aol etc? I can send them to my mailserver no problem and to gmail, but not to hotmail or aol.

View Replies !
Yet Another Mail()/hotmail Spam Problem
Can anyone see why email sent with the script below insists on ending up in hotmail's "Junk Email" folder? Code:

View Replies !
Making Php Mail Code Work For Hotmail
This code was working for hotmail, googlemail and SquirrelMail but sometime in the last few weeks the code has stopped working for hotmail.

The mail doesn't even arrive (i've checked junk folders) and I don't get a delivery failure email to my host account's email address. Do you know what may be wrong with it? Code:

View Replies !
Direct SMTP Mail Problem (Hotmail)
I have a problem while delivering mails directly to hotmail's smtp server.

When I use local mail server for sending mails to hotmail users, it works fine and the mail is delivered to Inbox.

But when I deliver the mail directly to hotmail servers bypassing the local mail server it goes to hotmail Junk folder. Why hotmail considers it Junk mail? How can I protect the email from being considered junk?

Yahoo does not treat is as junk, but others servers may think it junk as hotmail does. Why it is so?

View Replies !
HTML Mail, Images And CSS Not Loading In Yahoo And Hotmail
I had made HTML mail, it is working fine the mail gets received, but when I open the mail in Yahoo and Hotmail, images are missing and CSS also doesn't load. do you guys have any idea, why the images and css is not loading.

View Replies !
Obtaining Contacts From Gmail/hotmail/Yahoo Mail
This request may sound illegal, before I begin I would like to assure you it is not. I am looking to do something like MySpace does where you can enter your e-mail username/password and then it imports your contacts and sends invitations to all of them. This is for a client I am working for.

I know how I can do this using curl or fsockopen() and some write requests, but I wondered if theres an easy way (eg: A web service / API) for these types of things. I have done some searching but found no such thing.

Does anyone have any experince doing this or know of any kind of pre-built open-source PHP script that can do this?

View Replies !
Mail() Sends As "nobody", Causing Server Error
I'm troubleshooting a program that I didn't build, so forgive me on this one. It's called email.php, and it looks like a program that the original developer must have downloaded from somewhere.

The part of the program that sends an email states this:

$headers = 'MIME-Version: 1.0' . "";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "";
// Additional headers
if (isset($_REQUEST["bcc"])){ $headers .= 'Bcc: '.$bcc. ""; }
$headers .= 'From: '.$from.'' . "";
if (isset($_REQUEST["cc"])){ $headers .= 'cc: '.$cc. ""; }
if (isset($_REQUEST["bcc"])){ $headers .= 'Bcc: '.$bcc. ""; }

// Mail it ......

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 !
Mail Problem - Warning: Mail() [function.mail]: SMTP Server Response: 550 Invalid Recipient:
Whenever the recipient's email address includes a hyphen ( - ), I get the following error message...

Warning: mail() [function.mail]: SMTP server response: 550 Invalid recipient:

I should stress that this only seems to occur when the hyphen is in the URL portion of the address, i.e example@perfect-example.com

The current code works along the lines of...

mail ($_POST['email'], 'Email subject is here', $body, $headers);

View Replies !
Mail() Sent To The Bulk Mail Folder
I simply send a confirmation email to someone who has registered on my site but thte message usually gets filtered or sent to the bulk mail folder. Can someone tell me what type of content I should put in the email to get around the filter? All my content is so far is a thanks for registering message and a link for them to confirm their email address.

View Replies !
Mail Arrives In Spam Folder
I have been trying to figure this out and have used 2 classes already, but still am unable to get this working. I'm trying to send an email verification link out to each user that registers on the site, but Gmail has been putting it in the spam folder. Here's a copy of the message: Code:

View Replies !
Mail Going To Yahoo Bulk Folder
I have got a small problem with the php mail function. I send mail to my yahoo account using mail function, it is going to the bulk folder instead of the inbox. I have included all the headers for the mail to function. This is the code I have used.

$to = "to@domain.com";
$subject = "Test Subject";
$headers = "MIME-Version: 1.0";
$headers.= "Content-type: text/html; charset=iso-8859-1";
$headers.= "From: MyName <MyEmail>";
$msg = "Test Message";
mail($to,$subject,$msg,$headers);

View Replies !
Warning: Mail(): Bad Parameters To Mail() Function, Mail Not Sent. In /
I have a website with a contact form and I tested to see if the form would actually send the submitted info to my email but I get this error...

Warning: mail(): Bad parameters to mail() function, mail not sent. in /home/content/g/o/l/goldenhills/html/email_us.php on line 62

Here's the php code:

View Replies !
How To Ensure That EMAIL From Mail() Do Not Goes Into SPAM Folder?
Are there ways to prevent emails generated from mail() going into SPAM /
JUNK folder?

View Replies !
How To Access The Other Mail Folders Besides The Inbox Folder
How does one access the trash and other folders using PHP and pop3?

my client program only shows the contents of the inbox (quite
naturally I guess coz I always use 'INBOX' with my imap_open() calls.

issuing imap_open with 'TRASH' doesn't seem to be ok.

can this be done with imap_header_info()...and could someone
spare a rough script or pseudo code to do this.

can we work with folders using imap?

View Replies !
To Write Php Code To Zipped A Folder Mail To User
i need to develop a report generator to mail the web report (with image file)to user
I need to download my daily report  into a folder now my concern is how to zip my folder and send mail to my user and php function provide the zipped folder (or save folder a .zip).

View Replies !
Use The Mail() Function: Warning: Mail() [function.mail]:
I am trying to use the mail() function. I've got my php.ini file configured to use my current smtp host (Verizon) and I get this error:

Warning: mail() [function.mail]: Failed to connect to mailserver at "outgoing.verizon.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:www est.php on line 39

So I'm asking two things.
1) How can I make this work with out using Verizon's SMTP server? The server I am using for this website is a Windows XP machine with Apache as the webserver.
2) Once I have an alternative smtp server option, what is it I need to do to set it up properly?

I need an alternative smtp server because this machine is just a development machine at my house, while the file site is in a colo and isn't connect to verizion or anyone else with a smtp server.

View Replies !
Mail() [function.mail]: SMTP Server Response: 550 Not Local Host Gmail.com
I do a mail() and get:

Warning: mail() [function.mail]: SMTP server response: 550 not local host gmail.com, not a gateway in C:xamppxampphtdocs estsitemail.php on line 7


<?php
ini_set("SMTP","rlwatkins.com");
ini_set("sendmail_from","hunter@rlwatkins.com");
mail("huntercjcarroll@gmail.com","hello me","spamtastic","From: hunter@rlwatkins.com");
?>

what is wrong with this, how do i set it so that i can send to something other than localhost?

View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 501 Syntax Error
When I try this under windows :

mail("User <user@example.com>",$subject, "", $headers);

I get this error :

Warning: mail() [function.mail]: SMTP server response: 501 Syntax error,
parameters in command "RCPT TO:<User <user@example.com>>" unrecognized
or missing in

It seems to add it's own <> characters. If I run the same script under Linux it works fine !?

View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 501 5.5.4 Invalid Address
I receive this error:


PHP Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in D:clientsebiblecommentary.comconcordia-seminary.caconcordia-seminary.ca\_demo
egister.php on line 464

Both of my mail() uses fail, and I'm not sure why. I've followed the same syntax before on this my server and not had a problem.

My code is below: ....

View Replies !
Warning: Mail() [function.mail]: Permission Denied: Headers Injection
I wrote many years ago a small shop application as hobby for a customer. Worked well until a few days. I'm not a php guru and don't understand why I get now this permission problem.

Warning: mail() [function.mail]: Permission denied: headers injection (empty line) in /home/www/edfedca4df03c5ff2685003537a08dd5/web/minishop/mail.php on line
145

mail($this->to, $this->subject, "", $mime); <- LIGNE 145

View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 550 5.7.1
I'm making e-mailing with php script and i setup mailtraq mailserver this thing is just a lil confusing to me first thing i want to know if i can use apache instead of this as mail server second when i wrote my script with that mail function i received an error this is it :

Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for monalisa20042006@yahoo.com in D:wampwww1stmail.php on line 2

what's that mean if this means that the mail server not configured right...SO third how to use or configure this server to use as my mail server. Code:

View Replies !

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