Magento Forum

   
Getting email-configuration
 
SebboKleine
Jr. Member
 
Total Posts:  23
Joined:  2008-07-10
 

Hi there

I have a problem sending the email. Actually it’s not sending the email but setting the values not in the source-code but getting them from config-values.
Here’s my code:

...
                    
$mailTemplate->sendTransactional(
                        
'2',
                        array(
'name'=>'Shop''email'=>'bla@bla.de'),
                        
$userEmail,
                        
$userName,
                        array(
                            
'productquestion'         => $this,
                            
'product'       => $product,
                            
'url'  => $product->getProductUrl(),
                        )
                    );
...

The email gets send, but it is not nice to have sender-email and shop-name hardcoded. Also the email-template is in the database. It would be nice to have it under app/locale/.../email/Here_comes_the_template

How can I change this to use such a template and how can I add configured-email-adresses?

Thanks
Sebastian

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top