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.





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

Related Forum Messages:
Simply Send An Email When A User Registers
i m trying to simply send an email when a user registers, and
i used the mail function and i got the error "Warning: mail(): SMTP
server response: 550 5.7.1 Unable to relay for m@hotmail.com in
C:Extrndxmail.php on line 2" and i have no clue what is wrong?


View Replies !
Send A Conf Email When A User Registers
I am working my way through a php book and am trying to send a conf email when a user registers but I am getting this error message when I submit the information Warning:

"Failed to connect to mailserver, verify your "SMTP" setting in php.ini in"

I have downloaded QK SMTP server and added Stephen 00 as a user. I am using phpdev. Code:

View Replies !
Create A Simple Email Form Where It Automatically Sends A Quick Message
I'm trying to create a simple email form where it automatically sends a quick message a user inputs to a hardcoded email address. the form i use looks like this: Code:

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 !
Sends The User An Activation Code.
My join form (which I'm guessing you're all farmiliar with now) now sends the user an activation code.

This, when clicked sets the activation column on the table from 0 to 1. This bit works fine, however, when I get to logging in, obviously you don't want someone logging in you isn't activated, so I've used an IF statement as below: Code:

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 !
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 !
Radio Buttons Checked And Sends The User To The Corrisponding Page.
I used a radio button as a form of navigation. Here is what I am doing. Main page, the user selects a radio button and clicks next button. On next, php examins the button checked and sends the user to the corrisponding page.

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 !
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 !
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 !
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 !
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 !
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 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 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 !
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 !
Message Box To Warn User
I have a modify button on my page. The user can make changes on the page and click on "modify" to save changes in the database. When the user clicks the button I want a message box to appear saying " this will change data in the database. Do you want to go ahead?" with 'yes' 'no' options

View Replies !
Php User Error Message System
I was wondering if anyone has come across a tutorial or can give me some ideas on how to set up an effective error handling system.  I currently pass the error message through the url and get the message to display on the page.

View Replies !
Mail() - Message Len
Is there a length limit to the $message parm in the mail() func ?
I am doing a customer survey, with several multiline text boxes and my php code hangs when i have a couple of long comments in there. I have tried wordwrap and chunk_split, but they didn't seem to help. Any ideas?

View Replies !
Mail(): $message =
unsing the mail() function, I want my message to appear somewhat like this:

Hi myFriend,
thanks for coming to my site. This is what I remember of you:
group: (a var)
os: (b var)
Regards, best wishes,
Me

How do I manage to get the line breaks, and insert the vars using
[php]
$message = "Hello myFriend.....";
[/b]

Do I remove the inverted commas whenever I put a var?(for example $group).

View Replies !
Message From Mail
It's very random but sometimes the mail that comes into my inbox is cutoff at seemingly random character count. *Most* of the time the complete email comes through just fine. But occasionally the message just abruptly stop after 20 or 50 or 200 or whatever characters.

How do even troubleshoot this? There aren't any errors in the server logs.

View Replies !
TXT Message With PHP Mail()
I know its possibly and easy to send TXT messages using 1234567890@vtext.com (for Verizon anyway). The problem is that when it comes in, the "Reply-To" address is a mess. It's assigned by my server, and I can't see to change it. This is what I've tried so far:
PHP Code:

mail("1234567890@vtext.com,","testing","hello there!","Return-Path: pics@blazinraisin.com
Reply-To: pics@blazinraisin.com From: pics@blazinraisin.com")

View Replies !
Extra In The Mail Message
i use php to process mail form. Mail was sent successfully. but in the message isn't that cool? becomes isn't that cool? there's an extra slash. is there a way to fix this?
also when we check and validate the user input from the mail form, is it better to do it on the server side or client side? i.e using javascrip or php?

View Replies !
Mail Warning Message
I created this script as part of my login system. In case someone forgets their password. I keep on getting the message below any ideas why?

Warning: mail() expects parameter 3 to be string, resource given in /home/paul161/public_html/forgot.php on line 36 An email containing the password has been sent to you

<?PHP

//Database Information

$dbhost = "localhost";
$dbname = "dbname";
$dbuser = "username";
$dbpass = "password";

//Connect to database

..................................

View Replies !
Mail Error Message
Im getting an error message as follows:

Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for tez@mindseyemidlands.co.uk in C:Program FilesApache GroupApache2htdocsitlehelp.php on line 16

Something went wrong try again or contact the system administrator. Code:

View Replies !
My Code Registers Blank Records
When i submit the registration details only 2 variables submit to the database... that is IP and gender. The others come out as blank but it does insert... heres my code:

View Replies !
Multiple Message Lines In PHP Mail
I have a submission form for one of my sites, where artists can basically e-mail me all this information about their comic so I can look it over. Code:

View Replies !
Can Mail() Return Error Message?
Hi, I have a question about the php mail() function. For example:

$to = "ajdkfasff1256853@lalala.com";
$subject = "Hello";
$message = "Hi";
$from = "yumish@yahoo.com";
$headers = 'MIME-Version: 1.0' . "";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "";
$headers .= 'From: ' . $from . "";
mail($to, $subject, $message, $headers);

In this case, the email address of the recipient is invalid. Will the sender get an error message about that invalid recipient email address?

If yes, how?

View Replies !
Return Error Message With Mail()?
Is there a way to get the mail() function to return an error if it fails? I'm not talking about an "if" statement where you make up a message, I mean have mail() tell you what was wrong.

I have a hard time getting a mail script to work. I have a system where I can select a bunch of users, write an email, and the program sends the emails and tells me which ones were sent (mail() returned true) and which ones failed (mail() returned false). Right now, they all return false.

View Replies !
Message Sent With Mail() Caught As Spam
I have tried sending emails with the mail function. However, those
emails ended up being caught as spam on yahoo and hotmail. But it is
find with gmail. What should I do with this?

View Replies !
Insert Link In A Mail Message
I have this problem. I created a script to send newsletters by email, but
whenever I write a link in the text of the message, it is non clickable
when it arrives to the user, say, www.mydomain.com, but if I write <a
href="www.mydomain.com">My Url</ait works fine.

Now, I friend of mine has told me that with his old site, developed in
ASP, he only had to write the link, without any tag, and when the message
arrived, every link was clickable.

View Replies !
Error: It Was Not Possible To Send E-mail Message
Following is the function in my PHP script to send the emails. My current PHP version is 4.4.6 when ever I tried to send a email I am getting the "Error: it was not possible to send e-mail message" Code:

View Replies !
Mail() Sending Blank Message?
I'm running PHP 4.3.8 on a Windows XP box. I can sucessfully send myself HTML emails using the code below... ($message is a load of HTML script)

$headers = "";
$headers .= "MIME-Version: 1.0";
$headers .= "Content-Type: text/html; charset=ISO 8859-1";
$headers .= "From: test@example.co.uk<test@example.co.uk>";
mail( "test@example.co.uk", "Order Confirmation",$message, $headers );

But when I try to get clever with the headers to give a text alternative to HTML all I get is an email with a blank message, any idea why... Code:

View Replies !
Mail() With Values From A Formatted Array() In The Message
I am trying to send an email using mail(), but I want this to be in the message:

View Replies !
Mail() Is Not Leaving Data Out Of The Message Section.
I just setup a script which takes 118 form entries from the user and emails the results of the questionnare to the site owner.
When the email is recieved on the other end, only questions 1-93 are included.

At first I thought it may be something with my script, but then I noticed that all 118 questions and responses are being echoed perfectly back to the user on the "confirmation page".

Does anyone know why the data is be truncated in the email? code...

View Replies !
Parse PHP File And Insert Into Mail Message?
I'm tryng to send email containing nicely HTML formatted data submitted by a user. What I'm trying to do is access a 'template' file with the HTML formatting that echos user variables inside the HTML. What I need to do is read and evaluate that fle, and then use it in the body portion of mail(). The first thing I though to do was something like

$body = include("html_page.php");
mail(me@here.com, "nicely formatted page", $body);

which obviously doesn't work, but it gives you an idea of what i'm trying to accomplish. How can I evaluate a file and then load it into a variable? Sorry if I'm overlooking something obvious, I haven't been at this very long!

View Replies !
Checking The 'message' Parameter Of The Mail Function
I would imagine it is a fairly common situation for a site to allow the
user to enter some text into a field and then to have that text passed
to the 'message' parameter of the mail function
(http://us4.php.net/manual/en/function.mail.php).

Is it a good idea to pass this text through some other function first or
can it be sent through as is? Is this a case where the maxim 'do not
trust input from the user' does not apply?

View Replies !
Multi-Part E-mail Message Error
I followed a tutorial and attempted to send a multi-part message out to my members e-mail addresses which are kept in a database, however everyone on the list just receives a blank e-mail with an attachment. Code:

View Replies !
Using GREP To Display The Subject Of A Mail Message
Okay, I've been looking around trying to find a way to do this, and I can't figure it out so far. I'm still a real novice at PHP coding, and I'm pretty much stuck at this point. I have a PHP file that will automatically parse a directory listing for any given directory into a nice and pretty format, but what I'm using it for requires some additional functionality that I can't quite figure out.

I want to list the contents of the mail folders on a linux system (no problem with that part), but I want the page to display the subject of the mail files rather than the actual file names. It will also need to display the "from" information from the mail message. The only way that I can think to do this is using the Unix GREP command. I've found ways to make the PHP code actually GREP the file, but I can't figure out how to actually show exactly what I want.

The basic functionality of the page is like this at the moment:
$arsize = sizeof($files);
for($i=0;$i<$arsize;$i++) {
if (strrpos($files[$i], '.'))
($ext = strtolower(substr($files[$i], strrpos($files[$i], '.')+1)));
else ($ext = '');

if($filetypes[$ext]) {
$icon = $filetypes[$ext];
}

$filename = $files[$i];
if(strlen($filename)>43) {
$filename = substr($files[$i], 0, 40) . '...'
}

$fileurl = $leadon . $files[$i];
if($forcedownloads) {
$fileurl = $_SESSION['PHP_SELF'] . '?dir=' . urlencode($leadon) . '&download=' . urlencode($files[$i]);
}
?>
<tr class="<?=$class;?>" id="listing">
<td width="24" align="center" valign="middle">
<input type="checkbox" />
</td>
<td width="16" align="center" valign="middle">
<a href="<?=$fileurl;?>"><img src="dlf/<?=$icon;?>" alt="<?=$files[$i];?>" /></a>
</td>
<td width="300" align="left" valign="middle">
<a href="<?=$fileurl;?>"><strong><?=$filename;?></strong></a>
</td>
<td width="170" align="right" valign="middle">
<em><?=round(filesize($leadon.$files[$i])/1024);?>KB</em>
</td>
<td width="250" align="right" valign="middle">
<?=date ("M d Y h:i:s A", filemtime($leadon.$files[$i]));?>
</td>
</tr>

I'm thinking I should be able to use some code to GREP the actual files to find the literal string "Subject:", but then I'm not sure how to actually pull what should BE the subject into a variable to display. I found the following code floating around on the Net for doing the GREP (although I'm not entirely sure I understand it all, but I'm gonna do some research on that part in a bit):

$handle = popen('grep --max-count=1 Subject: /path/to/file.txt', 'r');
$output = fread($handle, 2096);
pclose($handle);

I figure I can use this to find the line where the subject of the message is, so the trick becomes how to get that subject setup into a variable for display in the table. Then, of course, I'm going to need to do the same basic thing for the "From:" part of the message as well.

View Replies !
Return An Error Message To The User, So That He Know He Had Uploaded A File Which Exceed The Limit?
I have modified the php.ini and set the upload_max_filesize to 10M.
If a user upload a file exceed 10M, the browser simply return an blank screen.

Is there any method the php can return an error message to the user, so that he know he had uploaded a file which exceed the limit?

View Replies !
Send Mail In Php For Jpanese Data In Subject And Body Message.
I have written a small script to send mail in php for jpanese data in subject and body message. But when the mail is viewed in Outlook/Microsoft outlook express headeres are appeared in mail body,even if i have not set any headers in code.

View Replies !
Setup A Proper HTML Mail Message With Embedded Href Links
How may I setup a proper HTML mail message with embedded href links
using PHP, that follows all the MIME rules?

View Replies !
Use The Mail Function The Message Takes One Hour To Arrive - Time Zone Wait Period Issue
When I use the mail function the message takes one hour to arrive. I
found that if I turn my clock forward one hour (to match the time on the
server) the message arrives quickly. The server is located in a
different time zone, actually one hour different. So it seems like, if
the time zone of the server and the time zone of the client are
different there is a wait period. Anyone know how to get around this?

View Replies !
Automatically Open Default Mail Program And Insert The Current Page Of Browser As The Body Of The Message.
On my website I would like the facility to click on an image or text that will automatically open up their default mail program and insert the current page on their browser as the body of the message.

I realise that most browsers will have this facility already but I would like to add my own method. Problem is, I have no idea on how to achieve this. I'm sure it can't be that difficult though. It maybe can be done just using HTML, I don't know.

View Replies !
Mail Server - Use My Page Login For The Mail Login User Is Stored In $_SESSION
I have a problem and no time to google it and i hope someone will guide me. I have a linux server (slack10) php/mysql and a website where you can create accounts and login.

i need to install a mail server with a web interface, i need to have a script that creates automaticly an email account when my page creates an account and a way to use my page login for the mail login user is stored in $_SESSION and the mail will be shown in iframe any sugestions?

View Replies !
Problems With Post/get - While Global-Registers Are "on"!
Got a simple form:

<form action="auswertung.php" method="get">
Ihr Vorname:
<input type="text" name="Vorname">
<input type="submit">
</form>

but there will be no Information shown on the php-document:

<body>
<h2>Auswertung des Formulars</h2>
<p>
<?php
echo "Hallo <b>$Vorname</b>, herzlich willkommen!";
?>
</p>
</body>
</html>

it is the same after altering "get" to "post" ...
?

View Replies !
Check If A User Got Any/new Mail With PHP?
Is there any easy and quick way to check if a user got any/new mail with PHP? assuming that the user's mailbox is on the same system and the system is UNIX (Linux,BSD, etc.)

View Replies !
User E-Mail Verificatio ?
I have a social network that is pretty much complete, but I don't want people to make obscure accounts, so i was thinking e-mail verification. I have an idea on how to implement this, what do you think?

1. When a user registeres create a really long hard to guess "token" of some sort and store it in the DB

2. When they recieve the e-mail after signup, they click a link that sends them to the page with their token in the URL, and it "verfies" the account.

View Replies !

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