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.





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

Related Forum Messages:
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 !
Warning: Ftp_mkdir() [function.ftp-mkdir]: Store: Permission Denied
I'm trying to have PHP make directories in another site via the use of the FTP functions. However, when I try to do so, I get the following errors:

Warning: ftp_mkdir() [function.ftp-mkdir]: store: Permission denied in /home/dir.php on line 85

Warning: ftp_chdir() [function.ftp-chdir]: store: No such file or directory in /home/dir.php on line 86

But I don't understand why I wouldn't have permission because if I open an ftp client and login with the same information, I can make all the folders I want. And even the folder I'm trying to write into right now is CHMOD 777. Any possible reason why it isn't working?

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 !
Email Headers Problem (your Mail Was Administratively Denied.)
Email headers problem (I suppose)

My website needs to send some emails to some members and some of these
emails are coming back as follow:

SMTP error from remote mail server after MAIL FROM:(www@MY_SERVERcom>:
host mx.ig.com.br [200.226.132.20]: 553 sorry, your mail was
administratively denied. (#5.7.2)

What can I do to workaround that? Is something about the email header?

This is how I am sending:
$mailHeaders = "MIME-Version: 1.0";
$mailHeaders .= "Content-type: text/html; charset=iso-8859-1";
$mailHeaders .= "From: "MY_SERVER.com" <suporte@MY_SERVER.com>";
$body =
nl2br(api_lang_GetKey_("MSG_SEND_CODE_NEW_PROFILE",""))."<br>Link: <a
href='".$url."'>$url<a/><BR><BR>";
$sent = mail( $_POST['EMAIL'], api_lang_GetKey_("MSG_NEW_REGISTER",""),
$body, $mailHeaders);

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]: 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 !
Warning: Mail() [function.mail]: Failed To Connect To Mailserver
Why do i keep getting this error:

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:wampwwwproject_upload Code:

View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 553
my php.ini mail section is setup as follows:

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

then in my php script:
<?php
mail("joecool@hotmail.com", "Testing", "Line 1
Line 2
Line 3", "From: tom@hotmail.com") or die("email error");
?>

i have also run mercury mail but i keep getting this error:

Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in C:Program Filesxampphtdocsest.php on line 2

on all tutorials that i went, the mail function is written this way what is wrong?

View Replies !
Warning: Copy(fileupload/cc.gif) [function.copy]: Failed To Create Stream: Permission Denied In /
I have a script called "FILE-UPLOAD.PHP" on this page GO HERE TO TEST UPLOAD FILE FUNCTION

When I upload a image file i get the following error:
Warning: copy(fileupload/cc.gif) [function.copy]: failed to create stream: Permission denied in /home/karmacr/public_html/fileupload-class.php on line 266

Any ideas on how to resolve? I have both the Script and upload file in my Public_html directory.

View Replies !
Warning: Unlink() [function.unlink]: Permission Denied In C:Program
i'm getting this error when i try to upload an image-
Warning: unlink() [function.unlink]: Permission denied in C:Program Filesxampphtdocsepeopleupim.php on line 79

Does this mean i need to change the directory permission to allow php to move/copy an image into the directory?  if so, can i right-click on directory folder (i use windows xp) and go into properties and change the permissions in there? If so, what do i change it to? Code:

View Replies !
Warning: Unlink(): Permission Denied In
Source Code like this:

<?PHP
If($MyFile != "none") {
copy($MyFile,"c:/MyWeb/file");
unlink("C:/MyWeb/temp/$MyFile");}
else {
echo"You didn't upload any file";}?>

The doc root: doc_root ="C:MyWeb"
Upload temporary dirctory: upload_tmp_dir = C:/MyWeb/temp

View Replies !
Warning: Mail() [function.mail]: Failed To Connect To Mailserver At "localhost" Port 25
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in send.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at send.php:9) in send.php on line 10

why this warning and error coming when i am using this cording help me to solve this problem.

View Replies !
Warning: Mail() [function.mail]:
I am trying to send an email through php using the mail() function but getting the following error:

Warning: mail() [function.mail]: SMTP server response: my-server-name-here [my-ip-address-here] is currently not 550-permitted to relay through this server. Perhaps you have not logged into 550-the pop/imap server in the last 30 minutes or do not have SMTP 550 Authentication turned on in your email client.My PHP Code is:

<?php
$to = 'nobody@example.com'
$subject = 'the subject'
$message = 'hello'
$headers = 'From: webmaster@example.com' . "" .
'Reply-To: webmaster@example.com' . "" .
'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>

FYI: I am running this code on windows 2003 server and i can send email using Horde. What I am guessing is I need to add smtp authentication in my php code, so If you can tell me what is the syntax that can help me. how to overcome this problem?

View Replies !
Warning: Mail() [function.mail]: Failed To Connect To Mailserver At "localhost"
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:SitescsitechsorderEmail.php on line 97

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 !
Warning: Pg_query() Query Failed: ERROR: Directories: Permission Denied
I've ran into a wierd problem with my script, and i'm quite dumfounded. I'm doing a PHP interface to create directories into a filebank. The idea is that the directories are virtual, they don't truly exist in the server. The directory names are saved into a PostgreSQL table, in quite simple fashion.

The wierd problem is that i get the following error message when i try add the directory name into the database:

Warning: pg_query() query failed: ERROR: directories: Permission denied. in /var/www/html/okartek/inc/class_psql.php on line 50

The sql is done by a class, called by this function: PHP Code:

View Replies !
Warning: Fopen(test.htm): Failed To Open Stream: Permission Denied
I'm using a script for a wordpress plugin, for a newletter function.

When I try to send a newsletter I get

"Warning: fopen(test.htm): failed to open stream: Permission denied in /home/website/plugins/st_newsletter/shiftthis-pages.php on line 229
can't open file"

What do I need to do to fix this? chmod something?

View Replies !
Warning: Copy(photos/26.jpg): Failed To Open Stream: Permission Denied
i I'm attempting to create a photo gallery but when I try to run this script to upload and resize the image I get the following warning. Can anybody tell me what this means and how I rectify the problem.

I have attached the code below incase the problem is within the code.

Warning: copy(photos/26.jpg): failed to open stream: Permission denied in /home/users/uks53122/html/sportsmatesreunited.co.uk/upload.php on line 51

PHP Code:

View Replies !
Headers Use In The Mail() Function
Does anyone know a page/website with an overview of all the headers one can use in the mail() function with some explanation?

View Replies !
Headers Using Mail() Function
I know there is lots of information out there and I've taken a look, but I want to learn how to do this myself. And I'm a beginner here and some of it I don't understand (so no flames, RTFM or GFGI

Here's my function:

function send_mail($to_name, $to_email, $from_name, $from_email,
$subject, $message)
{
$thedate = date("r", time());

$headers = "X-Mailer: PHPMailProgram/1.0";
$headers .= "From: "".$from_name."" <".$from_email.">";
$headers .= "Date: $thedate";
$headers .= "Content-Type: text/plain";
$from = "".$from_name."" <".$from_email.">";
return mail( $from, $subject, $message, $headers);
}

My problem is that it will never arrive with the "Name" <email address>, and I can only make it work using email addresses without the names or the angle brackets around the email addresses. Once I tried printing the headers and the quotes and angle brackets turned up, but no names or email addresses. And once an email arrived but with nothing but angle brackets! (I wonder how that happened? The SMTP server must have stripped things out perhaps?)

View Replies !
Headers For The Mail() Function
I have been having some email problems with emails from my server being sent into spam or not delivered at all by some isps.

I have solved most of the problems by setting various headers, but two things I can't seem to set with this function are 'return-path' and 'envelope-from' which both seem to be set to my hosting server and not my domain name. Code:

View Replies !
Warning: Move_uploaded_file(/Goals.doc): Failed To Open Stream: Permission Denied In /home/
I am getting this error in my code:

Warning: move_uploaded_file(/Goals.doc): failed to open stream: Permission denied in /home/voxroxor/public_html/Testing/Test/test.php on line 14

Warning: move_uploaded_file(): Unable to move '/var/tmp/php1x8LmI' to '/Goals.doc' in /home/voxroxor/public_html/Testing/Test/test.php on line 14
darnGoals.docIt worked

I am writing a script to be able to upload files remotely to a server. The site is being hosted at ipowerweb.com. I figure this is probably a security issue with them? If so, is there a way to log in or something of the sort right before uploading the file? This is a test script btw. so I can implement it in my much larger one when I figure out the correct code.

View Replies !
Problems With Headers Using Mail() Function
I meant to write:

function send_mail($to_name, $to_email, $from_name, $from_email,
$subject, $message)
{
$thedate = date("r", time());

$headers = "X-Mailer: PHPMailProgram/1.0
";
$headers .= "From: "".$from_name."" <".$from_email.">
";
$headers .= "Date: $thedate
";
$headers .= "Content-Type: text/plain

";

$to = "".$to_name."" <".$to_email.">";

return mail( $to, $subject, $message, $headers);
}

View Replies !
Mail() Function - Additional Headers
I writing a script to send emailing using php and the mail() function. All of the codes is tested on a different server than I am currently using and works. The code I am using now works but it will not send email to .edu addresses. Has anyone ever heard of this? Could this be a problem with my php.ini file? Do I need additional headers that I don't
have? Any thoughts would be of service. Like I said I've gotten it to work on a different server, I do not have access to that php.ini file but I now have access to my current servers php.ini file if that is where the problem lies. mail() sending emails fine to .com addresses (from what I can gather, sends them to gmail and hotmail) but like I send not .edu address.

View Replies !
Warning: Mail() [function.mail]: "sendmail_from" Not Set In Php.ini
I'm getting this error "Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in D:Wildwwwenvirotechslc.comsurvey .....

View Replies !
Warning: Mail() [function.mail]: Failed To Connect To Mailserver At "localhost" Port 25, Verify Your "SMTP" And "smtp_port" Setting In Php.ini
PHP Code:

$con = "hi monday";
mail("mymail@lala.com","test imap.dll",$con,"From: [email]other@mail.com[/email]");

and the mod_imap is loaded. but the browser show:

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:Apache2htdocssendmail.php on line 2

View Replies !
Warning: Mail() [function.mail]: "sendmail_from" Not Set In Php.ini Or Custom "From:" Header Missing
I created a form to send feedback and i get the following error, what does that mean and how to fix it.

Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in c:wampwwwphp websitephp and mysqlpractice fileschapter 4 - string manipulation and regular expressionsprocessfeedback.php on line 11

The code is as follows:
<?
$name=$_POST['name'];
$email=$_POST['email'];
$feedback=$_POST['mailcontent'];
$toaddress="viraj_hoober@yahoo.com";
$subject="Feedback from web site";
$mailcontent="Customer name: " . $name . "
"
. "Customer email: " . $email . "
"
. "Customer comments:
" . $feedback . "
";
$fromaddress="viraj2401@yahoo.com";
mail($toaddress, $subject, $mailcontent, $fromaddress);
?>

View Replies !
Mail() Function Not Working When Adding A Headers Parameter?
This works:

$to = "email@address.com";
$subject = "CONTACT FORM";
$body = "test";
mail($to, $subject, $body);

But when I add an additional parameter $headers, it doesn't work:

$to = "email@address.com";
$subject = "CONTACT FORM";
$headers = "From: My Name Here";
$body = "test";
mail($to, $subject, $body, $headers);

What could I be doing wrong?

View Replies !
Mail Function Warning Error
when i use mail functions i am getting this error what to do...

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:Program FilesEasyPHP 2.0b1wwwlavanyamail.php on line 18

Your email has been sent!

View Replies !
[function.copy] Failed (Permission Denied)
Warning: copy(g:mp) [function.copy]: failed to create stream: Permission denied

I get an error message like that. I was trying to make an upload script. I'm using windows (2000) so chmod wouldn't help. Where should i get started to fix this problem?

View Replies !
Mail() Function - Warning: Unknown Error
I have been getting the crap beat out of me by the mail function. It just wont send the mail. I have even tried this simple test:

if (mail('myrealaddress@yahoo.com','Getting this to work','what the hell is it going to take?'))

The result -
Warning: Unknown error in c:phpdev5wwwalaskaerrandsindex.php on line 135

And when I say myrealaddress I mean I really used a valid email address. I know that the mail function just isn't working for me and it has to do with something other than my code.

View Replies !
Mail() Function - Warning: Server Error
i'm trying to send out emails, only my colligues can receive em' (they can't be sent outside). what cud be the problem? it keeps on giving me "Warning: Server Error".OR maybe it might be because my colligues uses the same mail-server as mine..

been using:
<?php
$email = "lmpofu@fnb.co.za";


$to = "malaya@studentvillage.co.za";
//$headers = "To: Bob <kagiso@po.gov.za>
";
$headers = "From: $email
";
$headers .= "Bcc: kagiso@po.gov.za
";

$result = mail($to, "Hi?", "So do you know this Kagiso guy", $headers);

if ($result) {
echo "Your message has been sent! ";
echo "Return to <a href='home.html'>home</a> page.";

} else {
echo "There was an error!";
}
?>

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() [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 !
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 !
File Handling - Warning: Fopen("./count.dat","w") - Permission Denied
I took noticed when I moved my website from a paid for server to my own, I noticed my counter stopped working. The error message is below;

You are visitor 1
Warning: fopen("./count.dat","w") - Permission denied in /var/www/counter.php on line 14

Warning: Supplied argument is not a valid File-Handle resource in /var/www/counter.php on line 15

Warning: Supplied argument is not a valid File-Handle resource in /var/www/counter.php on line 16

View Replies !
Mail() Injection, Am I Safe?
I was looking at mail injection,
http://securephp.damonkohler.com/in...Email_Injection

And I was wondering if my mail(...) was safe.

I ask in a form for
1 Name
2 Email address
3 Subject
4 Comment/Message

I then build one message by putting all of the above together.
So even if there was injection, it is all in the body of my message, right?

I then use mail(...) as per normal with my hard coded "To:" and "Subject:"

Is that a fairly safe way?

How should I parse my form to prevent malicious code, (Script? eval?)



View Replies !
Mail Injection Reject How To?
I have a problem on one of my websites I manage It gets mail injected.

The problem is I have hardcoded a $to in the script ($to is comming from a DB) and the Headers is hardcoded and the message is comming from a field with name and email.

How can I block mail injectors? and block them permanently?

View Replies !
Warning: Mysql_connect() [function.mysql-connect]: Access Denied For
please anybody of u please help me to solve this problem. i don't know what happen.

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mysql_user'@'localhost' (using password: YES) in C:AppServwwwmangrovedatabase.php on line 2 Could not connect: Access denied for user 'mysql_user'@'localhost' (using password: YES)

View Replies !
Emails Blocked By Certain Mail Hosts? (mail() Function)
I'm using mail($address,$subjectheading,$message,"From:
me@mysite.com") to send emails from my site. For the most part, it
works okay (for example, I receive the mail in my Yahoo box). But when
I check my university email, the message is not delivered. I thought
maybe it was because I had included my web address in the subject
heading and that it was being filtered out, but I removed that from
the subject and it still fails to get through. I'm making a wedding
site for some friends now and they want to be able to email everyone
on their guest list at once, but I'm afraid the same will happen to
some of these addresses as well. Any comments/suggestions on what may
be blocking the mail and how I can get around it? I'm not trying to
send out any kind of mass ad mailings or anything. Just to people on a
mailing list for this site.

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 !
Mail() [function.mail]: Failed To Connect To Mailserver
i need to know how to enable my mail function i have change my ini to localhost port 25 and enabled emnail but nothing is changing anyone experienced this problem before.

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 !
Relaying Denied Using Mail()
The ISP I am on is using a mail server that has POP before SMTP activated. This means whenever a mail goes out it has to supply a valid username and password for that mailbox in-order for it to let the email be sent. I can do it using ASP and JMail but how do I get vBB to work with this?

View Replies !
My Mail Header Injection Fix Doesn't Work
Based on every website I've researched on this topic I'm coding my mail form correctly to protect myself from mail header injection. But, my form is ignoring the code. What's wrong with this picture? Code:

View Replies !
Deleting Files Using Unlink [function.unlink]: Permission Denied
I have a record in the db and a picture file name recorded with that record. I am writing a deletion routine which checks that file name and is supposed to delete it using unlink.

Although it reports the correct directory and file name, I received the following:

Warning: unlink(/home/pab/html/pics/test.jpg) [function.unlink]: Permission denied

I checked my permissions and the file is set at my user name and 666.

Does anyone know why this won't work or maybe another way to delete the file?

View Replies !
Php Mail() Problem - Warning: Mail(): Failed To Connect To Mailserver At "localhost" Port 25, Verify Your "SMTP"
I used dreamweaver as a tools for php coding..and Im using php version 4.3.3, Apache 2.0.47(win32) and MySQL as database. I found a problem with php mail() and the error says like this ;-
Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set().

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 !
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 !

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