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:
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
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
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
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
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
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
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
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
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
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
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
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
|