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() Messages Bounce With 501 Syntax Error In MAIL FROM Command


I have this website that contains an internal message system that allows
users to send each other "email" messages. My client wants me to extend
the system so that when a user receives an internal message, the system
will send an actual email to the user's email address. Code:




View Complete Forum Thread with Replies

Related Forum Messages:
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 !
Problem Using Mail() No Error Messages
I am having a problem using mail() and was hoping some kind soul could give me some feedback as to what I am doing wrong.

When executing the script, IE just hangs. No error messages, the first part of the script doesn't even run. IE just times out with a blank page.

None of my other scripts do this. I am using a mail server on my local network which I have confirmed works, using Outlook Express to send test messages to Yahoo. Code:

View Replies !
Mail(): Error Messages NOT Back To Wwwrun?
a friend was so kind to host my php scripts. but when they use mail()
or phpmailer (or whatever) to email e.g. to an invalid address, the
returning error message appears in *my friend's email inbox*
(recipient - or sender? - is "wwwrun" of my friend's machine). I
guess you understand which problem I mean. To fix the problem, I would
like to understand what is going on here - in the mail header, i did
set replyto, x-sender and from to *my* email address, but it doesnt
help. so where must I change what to free my kind friend from this
"spam"?

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 !
Bounce Mail
I'm get into trouble to get bounce mail from procmail, anyone give me any suggestions??? I write my program with PHP and I try to use mail() or mb_send_mail() function but it always return TRUE event wrong address.

View Replies !
Get Bounce Mail From Procmail
I'm get into trouble to get bounce mail from procmail, anyone give me any
suggestions? I write my program with PHP and I try to use mail() or
mb_send_mail() function but it always return TRUE event wrong address.

View Replies !
Bounce Mail In Case
I'm working on a php script where i have to send a mail with my name as sender. I want to get the mail bounced back to me in case its not delivered to the intended user.
This is the code i used for that purpose

<?php
$subject = "Hello There";
$headers = "MIME-Version: 1.0
";
$headers .= "Content-type: text/html; charset=iso-8859-1
";
$headers .= "To: someone1@sthg.com
";
$headers .= "From: someone2@sthg.com
";
$headers .= "Reply-To: someone2@sthg.com
";
$headers .= "Return-Path: someone2@sthg.com
....................................

View Replies !
Mail Function Bounce Backs
I'm writing a script to mail to a database of people. I'm not sure that all of these e-mails are still current. Basically, I want to know where the bouncebacks will go while using this function.

I assumed that they would bounce back to the "from" email, but after testing this, it was apparent this was not the case. I found an email (an old one of mine craig@empire.net) that would bounce back and made sure it did, by sending a regular mail to it.

I made a script that would mail to this email, and was from my current email. I didn't get the bounceback. I called out provider, and they were no help.

Basically, I'm looking for some help in finding a way to find out which emails did not go through, and which ones did. Anyone had an experience with this before or have any suggestions on what I can do?

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 !
Display Error Messages When The Command Is Not Successful
When using exec(), how can I get it to display error messages when the command is not successful.I have tried Code:

$command = "dir";
$output = `$command`;
echo "$output";

Which works great if everything goes as planned. However, if anything runs that is not successful, I just get a blank page. For example if I inserted "not a valid command" as the $command var I get a blank page, and I want to get the "program is not recognized" dialog.

View Replies !
Get Bounce Messages
I have two servers each running software. With one, I email all the members using the script supplied with that software and nothing bounces. This is bad because I know for certain that (at minimum) one email address is bad. With the other, I email all my members using the script supplied with that software and get a buncha bounce messages. This is good. The former uses PHP's email, and the latter PHP's sendmail. I know nothing about either function. My host says it's a function of the script, and not a configuration matter on the host.

Should I modify the latter so that it sends the same way the first does, or am I merely missing a parameter I need in order to get my bounce messages? I'd be grateful for some pointers! This has baffled me for a long time, and I only recently acquired the latter software and was startled to receive bounce messages. I'd always wondered why I never received them with the first server, and went through all my server settings painstakingly thinking it wasn't configured properly.

View Replies !
Double Spaces In Mail Messages
When I send a message using the mail command in PHP some e-mail
addresses somehow put two returns in place of one return, so this:

$message = "Test
Test2"

becomes

Test

Test2

But if I mail this:

$message = "Test
Test2"

it works the same for all e-mail addresses. Why is it doing this? I use
Red Hat Linux and Apache.

View Replies !
Sticky Mail Like App For Sending Messages To Users
I've been looking for a private messaging application to integrate with my site. I'm looking for something similar to the Sticky Mail app here at webmasterworld. Preferably it will be a PHP based app.

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() Error - Use The Mail() Function
I am getting this message when I try to use the mail() function. Please let me know what it means and how I fix it.

Warning: mail(): SMTP server response: 501 Invalid Address in C:AccountsjsniggitwwwRootincprayer.php on line 105

Line 105 = mail($mail,$subject,$message,$header);

I dont get the invalid address part cause $mail is just my email ....

View Replies !
The Mail Command
I have apache/php/mysql installed on a win98 machine. When I try to execute the mail command in PHP3 it just doesn't work. any ideas?

View Replies !
Mail() Command
I am trying to automatically have a mail sent to the user when they do certain things on my website, such as signup or write a message to someone. I am using the php mail() command, as shown here:

$to = "foid025@msn.com"; //accepted user's email
$subject = $user . " has entered your eFamz network";
$message = "the email";
mail($to, $subject, $message);

Though this does not give me an error, I do not receive the email. Might 'mail' be unallowed on my server? Or could it be something else?

View Replies !
Suppressing @ In From Using Mail() Command
I'm using the mail command to mail off some messages. I want from to say "John Doe". So I do this:

$to="me@me.com";
$subject="Me";
$message="More me";
$headers="From: John DoenReply-To: john@doe.comnX-Mailer: PHP/" . phpversion();
mail("$to","$subject","$message","$headers");

However, when the mail arrives in my mailbox, the from field reads: "John.Doe@thisaddress.com" where thisaddress is the long server address of the webserver. My question is can I get the from field to appear without the @thisaddres.com anywhere in there?

View Replies !
Problems With The Php-mail()-command ...
I have a small Problem by using the mail() command from php. To surround
the problem, I do the following:

1. I go to the server and send me a mail using the linux-mail-Command.

In This mail I'll never find the two parameters "Content-Type" and
"Content-Transfer-encoding"

2. I start a smal php-Script, which sends me a mail. The different
variables are defined by:

$strFrom = '"Bestellsystem" <fromNewsGroups@devsup.de>'
$strReturnhtml = 'http://www.grieser-verlag.com/'
$strEmpfaenger = "fromNewsGroups@devsup.de";
$strMailtext = "Special German Characters: äöü ÄÖÜ ß
";
$strMailtext .= "Hewbrew Characters: ×בגדהוזחטיךכל×מ
";
$strMailtext .= "Greek Characters : αβγδεζηθικλμνξο
";
if(get_magic_quotes_gpc()) {
$strMailtext = stripslashes($strMailtext);
};
$strSubject = 'Test des Mail-Befehls (ohne Content-Type)'

2a. and then I start the mail()-command:
mail($strEmpfaenger, $strSubject, $strMailtext, "From: $strFrom");

In this second Mail I will find the two parameters:
Content-Type: text/plain: charset=UTF-8
Content-Transfer-encoding: BASE64

2b. and then I use the command:
$strSubject = 'Test des Mail-Befehls (mit Content-Type)'
mail($strEmpfaenger, $strSubject, $strMailtext, "From:
$strFrom
Content-Type: text/plain;
charset=utf-8
Content-Transfer-encoding: quoted-printable
");

In this third Mail I will find the FOUR parameters:
Content-Type: text/plain: charset=utf-8
Content-Transfer-encoding: quoted-printable
Content-Type: text/plain: charset=UTF-8
Content-Transfer-encoding: BASE64

I have checked the php.ini file, the Mail.php, PEAR.php, pearcmd.php and
the System.php and I do not have any idea about the reason for those
additional parameters.

Additional php-Information (Version 4.3.9): http://devsup.de/phpInfo.php
Version of Mail.php: // $Id: Mail.php,v 1.6 2003/06/26 07:05:36 jon Exp $

Does someone have any idea to find the flag or the file/module which is
responsible for those parameters to switch them off?

View Replies !
Mail Command After With Captcha
I have configured a captcha script and had it working but added some fields in the form that i needed it to capture. Now after i have modified the mail tag it doesn't even want to display much less send.....

View Replies !
How To Send A File With Mail() Syntax ...?
I want to know, how can I send a file with mail() syntax.
can you give me a sample of script..?

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 !
Warning: Mail(): SMTP Server Response: 505 5.7.3 Must Issue A STARTTLS Command First
While using mail() function in PHP I am getting thjis error

Warning: mail(): SMTP server response: 505 5.7.3 Must issue a STARTTLS command first

I have used ini_set("SMTP","mail.subdomain.mydomain.");


But when I used this with the IP address of the MailServer (MS-Exchange server) it works. Any comments on this.

View Replies !
SQL Error : 1064 You Have An Error In Your SQL Syntax. Check The Manual That Corresponds To Your MySQL Server Version For The Right Syntax To Use Near '' At Line 5
This is a code from A-Mod, but doesn't see like no one really cares..so thought I'll post it here and maybe I'll get some help. When I'm on activity.php and click next page I get the following error: Couldn't obtain game data DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 5 Code:


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 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 !
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 !
Warning Messages When Script Executed From Command Line
PHP INI File Setting
------------------------------------------------------------------------------------------------------------------
error_reporting = E_ALL & ~E_NOTICE

No warning message are displayed when script executed from the browser.
Only Error, Fatal errors are displayed.

But when the same script is executed from the command line
192.168.0.2# php lpmonitor.php
Warning messages are displayed.

PHP Warning: Module 'ctype' already loaded in Unknown on line 0
PHP Warning: Module 'SimpleXML' already loaded in Unknown on line 0
PHP Warning: Module 'dom' already loaded in Unknown on line 0
PHP Warning: Module 'iconv' already loaded in Unknown on line 0
PHP Warning: Module 'pspell' already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20041030-debug/ssh2.so' -
/usr/local/lib/php/20041030-debug/ssh2.so: unsupported file layout in
Unknown on line 0
PHP Warning: Module 'pcre' already loaded in Unknown on line 0
PHP Warning: Module 'xml' already loaded in Unknown on line 0
bash: fstat: command not found

What are all these errors and how can I suppress these errors from
being displayed in command line also.

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 !
Open User's Default E-mail Application To Generate An E-mail?
I want to be able to open up an user's default e-mail application and populate the to:, subject: , body:. I tried using the html <a href="maito:you@your.com?subject=Test&body=It worked">E-mail me</a> but it limits you to the length of the body. I want the user to be able to view the e-mail, add any other comments, and send it. Is this possible?

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 !
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 !
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 !
Mail Error When Using PHP
I've encountered an odd error, and it seems to happen only when PHP is used
to send email. I'm using PHP 4.1.2 on RH 7.1. The problem is best seen when
OS Commerce generates email.

Specifically, email that is sent to a local mailbox has the 'F' removed from
the "From " header (I think this is the very first character in email
messages). With the 'F' missing, the mail file is obviously corrupted. For
now, I've resorted to using sed() and lockfile to fix it.

When I had a little time some months ago, I spelunked through the OSC code;
it seems the problem is within a PHP mail handling function.

Has anyone ever seen this? What can I do to fix it? (Or, more politely,
where can I look to learn how to fix it?)

View Replies !
PHP Mail() Error
I'm trying to use the mail() function to send an email containing a table, but it keeps failing.  I'm not sure what the problem is.  It doesn't throw any syntax errors in terminal.  My code:

View Replies !
PHP E-Mail Error
I am trying to create a simple PHP e-mail form that emails me 8 form questions. I keep getting the error though that i can only send 5 paramters. I sort of understand the problem but can't work out a solution. How do i modify my script to make sure I can send 8 parameters. Code:

View Replies !
Mail() Error
I am using this coe and it keeps giving me the error that I have got 6 parameters when only 5 are allowed.
<?php

$name = $_REQUEST['name'];
$email = $_REQUEST['email'];
$message = $_REQUEST['message'];

mail( "contac@web.com", "web.com Contact Us",
$name, $email, $message, "From: $email" );
header( "Location: ../thanks.htm" );

?>

I know I could get rid o the $email parameter, but I need that there becase the From:$email does not work it just says the email comes from webmaster@. Can anyone tell me how to get round the error?

View Replies !
Mail Error
below send mail programe said line 3 error, could you pls find why is that and let me know pls
[line 3 mean $message ="Name:....... this line]

<?php
"--------------------"
$message="Name: ".$_POST['main_name']."
". "Email: ".$_POST['email']. "
"."Comments: ".$_POST['comme']."
";
$headers="From: TOSOJK<tosojk@gmail.com>
";
$date = date("l, F d, Y h : i", time());
$to="tosojk@gmail.com";
$subject="Comments from Visitor - Contact us";
mail($to, $subject, $message, $headers);
header("Location:confirmation.html");?>

View Replies !
Mail() Error!
I have a simple PHP script that runs our website feedback form. When I moved the script (and the HTML page that feeds it) to a new server the script began to crash in the middle of mail(). Instead of moving to the "thank you" header I get the following:

" $headersep . "Reply-To: "$name" <$email>" . $headersep . "X-Mailer: chfeedback.php 2.07" ); header( "Location: $thankyouurl" ); exit ;?>

I'm sure this is a "oh crud - I cannot believe I overlooked THAT" type of problem.

View Replies !
Mail() Error
error message:

Warning: mail(): SMTP server response: 501 Invalid Address in C:AccountsjsniggitwwwRootincprayer.php on line 67


Line 67 = mail($mail,$subject,$message,$header);

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 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 !
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 !
Recieve A Mail Based On The Mail That Is Added On The Form
I am creating a php form which is connected with Mysql data

The thing I want to do is after the user press on submit button first redirect to a new page "booking_details.php" and the same time to recieve a mail based on the mail that he added on the form

I do not know php code so I do not know how to edit my page.

View Replies !
Mail() Error Handling
I use mail() for a musician's mailing list script that suddenly started
having problems after many months of working flawlessly. The code fragment
is:

if (mail($To,$Subject,$Body,$Headers,$Param))
{
print("The message was sent to:<p>$HTML_BCC<br><hr><h3>Completed
OK</h3><p>
");
}
else
{
print("<font color="#ccff66">There was a problem and the
message was probably not sent.</font><br>
");
}

How can I find out what is causing the error? I thought there were
built-in error number and error description messages, but a search of the
manual at php.net does not come up with anything.

View Replies !
Mail() Connect Error
im having some trouble getting the mail() function to work. this is the error message returned:

Warning: Failed to Connect in c:/apache/apache/htdocs/turkey/turk_login.php4 on line 36

line 36 is where the mail() function is written. i am using win98 with apache and these are the settings for the mail function in my php.ini

SMTP = localhost
sendmail_from = admin@localhost.com

View Replies !
Mail() Function Error
I have setup Apache and PHP on my local machine as a testing server. So
to test the mail() function i have set the SMTP_host thing in php.ini
to what i think is the hotmail SMTP server.

Whenever i try to use the mail() function it comes back with this
warning:

Warning: mail() [function.mail]: Failed to connect to mailserver at
"http://services.msn.com/svcs/hotmail/httpmail.asp" port 25, verify
your "SMTP" and "smtp_port" setting in php.ini or use ini_set()

I got that SMTP address for hotmail from Outlook so i am sure it should
be working.

What am i doing wrong?

View Replies !
Unknown Mail Error
I am working on a site and for some reason the mail function keeps returning false for no reason when all the input is correct and should be sending, the script is below. Code:

View Replies !

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