PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Here's a "helpful" e-mail I've just received from Pickaweb's Customer Support...
Hi Kris,
We have checked the issue regarding the contact form on your website.
In the auto-responder, the first letter of a 'Name' is not capitalized. From our investigation, it was clear that a particular block of 'code' had to be integrated with your PHP file(sendmail.php).
In this context, you may note that providing extensive coding support is beyond our scope of work.
Hence, kindly contact a 'coding' expert or web developer who can integrate the required code in your PHP file.
Feel free to get back to us for more assistance in future.
Does anyone have ANY idea what they're talking about? I am designing a website which uses a sendmail.php to submit a contact form. There's an autoresponder on Pickaweb's server which sends an automated response to the sender BUT (and this is going to sound really insignificant) the message received from the autoresponder loses the capitalisation of the sender's name.
So it starts "Dear kate winslet" instead of "Dear Kate Winslet". I think it's a configuration problem with Pickaweb but they're insisting I need to add a "block of code" to my PHP.
I've already used $name = ucwords($name); and I'm not sure what else they can mean.
I can't find where it says "Dear" in the message template... is it messed up in the email subject? Create as simple of a script as you can to reproduce it, and post it back. Thanks, chances are I'll then tell you to forward that to your host and debug it (if its deemed to be a server issue). If I can find a bug in your code then I'll let you know too.
Ah. Yes. I guess the AUTO-RESPONDER code might be of use to you..
<html>
<head>
<style type="text/css">
p.capitalize {text-transform: capitalize;}
</style>
</head>
<body><a href="http://www.beautybyshe.co.uk">
<img src="http://www.beautybyshe.co.uk/graphics/maillogo.jpg" border="0" width="279" height="75" alt="She! Beauty Therapy - Because She is fabulous!"/></a><font face="Calibri, Verdana, Arial, sans-serif"><br/><br/>
THIS IS AN AUTOMATED RESPONSE - PLEASE DO NOT REPLY
<p class="capitalize">Dear %from%,</p>
Thank you for getting in touch with She!<br/><br/>Your e-mail has been received and will enjoy our full attention shortly. We aim to respond to all e-mails within twenty four hours but during busy periods it may take a little longer.<br/><br/>Rest assured that we value your custom, appreciate your patience and will move heaven and earth to be in touch with you as soon as we can.<br/><br/>
Kindest regards.<br/><br/>Christine Jacquemin<br/>Beauty Therapist<br/>She!</font>
</body>
</html>
Perhaps the %from% variable can't be capitalised. If so, is there a way of extracting it first?
To be honest Josh, I'm at a loss. I've been backwards and forwards with Pickaweb for several days.
They INSIST that when they test my contact form that it works (i.e. the %from% value is capitalized) but it doesn't work for me and I fail to see how it could possibly work at my end. I suspect this is something in the configuration of their server.
I think I'll just have to put up with this irritating (but largely unimportant) glitch as I'm getting nowhere with my host.
Thanks anyway for your help. It's truly appreciated.