Send Email As Html Page
i need to be able to send an email back to a person once they have completed a form in the exact format of how they filled it in. ie, as a html page with all the text they entered in the text boxes and selected checkboxes, radio buttons, etc.
the problem is the page is very big and has many fields so i was thinking, on my action page i just include a template to achieve this.....and in the template can i do this type of thing: <input type="text" name="<php echo $txtAString ?> " size="12">
//which is the name of the text box on the entry form on the previous page ...will that get the text out of the previous page and put it in with the included template?
View Complete Forum Thread with Replies
Related Forum Messages:
Send Email - Page Where You Enter An Email Address And Click Send.
I am interested in creating an "email -this" type ability for a website. I am sure most people have seen an "email -this story" type link that is standard on most news web sites. You click such a link and then it takes you to a page where you enter an email address and click send. The link for the story and the title are not editable. Does anyone know where I can find example code of how to do this with php, and any explanation of how this works.
View Replies !
Send An Email With HTML
Is it possible to send an email with some HTML code? I tried the following code, where $msg == '<html><body>... blah blab blah etc.</body></html>' : // Adresse de l'expediteur $entete = "From: $from "; // Copie du message $entete .= "Cc: $cc "; // Copie cachée $entete .= "Bcc: $bcc "; // Adresse de réponse $entete .= "Reply-To: $from "; $entete .= 'X-Mailer: PHP/' . phpversion() . ' ' // On peut ajouter ses propres en-tête $entete .= 'X-CeQueVousVoulez: Contact EASYJOKE ' // Type MIME $entete .= 'Content-Type: text/plain; charset=iso-8859-1 ' // Encodage $entete .= 'Content-Transfer-Encoding: 8bit ' mail($to, $subject, $msg, $entete);
View Replies !
Send Html Email
I am having problems with sending an html email with php. I searched through the previous threads and such here, an found this code to: "Content-Type: text/html" to place as follows: mail("$email_admin", "$emailsubject", "$mailbody", "From: $from_who", "Content-Type: text/html"); but it still does not let me apply html tags like this: $mailbody.="<b>$string</b>"; What is wrong?
View Replies !
Using PHP/sendmail To Send Out HTML Email?
I have a very simple PHP script that uses sendmail to dispatch a standard, plain-text email. Below is the code. (The form is on another HTML file entirely, this is just the processor page.) <?php // your email address $youremail = "someone@somewhere.com"; // field validation if ($email=="" || $comments=="" || $name=="") { print ("All fields are required! Please go back and try again."); } else { // email validation if(!eregi('^([._a-z0-9-]+[._a-z0-9-]*)@(([a-z0-9-]+.)*([a-z0-9-]+)(.[a-z]{2,3})?)$', $email)) { print ("Your email address does not appear to be valid. Please go back and try again."); exit; } // send email $headers = "From: "$name" <$email> "; $subject = "Feedback Form"; $message = "$comments"; mail ("$youremail", "$subject", $message, $headers); print ("Thank you $name, your email has been sent."); } ?> Anyways, I would like to know how to change this to send out HTML-formatted emails. Does this just involve adding something to the header? Any help would be appreciated. Also, if there was a way to actually format the email sent, for instance, make the first line of the email appear in large, bold text, that would be great.
View Replies !
I'm Unable To Send HTML Email
why this is not working? I'm using mail headers taken straight from www.php.net: $headers = 'MIME-Version: 1.0' . " "; $headers .= 'Content-type: text/html; charset=iso-8859-1' . " "; $headers .= "From: $returnAddress " ; $success = mail($thisEmail, $emailSubject, $emailMainContent, $headers); The test HTML I sent was this: <p>Let's listen to Abel's music:</p> <object classid="CLSID:05589FA1-C356-11CE-BF01-00AA0055595A" width="200" height="70"> <param name="FileName" value="http://www.monkeyclaus.org/media/audio/robert_stours/box_of_pine.mp3"> <param name="type" value="application/x-mplayer2"> <param name="PlayCount" value="1"> <param name="Volume" value="1"> <param name="ShowControls" value="true"> <param name="ShowDisplay" value="true"> <embed type="application/x-mplayer2" playcount= "1" width="70" height="26" filename="http://www.monkeyclaus.org/media/audio/robert_stours/box_of_pine.mp3" volume="1" showcontrols="true" showdisplay="true" src="http://www.monkeyclaus.org/media/audio/robert_stours/box_of_pine.mp3"> </embed> </object>
View Replies !
Send Email In Html Format
Can anybody tell me how can I send email using php. I have already send text base email. Now I want to send email in html format. That is the body of the mail should contain something like a html page.
View Replies !
Send Out A Html Email With Pics?
I have a sql db with emails in it and i'll run a loop sending out a mail() 1/ is it possible to send out a html email with pics? 2/ Is it possible to run a sql query and printing results on the email?
View Replies !
Form To Send Html Email With Attachment
I am also really new using PHP and trying to set up a php form to send html email with attachment. I have encountered various problems : 1. I can't send html email if I attach a file especially a word doc. 2. When I send a text/plain email with an attachment then the email won't be able to be forwarded as the doc will be corrupted somehow. Code:
View Replies !
Send Contents Of Page In Email
is there not an easy way to simply send the contents of a page in the body of an email? i.e. i have a report.php that pulls from a mysql db. i need to be able to send the displayed file right in the body of the email. can anyone help with this?
View Replies !
PHP Send Information/page To Email
i have a website and i have a log in system with php and mysql, that works fine however i want my registered user to be able to send me information by email, they'd fill in a text field then press send. I need this to send the whole page so that it gets their username in so people can't put a another persons user name. Code:
View Replies !
Send Value From CSS Html Page To PHP Page
help me to find a way or script to pass value "digit" from CSS html page to php page which has funtion to accept value and search in database. for example, in CSS rollover image map. if a user select on particular place, that should call PHP page as well as send value to php page.
View Replies !
Send An Html Page To People On A Mailing List.
I am wanting to be able to send an html page to people on a mailing list. I have set it up so it sends $mailing_template which sends an html page. Only, when it reaches the inbox it shows as straight html (un parsed) and not as the page. How can I set it to send it as HTML and not straight HTML code please?
View Replies !
Email Problem ( I Am Unable To Send Email In Diffarent Language )
I want to send the mail in Russian language. The mail content has two part, 1st part comes from database, and other part is entered by user in russian language. I am using UTF-8 in database. I am also used Utf-8 (<meta http-equiv="Content-Type" content="text/html; charset=utf-8" in all web page. My site and is working perfectly. But I am unable to send mail in diffarent language. The mail is send well, but I am getting the mail with unicode chrecter of the language instade of original language. Code:
View Replies !
Grab Email Addresses From MySQL And Send An Email....
I am making a simple mail form that will SELECT email address from a MySQL table based on the userid of the person sending the email. if (isset($_POST['submit'])) { require('../database.php'); $result = mysql_query("SELECT * FROM emailList WHERE merchantId = '".$_SESSION['id']."'") or die(mysql_error()); What would be the most efficient way of storing the email addresses from MySQL (may be 1 or may be 100) and then sending them in BCC to all the people gathered from the MySQL table?
View Replies !
Send A Mass Email From A Database Of Email Addresses
Im trying to send a mass email from a database of email addresses. basically, once a user signs up, their email is inserted into table in the database. I would liek to make a link that i can click form the backend that says "send out newsletter" this would take all the emails in the database and put them in outlook ( mail app for me), seperate each with a comma and then i could compose a message. here's what i have come up with so far.. //Once connected to database $mailto = mysql_query("SELECT * FROM newsletter"); while($row = mysql_fetch_array($mailto)) { echo "<a href=">. $row['email'] ."/">Send out Newsletter</a>"; } Ive had it working but obviously it s making each email a seperate link that says "send out newsletter" i would like it to be one link that combines all the emails in a "mailto:" format.
View Replies !
Send This Page Script Used To Send Spam.
I had installed a simple php script (obtained for free from the web) that allows a visitor to forward a page to a friend. It worked great but now a spammer is using it to send thousands of emails. I have deleted the feature and also the php file but no successs. What can I do? Please help. While I have some responsibilities of a webmaster, my technical abilities are very limited.
View Replies !
Email Form That Uses Array And A Switch Call To Send Values In A Form To My Email
I've got a email form that uses array and a switch call to send values in a form to my email. The problem I'm having is I have a checkbox where users should be able to select multiple values however if they do when I receive the email instead of having the values it prints "ARRAY"...I've included a sample below: PHP Code: <? // Key => (required, type, string) // Types: // 1 - Long text // 2 - Short text // 3 - Textarea // 4 - Radio // 5 - Checkbox // 6 - Dropdown // 4, 5, and 6 require a 4th value in the array $mail_form_to = "me@email.com"; $mail_form_subject = "Real Estate Submission";
View Replies !
Need Email Address From Submitted Html Email Form
I have an html email that contains a form with questions for the user to fill out. Without asking the user to re-input there email address into the form, is there a way for me to grab the email address its coming from when the user submits the form to the php processing program. I need a way to match the questions to the user when they submit the form.
View Replies !
Sessions And Redirects - Send Info From Page One To Page Two.
I have a two part form, each part on a seperate page. I want to send info from page one to page two. Thought ok, I use session variables. The problem is that they don't get sent to the second page. All works fine on my local testing server, but when I go live session varables don't show. Has this something to do with header? Is there another way to get to the second page? Code:
View Replies !
HTML Email Using PHP Problem (Receive Html Tags)
When I send the html email, the only thing I receive is the tags (the html codes basically). I want to be able to see the email like a html page, what is wrong with my code? Here is a copy paste of it. $HTML = "</html><body><img src='http://www.somewebsite.com/ someimage.jpg'></body></html>"; $headers = "From: $from "; $headers .= "MIME-Version: 1.0 "; $boundary = uniqid("HTMLDEMO"); // Now we attach the HTML version $headers .= "--$boundary ". "Content-Type: text/html; charset=ISO-8859-1 ". "Content-Transfer-Encoding: base64 "; $headers .= chunk_split(base64_encode($HTML)); mail($to,$subject,"",$headers); print "mail Sent<br>"; The email I receive has this as text: </html><body><img src='http://www.somewebsite.com/someimage.jpg'></ body></html>
View Replies !
Using Php To Send An Email
I would like to know if anyone has experience with using PHP to email a stored password out of a mySQL database. I have a mySQL database which I allow users to connect thourgh PHP web pages and I want to provide the option to email the users password which is stored in the database. Could anyone show me the code to do this or explain where I need to look up to find the information. Thanks in advance for the help!
View Replies !
Cannot Send Email To Myself
I run Apache 2.0.59 and php 5 on WindowsXP. Server works OK. But I cannot receive the email with the results of the form. I made changes in php.ini file, changing [mail function] SMTP = outgoing.verizon.net sendmail_from= myE-mailAddress@verizonnet where outgoing.verizon.net is the actual ISP server name (I found it in outlook express accounts) The form has been processed without errors, but I didn't receive any email. Could you please help me with this problem?
View Replies !
Can't Send Email Through PHP
I am trying to send email through PHP, i used the following code and it seems working every lines...but i can't really get a email from this.. $from="Frankie"; $contents="hello ...how r u ar"; $subject="helo"; $to = "frankie@aristo.com.hk"; $from_header = "From: $from"; print("mailing"); mail($to, $subject, "", $from_header); print("sent");
View Replies !
How To Send An Email
Hi I want to know how i can send email to my customer list in a specific time for example every morning at around 10:00 am my server will send them email containing articles from my database. I want the server to be able to send email to my customers in a specific time everyday without human interaction.... is there a way to do this?
View Replies !
Send Email To AOL Via PHP?
I have code that sends email to customers via PHP mail() but the mail never gets to AOL customers. I looked at the headers of two different emails - one sent from the same hosting service/domain with SquirrelMail and the other via PHP. I see some differences that I am sure are related to why AOL is blocking the emails but I cannot seem to get the Return-Path to override from the PHP - I tried. Code:
View Replies !
Send An Email
I'm trying to set a script to send an email with information from a form. It's quite simple ... I got various sample scripts from internet , but when i run them , i get the message "mesage sent" but i never get the mail ..
View Replies !
Can't Send Email To
i'm trying to run the following code but i have always the same return "FALSE". Can anyone help me figer out way i have always the same message : 'Can't send email to ' and he send the email like spam: #!/usr/local/bin/php <?php if (mail("nelson@estudoplase.pt","teste","nelson@eusei.com.pt")) { echo "<h4>Thank you for sending email</h4>"; } else { echo "<h4>Can't send email to $email</h4>"; } ?>
View Replies !
Send Out Email
I would like to write a script which sends out emails every Tuesday at 12:00pm. I wrote the following code, but it didn't work. Code:
View Replies !
Can't Send Email
I'm having trouble sending email. PHP/mySQL/Apache is running on a Windows XP machine and we have an internet and email proxy. I have a script that connects to the internet through the proxy to grab html source code from external websites for checking links, but it doesn't seem to work with email and I dont think there's a SMTP or POP3 server installed on this Windows machine to send email with. Do I have to have a SMTP/POP3 server installed on this machine and would it be hard to do? Would I still have to connect through the proxy if I installed a SMTP/POP3 server? Or should I request help in modifying php.ini and continue working with the script that connects through the proxy?
View Replies !
Best Way To Send Email
I am sending email to the member of wmy ebsites through cron job which run every minute, the job pick one name from database and send a mail to his email id. Presently I am using phpmailer which uses smtp and smtp username and password to send the email. I have another alternative to send email, mail function. I want to know which method is best, i.e which causes less load on server and more reliable, I suppose phpmailer is more reliable as I find out that all mails using mail function does not reach destination. I need advice and suggestion from more experienced user, that which method is best and what are their pros and cons.
View Replies !
Send Email
I know how to send an email however I dont know how to do stuff in the email like make it bold and stuff i tried doing: <?php //code above $subject = "Dragonball Z - Registration"; $message = "<html><body><b>Thank you for signing up.<b>"; $message .= "<br><br><i>Good luck and enjoy</i>"; $message .= "<br><i><b>Founder:</b> tsilenzio</i></body></html>"; mail($email, $subject, $message); //code below ?>
View Replies !
Get Db To Send An Email
I've got a questionnaire online and the responses get saved to a database. When the database has received 100 responses, I'd like to get sent an email letting me know.
View Replies !
How Do You Send Email Using PHP.
I have encountered a problem that may be very simple for you guys. I used to use ASP for the contact page on my site, but now im running on a Linux server. How do you send email using PHP.
View Replies !
How Can I Set PHP To Send Email Through SMTP?
I'm gonna setup a page where i can send email to anybody as an anonymous user. it's just for education purposes keep in mind. I already have made a form which tries to email using the action mailto:myemailaddress@whatever.com but if that person sending uses Hotmail on Linux, that simply does not work. how do i change this form to make it work with PHP? -i know my ISP's SMTP server (my Linux didn't come with sendmail for some stupid reason) -the SMTP server does NOT require a name or password
View Replies !
Mac OS X Server Send Email With PHP?
I know the mail() function in PHP uses sendmail to send stuff, but unfortunately, sendmail is busted on my server and I can't get it to work. I posted something about that on Apple's site, but in the mean time... Is there anything else I can use that's compatible with Mac OS X Server that can send email with PHP? I desperately need to set up this mailing list script, and I need something that can do it. I know there are SMTP functions and stuff, but can someone explain those a little further? Keep in mind that I'm not trying to set up a mail server here, just trying to get something working that can send mail with PHP. Thanks.
View Replies !
Send Form To Email In Url
I need to know how I can have a form sent to an email that is in a URL. For example: If I have a site with a form that has First Name: Last Name: Email: Phone: in it, and a person goes to www.test.com/?email@emailaddress.com (or something like that)then I need the form results to go to that email address in the URL. If a different person has a person go to the same URL but uses a different email address, then the results of the form need to go to that email address. I also want it to send it without opening up a seperate email program (outlook, etc.)
View Replies !
|