17488 Posts in 4473 Topics by 1978 members
|Go to End|
26 April 2008 at 6:29pm
The contact form I've setup works fine in my local environment, but once I've deployed it to live, it doesn't send an email - there are no errors it displays and everything appears to work, but no email is sent.
Immediately I thought it was the SMTP configuration, and after checking that and testing sending emails another way, I'm really puzzled.
If I send an email using the standard email class like this:
$e = new Email('firstname.lastname@example.org', 'email@example.com', 'subject', 'message');
It works ok, but when I used the Email_Template class to send an email with a template file and data values - nothing happens:
$email = new Email_Template();
$email->ss_template = 'ContactUsEmail';
$email->subject = 'Subject';
$email->from = 'firstname.lastname@example.org';
$email->to = 'email@example.com';
Now this all works fine in my local environment. Both local and live have PHP v 5.1.4 installed. Any ideas what the problem could be????
|Go to Top|