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.





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

Related Messages:
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 Replies !   View Related
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 !   View Related
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 !   View Related
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 !   View Related
"Content-Transfer-Encoding: In Case You Are Sending A Form In The Mail Body
can anyone tell me what should be the "Content-Transfer-Encoding: in case you are sending a form in the mail body"

View Replies !   View Related
Checking The DB For Either Lower Case Or Upper Case In A Query ?
I have people submitting a form twice, one with lower case letters and one with capital letters. Of course I have it checking to see if email is in DB, and this is their way of submitting twice. Is there a way to prevent this by checking the DB for either lower case or upper case in a query ? Or maybe they will even do both lower and upper case at same time.

Example :
SOMENAME@SOMESITE.COM
somename@somesite.com
SoMeNAME@soMeSiTE.CoM

Many variations they try and succeed.

View Replies !   View Related
Case Sensitive, Case Sensitivity, $_GET
IF, inside the address-bar, the link appears as:
index.php?CITY=Raleigh+NC
or
index.php?City=Raleigh+NC

$_GET['city'] displays behaves like a stubborn mule and refuses
to get the get and returns empty ("").

Is there a way to turn off the case sensitivity ?

View Replies !   View Related
Mysql :: Upper Case Or Lower Case
I want to be able to get the results of the following query, at the moment it's just showing the results that begin with a capital letter: PHP Code:

$glossary = "SELECT * FROM glossary WHERE authorisation='y'AND item REGEXP BINARY '^A' OR '^a' ORDER BY 'item' ASC";

View Replies !   View Related
Bounce Back
I am currently writing a login script and I want login.php to send the user back to where he/she was when hitting the "login" button... Just like it's on this forum.

If youre logging in while viewing a thread youre, after the login is compelte, being taken back to the same thread. Is there like a bounce back code or something?

View Replies !   View Related
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 !   View Related
Help Me With Email Bounce Management
I am using C Panel
I have PHP 4.3.9
I use php List 2.8.12

All my bounced emails are going directly to my server.

I need all my bounced emails to be routed to a specific email address
of my choosing.

View Replies !   View Related
How To Set Bounce Address Without 'spoofing'
I want to send email from mydomain.com but have them all bounce to
xyz.com. The problem is when I use the -f option with mail , I get my
emails all rejected by xyz.com, saying that 'Sender domain is
spoofed'. I looked at the headers and it appears adding -f sets the
'envelop-from' header which causes xyz.com to think it is spoofed. I
tried using 'Errors-To' header but that did not work and appears to
be deprecated anyways. I also tried using the -f and just relying on
the 'Reply-To', but that did not send bounced emails to 'Reply-To'
xyz.com address.

View Replies !   View Related
Better Mailing With Stmp And Bounce
we want better mailing script trought 2 step.

1. use SMTP to send emails (actually we use mail())
2. process bounce

1. we have try to write code for auth and use smtp but without success..

so, we need really simple class (few row) because we need hight customization..
Smtp must return 'for any email' and in reatime the error.. Code:

View Replies !   View Related
Send An Email So It Does Not Bounce?
Does anyone know a for sure way to send an email so it does not bounce? I mean a way to check it a mailbox is full dont send or if it doesnt exist dont send.

View Replies !   View Related
Checking Bounce From Particular Mailing?
The thing is, the e-mail that caused them to bounce could have originated from 1 of many mailing lists and more specifically from 1 of many mailings.

What ideas do you guys have to check the e-mail in a specified account, and upon collecting the e-mail address, determining what mailing list or more specifically, the mailing that it came from?

View Replies !   View Related
Automated Way To Track Bounce Backs?
I am in the process of building a newsletter distribution system.  What I want to be able to do is track the emails that are faulty and have been bounced back to the server.

I know that by using "-f webmaster@evolution.tv" in the additional_parameters successfully sends back an email saying that the email could not be recieved.

The issue here is that then each failure email must be opened manually.  Is there any way to track automatically that emails have bounced back?

View Replies !   View Related
Mailer, Blacklists & Email Bounce Back
I have spent hours researching PHPMailer & blacklists, however, I am unable to configure the server to send emails to all recipients successfully (this means that several go through, but several bounce back).

PHPMAILER:
I have configured PHPMailer so that it sends email via SMTP and through a valid and authenticated email account configured on our server. Code:

View Replies !   View Related
Emails That Bounce Get Sent Back To The Address In The Return-Path:
Emails that bounce get sent back to the address in the Return-Path:
header. Correct?...

View Replies !   View Related
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 !   View Related
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 !   View Related
Using Case Instead Of If Else
I have a situation where I have different pages and I want to echo different content on those pages by using either an include or simple parse change.  The code I have looks tragically heavy.  I'd like a lighter cleaner code snippet and I'm open to any suggestions on this. Code:

View Replies !   View Related
Case For A Case
What is the purpose of a case? Why couldn't I just use an if() statement?
What's the difference? How is a case used properly? Under what circumstances would you not be able to use if()... or case?

View Replies !   View Related
Case Statements
I am fairly new to php and I was wondering if there was something similar to case statements in C++.

It would be a lot easier than writing about 20 if statements.

View Replies !   View Related
Lower Case?
Is lc($var) available in PHP?

View Replies !   View Related
Unexpected T CASE
I converted an ASP script using the ASP Translator that I found on the web. Of course it couldn't be that easy (copy, paste and press a button). The PHP script doesn't work.

I'm know a little php but not enough to figure out why I get this error message.

Parse error: syntax error, unexpected T_CASE in /home/slnlibrary/public_html/scripts/Search.php on line 8

View Replies !   View Related
Case Syntax
I've no Mysql NG access from my ISP, so let me ask here.

I've a case statement in mysql.

Here is the code:

select ....,
case myvalue
when 'X' then valueX
when 'Y' then valueY
when 'A' then valueY
when 'B' then valueY

In my case, Y,A and B gave the same value.

I'm trying to do something like:

case myvalue
when 'X' then valueX
when in('Y','A','B') then valueY

But I can't get it to work with IN statement. What's the syntax ?

View Replies !   View Related
Switch My Case
I haven't used switch before, so I thought I'd give it a go. But I ran into some trouble. The case is like this: I have a search results page where, depending on the no of hits, different texts should be printed. Perfect for switch I thought, but I need to use a different range for each case.

Some code:
// connect and query code not included...
$numrows=mysql_num_rows($result);

switch ($numrows) {
case $numrows==0:
$traff='Do it again...'
break;
case $numrows==1:
$traff='Great!!'
break;
case $numrows<=25:
$traff='Should be here somewhere...'
break;
case $numrows<=50:
$traff='a little too many...'
break;
case $numrows>51:
$traff='Whoa!!!'
break;
default:
$traff='OK!'}

echo "$numrows $traff"; So I always know how many hits I get and this works except when I get no hits. The value of $numrows shows 0, but $traff shows 'Great!!'Why? Or am I doing this wrong?

View Replies !   View Related
Non Case Sensitive?
i was wondering how i would go about making something non-case sensitive i have a users column in a database which i don't want to be case sensitive..... becuase if people log-in and use some silly capslock it messes the whole thing up.

View Replies !   View Related
Change Case
I want to change the case of the first letter in a word. How would i do this via php? I've looked through the php manual and even searched this forum and i have come up with nothing. I'm sure there's a function.

View Replies !   View Related
$_GET And Case.
I want to allow users to get the article directly by inserting the announce
ID on the URL such
www.mysite.com?AnnID=xxx
where xxx is the code of the announce.

The problem is :
$_GET['AnnID']

if the user uses lowercase:
www.mysite.com?annid=xxx

It's there any way to get the AnnID, annid, ANNID, and so on ? without
testing everything ?

View Replies !   View Related
Using The Case Switch
What i'm looking for is an example of what a link coming from some page to a form page holding a variable that i can use in a switch function after the form is submitted would look like. The action on the form takes me to a script where i will need this variable.

switch ($var)
{
case "1"
use this $var1; //came from this page
break;
case "2"
use this $var2; //came from this page
default:
print "error";
}

View Replies !   View Related
PHP Case Sensitive
How to set the case sensitive problem in PHP? for example, the data already have jim (j in small capital letter), we cannot have another Jim (J in big capital letter) so that no duplicate data can be created, any idea? I want to detect the J to be same as j.

View Replies !   View Related
Case And Break
can someone give me a brief explanation or code example of what case and break do in php? and what about classes?

View Replies !   View Related
Title Case
I haven't found a way to set title case in PHP... IE:

test tItle => Test Title

Is there a way to achieve this?

View Replies !   View Related
Php Case Switch
I'm implemening an update profile section on my site and I'd like to use switch/case method. e.g. page.com?update=success or page.com?update=failure, when I use the $_GET['update'] it works fine, however what of someone changes the url manually to .com?update=somethingelse ?

How can I stop people getting access to other pages/cases manually.

View Replies !   View Related
Changing The Case
I wrote my whole code using lowercase image names and saved my images as uppercase. The problem now is that I have many, many image files that won't be viewed because my server is searching for the lowercase version of the files (which do not exist). I'm not too competent on directories in php, I just know enough to make simple scripts. Can anyone show me a way to set all the file names of a directory into an array, or if you are willing, to do that and change them to lowercase?

View Replies !   View Related
Case Sensitiviness
Is there a way to make some functions work ignoring the case? For example, strsubst

I have doxygen in two computers, one linux and the other WNT, both with php and apache. Doxygen search engine uses a php scritp to do the work, but the extrange thing is that in the linux one the search is case sensitive and in the wnt is case insensitive. I wonder if there are some configuration for php to change the behaviour of the comparisons
of strings.

View Replies !   View Related
Case Sensitivity In Php
links to sources of info as well as answers if ya know nethin. at the moment im workin on a site where people log in, and then the code does all sorts of things based on the username dragged out of their username cookie. now thats all very well n good, but ive recently noticed that my logins are case insensitive.

Ie- if someone logs in as eternity instead of Eternity, it sets the cookie eternity with a small e. The major problem with this of course is that on other occasions php IS case sensitive. so when I tell it to create a folder named $Username on the ftp, and then go back logged in as the same $username but with a small u, it doesnt recognise the folder exists, n all sorts of problems come about.

View Replies !   View Related
Mysql IF Or CASE
I am trying to figure out if i can use the mysql control structures in this way. Code:

View Replies !   View Related
Upper Case
I need to be able to detect if a name already starts with a capital letter and if it's not all caps. Code:

View Replies !   View Related
Pagination In Case?
After reading and trying out a few of these pagination solutions from here, I'm still not having any luck getting things to work within a case statement. No chance to change it now to anything else.

My exact problem is that clicking on any linked page takes me to the main page ($PHP_SELF) and not from within the case itself (case 'Search By Address'). I am not sure how to do this and stay within the case.

Also, in most of the examples I've seen I have no idea what variables '$search' or '$result' refer to - where are they previously declared? Code:

View Replies !   View Related
Prope Case
Is there a Proper Case function in php? I've looked at the manual and found strtoupper, strtolower but no proper case one. Is there one?

View Replies !   View Related
Checking For Case
i was wondering if there is a php function or way that will allow me to check for the case of a letter of a string...

i am hoping for something like:
$string = 'Test'
if ( isuppercase($string{3}) ) { TRUE } else { FALSE }
which would return FALSE for $string{3} and TRUE for $string{0}

I have written this: Code:

View Replies !   View Related
Switch Case
I have a switch statement and its probably not possible to do what I want to do but I thought I'd ask. I have 2 similar cases (date and datetime) so if its date or datetime I want to show the date, then after that only put the time if its datetime. Now if I wanted the time to go first.

View Replies !   View Related
CASE Statement
select artist,disc_title,disc_catno,label_name,CASE qty WHEN ISNULL(qty)=1 THEN &#391;' ELSE qty END CASE ,format,disc_seq from cd_data d, cd_label l, cd_artis a where d.disc_label = l.label_no and d.artist_no = a.artist_no and d.artist_no =237 order by 1,2

Format from MySQL 5.0 Reference Manual

CASE case_value
WHEN when_value THEN statement_list
[WHEN when_value THEN statement_list] ...
[ELSE statement_list]
END CASE

My question: How do I change my query to match up with the reference manual format? It would sure be nice to have an example in the manual.

In the meantime I will use:

select artist,disc_title,disc_catno,label_name,
IF (ISNULL(qty)=1,&#390;',qty),

View Replies !   View Related
Case Insensitive
$temp=explode("<div>",$buffer);

and

$temp=explode("<DIV>",$buffer);

notes the <div> and <DIV> how can i make those case insentitive...surely i could use the case insensitive in string comparison or position function rite?

View Replies !   View Related
Case Sensitive
I need to know how to control the case sensitive in mysql query. I have a record in the table which is in uppercase. For eg. this is a sample records "TESTDATA". If someone searches for "testdata" the query should return 0 rows. But here it is returning the row. I want to know how to use the case sensitivity here.

View Replies !   View Related
How To Set Defuault Value In This Case?
For example, for cars site. 2 tables, cars and cars_owners. in cars table, there is a field called carsOwnersID to link the car to its owner. Here is the problem. Not every car listed at this site has to have an owner in this project. So for cars doesn't have the cars owner assigned. How do you set up the carsOwnersID?

I used two approaches before.

1) Create a default record for cars_owners. And every car doesn't have a owner will be assigned the default reocrd as the owner.

2) Set up the carsOwnersID as 0 if the car has no owners, and due to the regualar carsOwenersID will be 1 or up, so if the carsOwnersID is 0, we know the car was not assigned any owners.

This is just example. It could be pets, pet_owners, students, advisors etc.

And both approach has its good or bad points. I have used both base on the projects requirments.

I am trying to see if I can pick 1 of these 2 approaches as my first choice in the future. If I don't have absolute reason, I will stick with the chosed approach. Seems 2) makse more database sense. But in many case, 1) is simple and direct.

Specially for a team project, we need to have a clear standard about which approach we will take.

View Replies !   View Related
Problem With Switch/case, Want It Instead Of If
I have this code that fetches a nationID from my table.
Depending on what ID it is... it displays a country flag.

View Replies !   View Related
Switch And Case Problem
Can anyone give me a helping hand with this code

I want the script to verify a username and password using a switch and case statement.

if the username and password is matched I want to move on to the next section of the site. If there is no match I want it to ask for the username and password again.


The trouble is Im not getting the desired results with the switch and case


<?php
echo "
<html><head><title>Aventis</title></head>
<body>";
require "./config.inc.php";
$db_connect = mysql_connect ($host,$user,$passwd);
mysql_select_db($database, $db_connect);
$failure=0;
if ( $rep_name )
{
switch ($page) {
case "login":
$result=mysql_query("select * from rep where rep_name='$rep_name'",$db_connect) or die ("cant do it");
while ($row=mysql_fetch_array($result)) {
if ($row["rep_passwd"] != $rep_passwd) {
$failure = 1; break;
echo "successful login";
}
//default:
//echo "Wrong username";
//break;
}}
if ($failure == 1)
{ echo "Wrong details"; }
else { echo"
<form method='post' action='$PHP_SELF?page=login'>
Username: <input type='text' name='rep_name'><br>
Password: <input type='password' name='rep_passwd'><br>
<input type='submit' value='Submit'>
";
}
echo "
</body>
</html>";
?>

View Replies !   View Related
Case Sensitivity - Mysql_fetch_array()
I'm retrieving some results from a mysql database and i'm using mysql_fetch_array() everything works fine..

Apart from the results are not case sensitive, i've checked the database using phpMyAdmin and the values stored ARE case sensitive what am i doing wrong?

here's a peice of code as an example

<?
$sql = "SELECT * FROM table ORDER BY signup_date DESC LIMIT 5";
$result = mysql_query($sql) or die ("ERROR: ".mysql_error()." with query: $sql");
while($row = mysql_fetch_array($result)){
echo "<tr>
<td class='profile_name'>
<p><a href='user-profile.php?username=$row[username]'>$row[username]</a></p>
</td>";
// Format date
$signup_date = date('d-m-y', strtotime($row[signup_date]));
echo "<td class='signup_date'>
<p>$signup_date</p>
</td>
</tr>";
}
?>

View Replies !   View Related

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