<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Forum posts to 'Site Builders'</title>
		<link>http://www.silverstripe.com/site-builders-forum/</link>
		

		
		<item>
			<title>Email not sending in live environment with Email_Template class</title>
			<link>http://www.silverstripe.com/site-builders-forum/show/62083</link>
			<description>Hi,&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;Immediately I thought it was the SMTP configuration, and after checking that and testing sending emails another way, I'm really puzzled.&lt;br /&gt;&lt;br /&gt;If I send an email using the standard email class like this:&lt;br /&gt;$e = new Email('blah@blah.com', 'blah@blah.com', 'subject', 'message');&lt;br /&gt;$e-&amp;gt;send();&lt;br /&gt;&lt;br /&gt;It works ok, but when I used the Email_Template class to send an email with a template file and data values - nothing happens:&lt;br /&gt;$email = new Email_Template();&lt;br /&gt;$email-&amp;gt;ss_template = 'ContactUsEmail';&lt;br /&gt;$email-&amp;gt;populateTemplate($fields);&lt;br /&gt;$email-&amp;gt;subject = 'Subject';&lt;br /&gt;$email-&amp;gt;from = 'blah@blah.com';&lt;br /&gt;$email-&amp;gt;to = 'blah@blah.com';&lt;br /&gt;$email-&amp;gt;send();&lt;br /&gt;&lt;br /&gt;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????&lt;br&gt;&lt;br&gt;Posted to: Email not sending in live environment with Email_Template class</description>
			<pubDate>Sat, 26 Apr 2008 18:29:25 +1200</pubDate>
			<author>Phil Howie</author>
			<guid>http://www.silverstripe.com/site-builders-forum/show/62083</guid>
		</item>
		

	</channel>
</rss>
