john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

godaddy hosting php email gdform

godaddy-hosting-php-email

the "manual" method

<?
include_once("Mail.php");
...

$to = "support@software506.com";
$subject = "Email from php";
$body = "Hi \n this is a test";

mail($to, $subject, $body);


For the mail() function in your PHP you don't need to specify an outgoing mail server.

For some method besides mail(), use relay-hosting.secureserver.net for the relay server.

KEEP IN MIND, FOR PHP

strip_tags()  (not strip slashes!)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

the "older" gdform.php

The form-mailer script will sort the names of form items alphabetically when
it composes the email message: uppercase letters, lowercase letters, numbers.

<form action="/gdform.php" method="post">
    <input type="hidden" name="subject" value="Form Submission" />
    <input type="hidden" name="redirect" value="thankyou.html" />
    <p>First Name:<input type="text" name="FirstName" /></p>
    <p>Last Name:<input type="text" name="LastName" /></p>
    <p>E-Mail:<input type="text" name="email" /></p>
    <p>Comments:<textarea name="comments" cols="40" rows="10">
    Type comments here.</textarea></p>

    <input type="submit" name="submit" value="submit"/>
</form>

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

the newer webformmailer.php

<form action="/webformmailer.php" method="post">
    <input type="hidden" name="subject" value="Submission" />
    <input type="hidden" name="redirect" value="thankyou.html" />
    First Name: <input type="text" name="FirstName" />
    Last Name :<input type="text" name="LastName" />
    Email: <input type="text" name="email" />
    Comments: <textarea name="comments" cols="40" rows="10">
    Type comments here.</textarea>

    <input type="submit" name="submit" value="submit"/>
    <input type="hidden" name="form_order" value="alpha"/>
    <input type="hidden" name="form_delivery" value="hourly"/>
    <input type="hidden" name="form_format" value="html"/>

</form>

  • « good websites
  • fonts »

Published

Feb 6, 2010

Category

web

~181 words

Tags

  • email 14
  • gdform 1
  • godaddy 1
  • hosting 3
  • php 82
  • web 56