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.





Email Forms Without MAIL( ) Function.


Several servers I have had my site hosted on took care of the technical details of email form submitting; I simply set the ACTION="http://MySite.MyDomain.Com". Now, my current host seems not to do this, or anything remotely like this. I have tried about 6 or 7 php scripts for email forms to no success, only error messages or nothing at all.

I have read what I can find on this site here, as well as the About.com php tutorials and whatever else I can find. I think there is more I need to know about the server-side of things, such as where is the CGI-BIN directory, if there is one and if I need to use it; and also, Do I really need a Database and Tables just to send a simple form to email?.

My host server claims to support php, and also I have available to me a php/MyAdmin/MySQL area, but I don't know how to use this. My host also has the Mail() function disabled to deter spammers apparently, and it seems to be this function which all the scripts I can find are using. How then, without using this Mail() function, can I have my contact form submitted and emailed to me?




View Complete Forum Thread with Replies
Sponsored Links:

Related Messages:
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 !   View Related
PHP Mail() Function To Send Results Of HTML Forms
I am using the PHP mail() function to send me the results of HTML forms. However when I receive the data by email, it always says it is from the web server domain name. How do I make the email look as though it has come FROM me at my address?

View Replies !   View Related
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 !   View Related
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 !   View Related
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 !   View Related
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 !   View Related
Using The Mail Function To Email The Data.
customers add items to their cart, then they fill out their customer info into a form. I'm using the mail function to email the data. Is there a

$message = '
First Name: ' . $firstName . '
Last Name: ' . $lastName . '
'

is there a way to use this while statement within a mail message?

while($row = odbc_fetch_array($result))
{echo $row["MaterialListID"];}

how to do it?

View Replies !   View Related
Use The Mail Function To Send Email.
I am trying to use the mail function to send email. My ISP requires authentication. What do I need to add to the mail function to make it work.

mail($to, $subject, $msg, $mailheaders);

View Replies !   View Related
Sending Email - Php's Mail Function
I tried sending mail with php's mail function and i filled in the From: option in for the header but when ever i send an email to gmail and im assuming other webbased email its blocked by the email or is put in the spam folder does anyone know how to make it so emails are sent to the inbox?

View Replies !   View Related
Send A Email With PHP's Mail Function
i'm trying to send a email with PHP's mail function. I try to modify it so it sends the email with a high priority so Code:

View Replies !   View Related
Use The Mail() Function To Send An Email Using PHP.
I have recently run into many problems with multiple hosts attempting to use the mail() function to send an email using PHP. Many hosts are now blocking this method as it is often used to spam. Is there another way I can send mail in my scripts that will be able to be used in a variety of circumstances with a large audience.

View Replies !   View Related
Sending Mass Email Fom Php Using Mail Function
I have to send more than 100s of email using a php code if i use mail
function whether it will be sent to spam or inbox. If it is sent to
spam which is the other way to send mass email from php. i have tried
to sent email to 4 to 5 email ids it is going for inbox only but i
have a doubt if i send it to more than 100 email id it may go for spam

View Replies !   View Related
Sending HTML Email Using The PHP Mail Function
I am encountering a very strange problem when sending HTML email using the PHP Mail Function. Each email that goes out has a "! " inserted into the body of the message... I have checked the body code and it is definitely not in there...

View Replies !   View Related
Mail Function, Will Not Work If The Email Is Coming From Nobody.
I have set up a feedback form that emails the results. my web host says
it will not work if the email is coming from nobody.

View Replies !   View Related
Send A Simple Email Using The Mail() Function.
I am trying to send a simple email using the mail() function.

But I get a weird error:
Error 2 ErrorMsg : mail() [function.mail]: Unable to send message to SMTP server. No recipients specified. ite. ice ready. mail not sent

my code:
mail("jrestiva@gmail.com","test subject","test message","FROM: jrestiva@bsu.edu")

I'm thinking I might have to change my php.ini file? or my server isn't set up right?

View Replies !   View Related
Sending Email - Mail() Function Or Phpmailer
sending email in hebrew using either the mail() function or phpmailer will result in sending gibberish. how do I fix this?

I tried setting the headers to support UTF-8 and windows-1255 and nothing worked. the encoding of the document im sending the email from is ANSI. how do I fix this? I also tried converting the string to utf8 using utf8_encode.

View Replies !   View Related
Use The Function Mail() To Send Email Purpose
I am new to PHP. BTW i want to use the function mail() to send email purpose, but when i try my own Yahoo mail and Gmail, i don't receive any message however when i sent to my own website domain email, it works.

<?php
mail($email_address, $subject, $message);
?>

View Replies !   View Related
Specify The Sender Email Address In Mail Function.
i can i specify the sender email address in mail function.

View Replies !   View Related
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 !   View Related
Mail() Function Not Working With Sender's Hotmail Email
i have this mail() function which works fine but i've tested it with
hotmail where i use hotmail email address for sender and receiver also
hotmail. If I type in a not existent email address for sender and a
right address for receiver, the email is not sent. But if I use
non-existent email and yahoo receiver email, then the mail is delivered
correctly. What's with hotmail? Is there something I can do to prevent
it with mail() function, or extra headers? or is it simply something to
do at the hotmail's end?


View Replies !   View Related
$msg(body Text Of Email) Variable In The Mail Function.
I have a question about the $msg(body text of email) variable in the mail function.
Is it possible to place logic in this variable? I have form that uploads 4 or so pictures and stores them in a database. After the upload the database prints the form data. btw, i am just storing the URL's in the database not the actual images.

Therefore the files show up as URL's to where the images are kept. Sometimes there may only be 1 file uploaded. When I print the record to the browser from the database I have added if/else statments like this: Code:

View Replies !   View Related
Mail Function :: Execute Script In Body Of Email
I want to execute php script in the body of an email.. Is there any specific content type to be include in header ?

like..

include "www.xyz.com";  >> i want this line to be executed inside email
$headers  = 'MIME-Version: 1.0' . "";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "";

mail("asd@asd.com",$subject,$body,$headers);

-----------------------------------------------------------------------------
I tried ..
$body = "include "www.xyz.com";" ;
But it displays........ include "www.xyz.com" ; .......inside the mail

View Replies !   View Related
Sending Php/html Document As An Email Using Php Mail() Function
I need to send the following code in an email ... but its a mix of php and html, and it retrieves various values from a database before sending...oh and i wouldnt mind the sending of the mail to be done on a button click!;)...anyways i have messed and messed but i aint too sure whether it can be done! Can someone please tell me the code and where i need to place it within my code? .....

View Replies !   View Related
MAIL() Function To Send An Email When Users Register
I have created a registration page for my site, and once the information provided is validated OK, the script inserts all the data on to MYSQL and after that it sends a Welcome Email to the user.

My problem is that the user has to wait sometimes few minutes, with the form on front of then while  the script is sending the mail.

My questions are:

1) Is there a way to "pipe/delegate" the email job to another script while freeing the form web page, as in the Process Flow:

Form Completed ------(3 seconds)----> New page "welcome to the Club" --( fork another script)---(1 to 4 minutes)----> Send Welcome email to the user

2) While the email is being sent, the form page refreshed to a "Waiting Bar.GIF" and when the email is sent it refreshed to a new page like: "welcome Html Page"?

View Replies !   View Related
Mail() Function - Using The Mail() Function To Send Emails To Members Of A Website
I am using the mail() function to send emails to members of a website. For some reason when I include words such as "free" or "winner" the mail does not send to any of the addresses - it just seems to disappear in space. I figured this out by trial and error - once I removed those words, it worked. I am running cPanel on the server and have no problem sending emails as long as they don't use those words. It seems to be blocking certain words - ones that I assume spammers would use.

View Replies !   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
Forms, Email And SQL
I'm the process of building a form to input data to a MySQL DB with php and also wanting to have the input fields be emailed to 2 different addresses.

View Replies !   View Related
Forms + Email()
it has been a while since integrating php and forms. So, I have two questions. Can you specifiy the SMTP that mail() uses? How do you send the values to the php file?

IE mail.php?value=)

View Replies !   View Related
Email Forms
I have tried 2 different free open source php based email forms and I couldn't get either to work, first i tried formtoemail and then BELLmailer, both forms would look as if they worked but the email would not be sent to my email address, please can somebody have a look at my files and tell me what i need to change or change it for me and tell me what is was u changed.

View Replies !   View Related
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 !   View Related
HTML Forms In Email
I am sending information in a HTML form via emial, along with the
information is a conformation button that the user can click if they
wish to accept the job. On clicking this message i want another mil to
be sent out, however the button that is integrated in the email isn't
working.

Is this possible?
the code for the action of the form is blow..

<?php
$headers .= "MIME-Version: 1.0";
$headers .= "Content-Type: text/html; charset=ISO-8859-1";
$message = "<html><body>";
$message .= "<h1> TEST </h1>";
$message .= "</body></html>";
mail(someone@local.co.uk, "Complete", "$textfield2, $message", $headers);
?>

View Replies !   View Related
Forms Sessions Email
here is the set up.
7 page form all get set to sessions
8th page sessions are called and results displayed for user to see
this is the php script for page 8
<?
ksort($_SESSION);
foreach ($_SESSION as $page=>$_POST)
{
echo "<div class="h3">$page</div><br>";
foreach ($_POST as $field=>$value)
{
echo "$field: $value<br>";
}
}
?>

now i would like for the user to press a submit link/button and the
results sent to an email address. i know how to set up basic feedback
forms and have them emailed to me but not really sure where to go from
here once i ve called the sessions to recall them on another page..

View Replies !   View Related
HTML/PHP Email Forms
I have recently had some trouble with recieving forms sent via html and php. I know that the code is correct, but I have heard that companies like aol and yahoo have problems recieving forms. Anyone know of any goo email companies that recieve html and php forms well?

View Replies !   View Related
Basic Email From Forms
I have put together a very simple e-mail form that, until now, worked flawlessly. I have four computers in my office, three running Internet Explorer 6.0 and one Mac running Safari. I when sending the form, one of the PC's will not send the e-mail or give an error.

I asked a friend to try it from their computer and the same thing happened, one worked fine and the other didn't. Are there any browser settings or headers I need to add/change to ensure this form will e-mail from most browsers?

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
Exploiting Mail() Forms
I have several sites with very normal looking contact us forms on them. Fill them out, and the content is mailed to the Web site owner using the mail() function. In recent months, however, these forms have been exploited. It is unclear if they are being used to send SPAM or if this only is the intent, but I occasionally will get three or four contact forms in a row that clearly are being hit by some script.

These emails came across with some fields blank. So I required all fields.

The emails had random characters typed in, so I required that the email address be authentic. The emails send a reply to the person completing the form. The reply comes from my address. However, now I'm getting the replies with my address in the TO address and the FROM address.

So, I started getting the IP Address of the sender, requiring it, and putting that at the bottom of the emails. I try it, and it works. When these SPAMMING scripts hit it, the email that comes to me has MY EMAIL ADDRESS where the IP address is supposed to be.

All of my headers end with
. And yet I'm still getting these scripted replies. I changed the file names in case they were coded in some place, and I even took the contact us form off the menu, leaving it as a link inside one page. No luck. They're still coming.

My code that prepares and sends the mail is below....

View Replies !   View Related
Use Php To Mail Forms On My Website
I am trying to use php to mail forms on my website. when i click the send button i get a message saying that my information has been sent but i do not receive any emails. My form has two parts, one called contact.html and another called contact.php. I am new to web programming and could use any suggestions that you might have. Code:

View Replies !   View Related
Mail Forms Being Exploited?
I have a couple of HTML forms on my web site (nothing much, just 4 fields, 3 text and 1 drop down). The results are emailed to my address when someone fills and submits. I have a JavaScript validation in place which is working fine.

The email script is very simple and uses the PHP mail() function. I perform a HTTP_REFERER check as well as a check for the correct email format [both employ ereg()]. If everything is correct (i.e. the HTTP_REFERER has my domain name "www.mydomain.com") and passes server-side validation, an email is sent to me and the visitor is sent back to the page he/she was viewing. Code:

View Replies !   View Related
Line Breaks In Php Email Forms
my email form works great, but when I get the data in the email it's not double spaced and I want there to be room between each thing of data. This is what it looks like now:

Name:
Email:

And I want it to look like this:

Name:

Email:

When I open up my email so that my data doesn't look so clustered. How do I do this?

View Replies !   View Related
Email Forms - Blocking Spammers
I have a couple of email forms I have created that use PHP to email the
collected data to the appropriate recipient.

A concern has been raised by clients about the form being hacked by
spammers.

Is this likely to be a problem? If so what is the best way to stop it
happening. All I can think of is to maintain a log of, say, users ip
addresses and use this the limit the frequency with which the form can be
used.

View Replies !   View Related
Setting Up Forms To Email Info
I have a site with a form which I would like people to input their name,email address and comments. At the moment I have it mailed to me in code which I have to run through a form reader and the user must use their own email client to send it.

How can I make it so that info can be sent seperate from the user's email and I can recieve it in a legible email? I presume I have to use PHP (which my server supports) but I am totally new to the whole thing.

View Replies !   View Related
Sending Forms Via HTML Email
How do I sent content of a PHP form via HTML email?

For example, fields $name, $city, $state, $phone, $location

to HTML:

<p>Congratulations $name from $city, $state with the phone # $phone .
You now get an expense paid trip to $location .

And that HTML outputted in email..so someone checks their email,they
have an HTMl certificate generated from a form in PHP.

View Replies !   View Related
Submitting Forms Through HTML E-mail
1. I want to e-mail an questionnaire to all my (50) clients.
2. They will fill up the form and click on Submit button.
3. I want to store the responses in the mysql table along with the respective e-mail addresses from which it was generated.

I don't know how to start because I am too new to
1. HTML e-mail messages
2. Submitting data to MySql from e-mail client (and not from regular website)

I want to avoid login, password based submission because the clients are too new to the web and they don't have much time. The whole process should be completed in a few clicks and in minimum time.

View Replies !   View Related
Email Forms - Put As Many Fields Without Having To Change The Php Page
I have a php form emailer that simply emails the website owner and also the customer when they fill in the form. at the moment I have to specify what all the fields are named in the form for it to be send off. I want to be able to put in as many fields as I like without having to change the php page as well as the html form. PHP Code:

View Replies !   View Related
Question About Blocking Email Addresses In Forms
I am wondering if there is a way to block out email addresses in specific
format from a form? We ahve a form that people have to enter an email
address, and the form has been getting used by bots to send spam to a
listserv. The email address they enter is in this type of format
gfjh...@jhgfghjk.com, and of course it is always just a bit different every...

View Replies !   View Related
Validating Forms - User Submitted A URL Instead Of An Email
I have been validating the forms all around my website recently as I have been learning PHP and one thing I don't know is how to propperly validate to specific things. For example, I've set up my forms so they can't be submitted with certain or no data. However, how do I set it so they can't be submitted if they contain certain characters or vise versa. For example: Say the user submitted a URL instead of an email, then there would be an error because there was no '@' character used.

View Replies !   View Related
How Do I Add PHP To The Web Pages So That Visitors To The Site Can E-mail The Forms To Me.
I have several forms on my web site. Without telling subscribers, my ISP disabled CGI Script. Now I can't get the forms mailed to me. The forms are already designed. How do I add PHP to the web pages so that visitors to the site can e-mail the forms to me.

View Replies !   View Related
Use The Mail() Function: Warning: Mail() [function.mail]:
I am trying to use the mail() function. I've got my php.ini file configured to use my current smtp host (Verizon) and I get this error:

Warning: mail() [function.mail]: Failed to connect to mailserver at "outgoing.verizon.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:www est.php on line 39

So I'm asking two things.
1) How can I make this work with out using Verizon's SMTP server? The server I am using for this website is a Windows XP machine with Apache as the webserver.
2) Once I have an alternative smtp server option, what is it I need to do to set it up properly?

I need an alternative smtp server because this machine is just a development machine at my house, while the file site is in a colo and isn't connect to verizion or anyone else with a smtp server.

View Replies !   View Related
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 !   View Related
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 !   View Related
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 !   View Related
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 !   View Related

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