Jump to content

Search the Community

Showing results for tags 'email form'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 5 results

  1. Hello All; First of all I'm a newbie at PHP and a newbie at PHP Freaks, that's why I've chose to use a premade php email form code (The XpertMailer) because I don't know too many other options nor can write all code by myself! That being said here it goes: My business web page uses an xpertmailer php code for our contact page email form. It used to run smooth and with no worries till we decided to change our host server to another company, with more and updated features. So I've changed the smail.php (only that file) codes with the new smtp information (new server name, port, account, password, etc...) and saved my file and uploaded to our new server overwriting the old one... But now, nothing works... It keeps showing the message "sending email" but it never sends... Here you can see the code (note parts of it are in Portuguese): <?php include "smtp.php"; function smail($assunto, $mensagem) { $paraemail = "emailexample@mywebsite.net"; $paranome = "Our Company Name"; $mail = new SMTP; $mail->Delivery('relay'); $mail->Relay('smtp.mywebsite.net', 'emailexample@mywebsite.net', 'password', 587, false); $mail->TimeOut(10); $mail->Priority('normal'); $mail->From("emailexample@mywebsite.net", "Email from Our Company Website"); $mail->AddTo($paraemail, $paranome); $mail->AddTo("emailexample@yahoo.com", "Backup Mail"); $mail->Html($mensagem); $sent = $mail->Send($assunto); /* for debugging */ /* echo '<br>Result: '. $mail->result; */ return $sent; } ?> As far as I know the only thing I needed to change in XpertMailer configuration to work with the new smtp informations was this file only! Should I change something in the other files of XpertMailer or the problem lies in this file only? PS.: my XpertMailer script version is the 2.0... I know that there's a new version.... Due to the fact this host server is new, (apparently with new php if compared with my old one) should this be the problem? Thanks in advance...
  2. Please help me with this. I'm using this little PHP program to collect some information and get them emailed to me...everything is working but no messages in the body. The email comes to me but nothing in the body. I'm supposed to get the name, email, phone # and how soon but I receive a blank email. I have the script posted on celebritynosejobs.net if you would like to see it! <?php $action=$_REQUEST['action']; if ($action=="") /* display the contact form */ { ?> <br /><br /> <font size='1'>Fill out the form below and we'll contact you with more information as soon as possible.</font><br /><br /> <form action="" method="POST" enctype="multipart/form-data"> <input type="hidden" name="action" value="submit"> <b>Your full name:</b><br> <input name="name" type="text" value="" size="30"/><br> <b>Your email address:</b><br> <input name="email" type="text" value="" size="30"/><br> <b>Your Phone #:</b><br> <input name="phone" type="text" value="" size="30"/><br> <b>How soon?</b><br> <input name="howsoon" type="text" value="" size="30"/><br> <font size="1">We hate spam too! Your information will only be shared with the doctor.</font> <p align="right"><input type="submit" value="SEND MAIL"/></p> </form> <?php } else /* send the submitted data */ { $name=$_REQUEST['name']; $email=$_REQUEST['email']; $phone=$_REQUEST['phone']; $howsoon=$_REQUEST['howsoon']; if (($name=="")||($email=="")||($phone=="")||($howsoon=="")) { echo "<br><br><font color='red' size='3'>All fields are required, please fill <a href=\"\">the form</a> again.</font><br><br>"; } else{ $from="From: $name<$email>\r\nReturn-path: $email"; $subject="Free Plastic Surgery Consultation Request"; mail("myemailaddress@email.com", $subject, $message, $from); echo "<br /><br /><font color='blue'><b>Form is sent! Thank you for using CelebrityNoseJobs.net to find a Cosmetic/Plastic Surgeon practice in $details->city. We will provide your information to participating specialists in the area and they will get back to you with more information as soon as possiblle.</b></font><br /><br />"; } } ?>
  3. Hi, I have a client that wants an e-mail form on a activist website where the recipient is a government office. The idea is that we would pre-compose a message and let the visitor fill in his/her name and e-mail address. An e-mail would then be sent from our mail server (visitors.name@ourserver.com) with Reply-To set to the visitors e-mail address. Is this at all possible? Is it ethical? (our purposes are noble) How long would it take for us to get blacklisted? I realise that the best solution would be to make the visitor copy and paste the email, but my client really wants this solution. Plus that we want som way to keep track of the amounts of e-mails being sent. Thank you.
  4. I created a script that takes info in the url (script.php?id=123), compares that number (123) to a database and gets more information about that person (name, etc.). The number also corresponds to their email address (123@domain.com). The information is passed to an email script which is a contact form. The contact form only sends the email to 123@domain.com and cannot be changed by the user. The user can enter their name, email, a subject, and the message. The name and subject are converted into email headers and sent to 123@domain.com (from: the user submiited info). My question is that although the user cannot change the to: address, can they still input code into the name, email, and subject fields to inject additional to: addresses? If so, any suggestions on exsting code that could elimiate this threat? Thanks!
  5. Hi, I have a PHP email form script that uses this to send form fields in an email as text: //$sFileName = $_POST["esh_formmail_save_record_file"]; $cc = $_POST["esh_formmail_cc"]; $bcc = $_POST["esh_formmail_bcc"]; $charset = $_POST["esh_formmail_charset"]; for( $i = 0; $i < count( $form_mail ); $i ++ ){ $value = trim( $_POST[ $form_mail[ $i ][ "name" ] ] ); $content .=$form_mail[ $i ][ "text" ] . ": \n" . $value ."\n"; $line .= remove_newline( $value ) . "\t" ; if( strtolower("Sender's email") == strtolower($form_mail[ $i ][ "type" ]) ) { //print "Type:[" . $form_mail[ $i ][ "type" ] . "] $value \n"; $from = $value ; } }; $content .= "\n\nIP:" . getEnv( "REMOTE_ADDR" ); How do I get the $value form results formatted in HTML (for example bold or in multiple columns) in the email this form sends? Thanks, MP
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.