Newsletter HTML Coding help?

Discussion in 'HTML & Website Design' started by Terpentin01, Jun 24, 2010.

  1. #1
    Hi,

    I wanna build an HTML newsletter email input...so customers can send their email to my gmail account and I can write a monthly newsletter!

    I just have no idea where to start? I downloaded a web template and this is what I have so far....

    <form style="margin:0" name="myForm11" id="myForm">
    <input type="text" style="width:170px; height:20px; vertical-align:middle" class="input"><br><br style="line-height:8px ">
    <a href="#" class="bel-norm">Unsubscribe</a><input type="image" src="images/but1.jpg" align="middle" style="margin-left:53px ">
    </form>

    do I need a PHP form as well?

    Could someone be so kind and help me out?:confused:

    Thanks!:rolleyes:
     
    Terpentin01, Jun 24, 2010 IP
  2. Skuvnar

    Skuvnar Peon

    Messages:
    32
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    to get the emailing to work, you could modify your code to look something like this:

    (Note: add the red bits to your code)

    <form style="margin:0" name="myForm11" id="myForm" [COLOR="Red"][B]method="post" action="mailto:youremail@email.com"[/B][/COLOR]>
    
    ...
    [COLOR="Red"][B]<input type="submit" value="Send"> [/B][/COLOR]
    ...
    </form>
    Code (markup):
    hope this helps.

    Cheers
     
    Skuvnar, Jun 25, 2010 IP
  3. SampathW

    SampathW Guest

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3

    If you use this way, your email address is exposed to anyone. The best way is to send the data to a seperate PHP file and send the email from there.
    Ex. Let's say your email processor is processemail.php.

    Then the form code should be,

    <form style="margin:0" name="myForm11" id="myForm" method="post" action="processemail.php">
    
    ...
    <input type="submit" value="Send"> 
    ...
    </form>
    HTML:
    Hope this helps :)

    BR,
    Sampath
     
    SampathW, Jun 26, 2010 IP