Jump to content

My webform failed to send out visitor confirmation message,pls help.


moneytree

Recommended Posts

Hi everyone,

 

Good day to you.

 

I had written a html code for my webform and it is integrated to my autoresponder provided by my web hosting company.

 

However,it failed to send out a reply of visitor confirmation message to that paricular visitor's email account after his/her opt-in,may I know what wrong with my webform ? But,it's working if I send a message through my yahoo's mail account !

(No through this webform)

 

The following is the html code for my webform :

 

<html>

 

<body>

 

<form METHOD="post" ENCTYPE="text/plain" ACTION="mailto:moneytree@moneymakeyourich.com">

 

<h3 align="center">Get your Free Gifts!<h3>

 

First Name    :

<input type="text" name="FirstName" size="20">

<br>

Last Name    :

<input type="text" name="LastName" size="20">

<br>

Email Address :

<input type="text" name="Emailaddress" size="20">

<br>

<input type="Submit" value="submit">

 

</form>

 

<p>Important:I will never share your informations with anyone !

And you can unsubscribe at any time</p>

 

</body>

 

</html>

 

Please assist and advice me on how to get it done.

 

Thank you.

 

 

 

Best regards

Manicui

Link to comment
Share on other sites

The action you have specified is what you use to create a mailto link - you need to click on it and it will open a email client. That will not work in this instance. You need to use the php mail() function.

 

Create a new file - for arguments sake call it email.php and put the code below in it. Save it in the same directory as your page with the webform.

 

<?php
$to = 'recipient@email.com'; // the email address you want the email to go to
$subject = 'Your email subject';
$message = 'Your email message';

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

?>

 

Change the form action to

 

<form METHOD="post" ENCTYPE="text/plain" ACTION="email.php">

Link to comment
Share on other sites

Hi themistral,

 

Many thanks for your advice to my queries over webform issue.

 

Infact,I have not replace my existing webform with my new html code as shown in my post.The main reason is I just started to learn html code and came up with this code,I am not sure it can be done by just delete my existing webform code and insert the new ones.

 

Therefore,I tested this webform in notepad and it didn't have a pop-in window for email,but,it just sent to my webmail account after I click submit.

 

Please kindly advice the following :

 

1 ) Can I just delete my exisitng webform code and insert my new ones ? I would like to have my new webform in the same position on my site www.moneymakeyourich.com.

 

2 ) Are you saying using your new code and ignor mine ?

 

Thank you.

 

Best regards

Manicui

 

 

Link to comment
Share on other sites

Hi themistral,phpQuestioner,

 

Good day to you.

 

I just wanted to say a BIG THANK YOU to you in helping me on my webform issue.

 

Now,I have better understanding about it and would like to carry out the changes by myself.

 

However,before carry out the changes,as I am new to html and php code and would appreciate if you can advice and assist me on the following once again :

 

1 )  Regarding my exisitng webform on my site

 

It is a free web site for me to jump-start my internet marketing from a company which I signed up its internet course.However,its webform is not configure to my email address and I can't receive any opt-in data.Therefore,I tried to write a new html code for my webform to replace it.

 

My question is - Is it the correct way to delete the exisiting webform with the new ones as follow :

 

 

Old webform code ( I had extracted it from my web site with html code before and after the form tag )

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

 

  </div>

      <div class="sidebar">

<div id="formbox">

<h3>Get Instant Email Tips</h3>

<script type="text/javascript" src="http://forms.aweber.com/form/25/953296625.js"></script>

 

</div><br />

 

<div id="infobox">

<h3>Why we choose the #1 Product</h3>

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

 

New webform code ( Please take note on where I insert the new code and which old code I had deleted )

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

 

  </div>

      <div class="sidebar">

 

<form METHOD="post" ENCTYPE="text/plain" ACTION="http://moneytree@moneymakeyourich.com/cgi-bin/formmail.pl">

 

<h3 align="center">Get your Free Gifts!<h3>

 

First Name    :

<input type="text" name="FirstName" size="20">

<br>

Last Name    :

<input type="text" name="LastName" size="20">

<br>

Email Address :

<input type="text" name="Emailaddress" size="20">

<br>

<input type="Submit" value="submit">

 

 

</form>

 

<p>Important:I will never share your informations with anyone !

And you can unsubscribe at any time</p>

 

</div><br />

 

<div id="infobox">

<h3>Why we choose the #1 Product</h3>

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

 

2 ) With this changes,does my new webform display in the same manner,same place within the table or rectangular box on my site ?

 

3 ) Your advice - Create a new file - for arguments sake call it email.php and put the code below in it. Save it in the same directory as your page with the webform.

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

Code:

<?php

$to = 'recipient@email.com'; // moneytree@moneymakeyourich.com

$subject = 'Your email subject';

$message = 'Your email message';

 

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

 

?>

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

 

My questions are -

 

a ) I had insert my email address into this php code as you can see it,now,I have to copy this code into notepad and saved it as emial.php,am I right to say that ?

 

b ) I don't understand you mentioned " Save it in the same directory as your page with the webform " may I know where can I find this directory in my Cpanel ?

 

4 ) Change the form action to <form METHOD="post" ENCTYPE="text/plain" ACTION="email.php">

 

My question is - Are you rferring to this <form METHOD="post" ENCTYPE="text/plain" ACTION="http://moneytree@moneymakeyourich.com/cgi-bin/formmail.pl"> in my webform ? If yes,I need to replaced it with this <form METHOD="post" ENCTYPE="text/plain" ACTION="email.php">,right ?

 

5 ) Finally,the following will get done,right ?

 

a ) Keep the new html code for my webform.

b ) Saved the email.php in the same directory as my page with the webform.

c ) Change the form action from <form METHOD="post" ENCTYPE="text/plain" ACTION="http://moneytree@moneymakeyourich.com/cgi-bin/formmail.pl">  to    <form METHOD="post" ENCTYPE="text/plain" ACTION="email.php">.

 

I am sorry to post such a lengthy queries to you and appreciate your kind advice and assistance to my webform issue.

 

Thank you.

 

Best regards

Manicui

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.