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

Related Forum Messages:
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 !
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 !
Apache Sends Blank Email? - Php Email Form
I'm having some trouble with a php contact form on my site. It is based around a basic contact.php form which POSTS and redirects to a sendemail.php form with the variables. As a result, the webmaster receives 2 emails: 1 correct submission and 1 blank email from "Apache". 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 !
Using A Script That Sends A Confirmation Email
I'm using a script that sends a confirmation email to new users but while testing it i haven't received a mail yet. Is there a way to find the error? (like mysql_error() gives the error for queries).

View Replies !
Email Form Sends Before Submit
I have created a email form that gathers info from my user(student) and can send the completed email to an instructor's email. The problem I am having is it sends the email as soon as the page loads. I have tried adding an "if submit" clause, but everything goes haywire at that point. Code:

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 !
Sends Emails With An Attachment To An Email Address
I've got a script here that sends emails with an attachment to an email address that is retrieved from an html form. The email sending code is include below.

The problem: when sending the email to certain email servers, the attachment section of the email gets removed and I end up with an attachment of zero kb. Other servers do accept the attachment as expected. Code:

View Replies !
Sends The Email Successfully Even If There Is Illegal Charactors?
The remaining 2 problems are even though it validates the email address with preg_match and echos an error, it still sends the mail and it checks for invalid charactors but (you guessed it) it still send the mail.

The script works fine, it checks if email, name and subject are filled out and if not writes an advice on the page.

It also checks for illegal charactors and correctly formed email address and writes the error message correctly.

The problem is that it sends the email successfully even if there is illegal charactors and/or malformed email address, in other words it knows about the problems but doesn't prevent the email being sent. Code:

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

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

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

View Replies !
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 !
A Link In An Email That, On Click, Sends The Headerinfo To A Server
Is it posible to make a link (to a php-file on a server) in an email
that, when you click on it, sends info about who the reciver of the
email is?

Lets say I send out an email thru an alias to a group of people and I
want to give them the opportunity to sign up for an event using that
link. Those that click the link are added to a post in a database
(MySQL), eg. with their email adress, initials, name... whatever. I
guess that it would be easy if it just takes the contest of the
to-field in the emails headerinfo? If a spammer can do it, so can I :o)

And... if you have an answer please assume that I know practicly
nothing about php :o) I have made a few sites with php and MySQL, but
nothing fancy - just simple guestbooks etc.

View Replies !
Sends The Page To The Supervisor Via Email For His Authentication And Processing.
I've got a employee database that enables a 'narator' to add,delete, or edit very sensitive records. but before  it gets saved to the database it needs to be verified by the 'supervisor'. Is it possible for me to make the buttons on the employee management system that serves as a dummy and just sends the page to the supervisor via email for his authentication and processing.

View Replies !
If Something Is Entered Into The Database It Sends An Email To The Client Involved.? How To
i have a form that currently just submits the data to a myql database. i would like to add in a feature that when something is entered into the database it sends an email to the client involved.

for example when an admin enters an invoice for the client an email is automatically sent to the email in the database for that company with an update saying an invoice has been added.

View Replies !
Form To Be Placed In Each Category That Sends To The Email Address Specified In The Database
I am running a CMS system where each category represents a market place, each market place has it's own email address defined in the database. I would like a form to be placed in each category that sends to the email address specified in the database. 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 !
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 !
"send Email" Sends Symbols Instead Of Accent Marks
I've been using a simple, plain text, "Send Email" script to let me know when a new member has registered on the site.

Recently people with accent marks in their names have been registering, but in place of the accent marks I see unrecognizable symbols.

I did some googling and found out that I should add something like:
"Content-Type: text/plain;charset=utf-8" to the header. 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 !
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 !
Alter The Email Where A Email Sent From Using The Mail Function
is there any way to alter the email where a email sent from useing the mail function or any other. Lit me show a example: PHP Code:

<?php
$to = "me@yahoo.com";
$subject = "phpBuilder";
$message = "test";

mail($to,$subject,$message)

?>

When they get the email it say one email can you set it to say like Vbabiy@yahoo.com.

View Replies !
Mail() Getting An Email To Go Through
I'm messing with the mail() function trying to get some email
through.

I managed to get the email through yesterday, and perhaps
the mail server is slow delivering.

function SendSomeEmailOut() {
// bool mail ( string to, string subject, string message [, string additional_headers [, string additional_parameters]] )
$sToAddr = "someone@example.com";
$sFromAddr = "Some One Else <'someoneelse@example.com'>";
$sEmailSubject = "Sample Subject";
$sEmailBody = "Sample Body";
$yResults = mail($sToAddr, $sEmailSubject, $sEmailBody, $sFromAddr);
return($yResults);
}

$yResults always comes back as true.

View Replies !
EMAIL MAIL()
I am trying to send an email from a form I have written, and I am having nothing but troubles:- PHP Code:

View Replies !
Specifying Who The Email Is From Using Mail() - How To?
i know that you can specify the subject and message that the user sees when he/she receives an email from the mail() function. PHP Code:

View Replies !
Mail( ) Could Not Sent Email
I am developing feedback form from local machine and try to send email using
php script. My mail function runs successfully but actual email not send to
sender...

View Replies !
Sending Email Using Mail()
these are my codes:

$headers = "From: ".$_POST["fromEmail"]."";
$headers .= "CC: ".$_POST["ccEmail"]."";
$toEmail = $_POST["toEmail"];
$subEmail = $_POST["subEmail"];
$conEmail = $_POST["conEmail"];

if( mail( $toEmail, $subEmail, $conEmail, $headers ) )
echo "Mail sent";
else
echo "Mail send failure - message not sent";

when i trying sending email, it gives me this errror SMTP server response: 500 please set from & to first.

View Replies !
Email On Different Mail Servers
I am sending an email using php. This email message is in an html template (as newsletter emails are sent). All the styles (CSS) used are written inline. There are also some images used in html to set as background. The behaviour of this html, styles and images is different on gmail,yahoo and hotmail. I have been trying to fix this problem since last two weeks.

View Replies !
Mail() And Email Forwarding
I'm experiencing problems with sending mail using mail() to forwarded email accounts. The problem seems to revolve around the optional 4th argument of mail(), namely 'additional headers'.

It seems that when I populate this 4th argument of mail(), any emails sent to an email forwarding service email address (ukreg/fasthosts actually) fail to reach their destination. Direct email addresses seem to work fine.

Why is this?. Has anyone any ideas?

View Replies !
Email Mail Shots With Php
Is there a way to send out regular email newsletters with php, using the names collecting in a mysql db.

View Replies !
Email To Submitter Using Mail()
I have tried different ways to get a carbon copy sent to the person who enters their email address in my web form. I tried adding Cc: $email to the end of the mail() function:

mail("$emailaddress", "$subjectheader $subject", "$message", "From: $email
Reply-To: $email
Cc: $email");

I also tried a different approach by doing: PHP Code:

View Replies !
Mail To More Than One Email Addresses
how do I send same mail to multiple recipiants?

View Replies !
Mail() & HTML Email With Images
I've been busy with sending email by using the PHP mail() command. I tried to send a mail with HTML layout but somehow the images didn't work..

<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
<?php

$adress = 'mymail@internet.com'
$subject = 'MyMail'
$message = "<body bgcolor=#0088ff><img src="www.mydomain.com/printer.gif"><font face=arial color=white>This is <b>a</b> test</font>";
$extra = "From: "MySelf" me_and_myself@internet.comnReply-to: me_and_myself@internet.com";
//$extra .= "nReturn-Path: <me_and_myself@internet.com>";

$extra .= "nContent-Type: text/html;";

if ( ! mail ($adress,$subject,$message,$extra)) { // [, string additional_headers])
print( "Blieb! Error!" );
}

?>

Can anyone tell me what I'm doing wrong or what I'm forgetting? I know it's possible because I receive a lot of mailings with images in them (is very frustrating)

View Replies !
Sending HTML Email With Mail();
i have set up this script from other scripts but sometime it does not send any email and other times it does
with this im not shure why,i have edited other mail scripts and finaly come up with this which when it works works well.
there are two identicle mail functions there the first sends a email to the user saying thanks for registering the second sends a email to 4 admins telling them about the new user.

can you pick out why it,s not working?

View Replies !
Mail() Sending Two Copies Of Email
I have set up a the following mail() script to email a pdf file to one user.

$fp = fopen("flirbys.pdf","r");
$str = fread($fp, filesize("flirbys.pdf"));
$str = chunk_split(base64_encode($str));

$to = "user@email.com";
$user = "Joe Blow";
$email = "jblow@anywhere.com";
$subj = "Mapping and Drafting Request";

$headers = "From: $user <$email>";
$headers .= "Reply-To: $user <$email>";
$headers .= "MIME-Version: 1.0";
$headers .= "Content-Type: multipart/mixed; boundary="MIME_BOUNDRY"";
$headers .= "X-Sender: $user <$email>";
$headers .= "X-Mailer: PHP4";
$headers .= "X-Priority: 3";
$headers .= "Return-Path: <$email>";
$headers .= "This is a multi-part message in MIME format.";

$message = "--MIME_BOUNDRY";
$message .= "Content-Type: text/plain; charset="iso-8859-1"";
$message .= "Content-Transfer-Encoding: quoted-printable";
$message .= "";
// your text goes here
$message .= "Attached is a Mapping or Drafting Request. Please process as soon as possible";
$message .= "";
$message .= "--MIME_BOUNDRY";
$message .= "Content-Type: application/pdf; name="brilliant.pdf"";
$message .= "Content-disposition: attachment";
$message .= "Content-Transfer-Encoding: base64";
$message .= "";
$message .= "$str";
$message .= "";
//message ends
$message .= "--MIME_BOUNDRY--";

mail($to, $subj, $message, $headers);

It works great except the $to user gets two copies of the email. I've tried changing email addresses with no success.

View Replies !
Mail Headers Appearing In The Email
I am trying to send plain text email with the following code. PHP Code:

View Replies !
Mail() Header To Send Email
I have written a script which send an email - it works ok BUT I cannot get the header info to display in the header part of the email - it displays at the top of the message area. I am using the format - mail ($recipient,$subject ,$msg ,$mail_headers);

with $mail_headers = "From:myname@address.com<>nReply-to:myname@address.com"
The Reply_To IS showing in the header, but the From part does not. Or does anyone know anything better than mail() to send email with PHP?

View Replies !
I Cant Seem To Get Mail() To Work With Some Email Servers.
Some servers seems to be fairly inconsistent about mail(), hotmail, gmail...etc. these popular ones works fine, however, some email servers like my school email server doesnt work very well. For short messages, it sometimes receives, but not long ones, and sometimes there must be at least two receipients in the $to variable to get it delivered into my inbox, I don't understand why it is so unstable with my school mail address, can anyone give me any suggestions to get 100% delivery?

View Replies !
Mail() HTML Email Not Working
I have just signed up to a Virtual Server and I'm having issues with sending email via mail() in HTML format.  I have a simple script to test the server and it's not working correctly.  The receiving server does not understand it's an HTML email.  On another server, this script works perfectly: Code:

View Replies !
Using Mail() To Send A Simple Email
I have a form page that has a subject,message, and from text box. I want to be able to send email once the submit button is clicked. my code:

View Replies !
PHP Mail Function - Not Receiving The Email
I have a form on our website and there are 2 check boxes, there is an email address tied to each check box. Well when the one is checked and sent out, the company is not receiving the email. I have gone through code, I have talked to our host (also the site is using there...

View Replies !
Ensuring A Mail() Email Get Autoresponded
Is there a way to make sure that when a mail() email is generated, that if the receiver has an autoresponder set up, it will work?

View Replies !
Using The Mail Function To Send An Email
I'm using the mail function to send an email, but it does not use the "from" address that I specify in the last parameter, instead it uses the address set on php.ini... is there a way to specify my own address, that is, overriding the address set in PHP.INI?

View Replies !
Mail Form With Email Validation
any other simple mailform that has email and textfield validation there? i currently have a mailform that is working on php4-5 only but its not working on lower and higher version specifically with the getmxrr syntax Code:

View Replies !
Use Squirrel Mail As My Web Email Client
I want to use Squirrel Mail as my web email client. I want to customize it so that the squirrel is replaced with our logo. I assume this is done with css. I put this post here because I write in php and you folks are generally knowledgeable and can point me to the tight place.

View Replies !
What Headers To Use When Sending Email Using Mail()
Anyone want to give good examples of what headers to use when sending email using mail() so that email gets accepted from more then less people. Seems to me that headers play a large part if email is to be put in inbox instead of trash or treated as spam.

View Replies !
Mail() Function Isn't Sending The Email.
I've just built my first PHP form handler that will save the form data to a text file on my server and then email me an alert, but the Mail() function isn't sending me the email.
I have set it to send to my gmail account but I don't receive it in my inbox or spam. How can I make it email me properly?

View Replies !

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