PDA

View Full Version : Drop down e-mail selection in BlueMail



chako.org
03-25-2012, 09:50 AM
Hi there,

Trying to give the form consumer the ability to select who a e-mail should be sent to based on a drop down box. When I submit the form however, I get 'email address' not valid. Any help would be greatly appreciated. Thanks!





<p>

Please Choose a recipient: <select name="sendtoemail">
<option value="webmastera@chako.org">Webmaster</option>
<option value="webmasterb@chako.org">otherwebmaster</option>
</select>
</p>
<p>Name (Required):
<input type="text" name="Nametext" id="Nametext" />
Phone (Optional):
<input type="text" name="PhoneNo" id="PhoneNo" />
</p>
<p>Street Address(Optional):
<input type="text" name="StreetAddress" id="StreetAddress" />
City/ZIP (Optional):
<input type="text" name="CityZip" id="CityZip" />
</p>
<p>E-mail Address (Required):
<input type="text" name="EmailAddress" id="EmailAddress" />
</p>

<p>Subject (Required):
<input type="text" name="subject" id="subject" />
</p>


<p><textarea name="comments" cols="40" rows="10">Please enter the body of your e-mail here.</textarea></p>

Attachment (Optional - 60 KB File size maximum!): <input type="file" name="file_attachment">

<P><input type="submit" value="Send E-mail"></P>



Thanks for your time! - Eric -

alemcherry
04-11-2012, 08:51 AM
Without seeing the complete HTML and php, it is not possible to give a suggestion. HTML looks okay, as long as there is a <form> tag around it. Error should be in PHP and it should be something very simple as well. Post the PHP code.

BTW, this is a spammers delight and you need to secure it. Anyone with basic HTML / PHP knowledge can use this script to send any number of spam messages from anyone to any one. I am not even telling you how to secure it, anybody who write some PHP code should know better.

navsguardar
04-11-2012, 09:52 AM
This is a common error seen when you try & send an email to an offsite address. Remember Bluemail will only send messages to an email address setup on your Bluehost account. If you wish to deliver the email elsewhere, you may setup an email forwarder instead.