OK - So I have to change php to SMTP now mail() has been disabled....![]()
However, the SMTP script supplied may work (once you've decoded what it's actually trying to tell you) but you are left with a basic scruffy contact form. Most of my sites/customers have very good costly designs and the basic SMTP form supplied by eukhost simply isn't good enough as a replacement.
My question: How do I convert from php to SMTP keeping all the nice design work...
e.g. a typical site uses the following code:
... which apart from looking good, performs all sorts of nice validations etc.Code:<form id="contact-form" method="post" class="main-contacts"> <fieldset> <input type="hidden" name="owner_email" id="owner_email" value="**my_email**" /> <input type="hidden" name="serverProcessorType" id="serverProcessorType" value="php" /> <input type="hidden" name="smtpMailServer" id="smtpMailServer" value="localhost" /> <input type="hidden" name="stripHTML" id="stripHTML" value="true" /> <div class="rowElem"> <div class="bg"> <input type="text" name="name" id="name" value="Name" onblur="if(this.value=='') this.value='Name'" onFocus="if(this.value =='Name' ) this.value=''" > </div> <label class="error" for="name" id="name_error">*This field is required.</label> <label class="error" for="name" id="name_error2">*This is not a valid name.</label> </div> <div class="rowElem"> <div class="bg"> <input type="text" name="email" id="email" value="E-mail" onblur="if(this.value=='') this.value='E-mail'" onFocus="if(this.value =='E-mail' ) this.value=''"> </div> <label class="error" for="email" id="email_error">*This field is required.</label> <label class="error" for="email" id="email_error2">*This is not a valid email address.</label> </div> <div class="rowElem"> <div class="bg"> <input type="text" name="phone" id="phone" value="Phone" onblur="if(this.value=='') this.value='Phone'" onFocus="if(this.value =='Phone' ) this.value=''" > </div> <label class="error" for="phone" id="phone_error">*This field is required.</label> <label class="error" for="phone" id="phone_error2">*This is not a valid phone number.</label> </div> <div class="textarea-box"> <div class="bg"> <textarea cols="1" rows="1" name="message" id="message" onBlur="if(this.value=='') this.value='Message'" onFocus="if(this.value =='Message' ) this.value=''" >Message</textarea> </div> <label class="error" for="message" id="message_error">*This field is required.</label> <label class="error" for="message" id="message_error2">*The message is too short.</label> </div> <div class="relative"> <span class="button1"><span></span><a href="#" id="submit">send message</a></span> </div> </fieldset> </form>
How do I keep all this functionality with the SMTP coding we're supplied?
I've tried and it's crap!
[What is especially annoying about this is that in my experience EVERY paid for template uses PHP mailer and you therefore get a complete website ready to go! NO ONE caters for SMTP auth!!!!!!!!]


Reply With Quote

I'm simply looking for a solution to my problems)




