Hello Chan,

Thanks for prompt reply.
I solved it like below;

verification_email(FromAddress, ToAddress, Subject, Name, VerificationCode) 
->
    Headers = [
        {"Subject", Subject},
        {"To", ToAddress},
        {"From", FromAddress},
        {"Name", Name}
    ],
    Attributes = [
        {"Name",Name},
        {"Code", VerificationCode}
    ],
    {ok, FromAddress, ToAddress, Headers,Attributes}.

And Django line like this;

Hello {{ Name }}. Thank you for joining...

Thanks
Mert

6 Ocak 2016 Çarşamba 23:16:47 UTC+2 tarihinde Mert Öztürk yazdı:
>
> Hello,
>
> I succeed integrating mandrill smtp api and mailing plain text with "
> smtp.mandrillapp.com" but could not find any source or example using 
> templates through ChicagoBoss.
> Read Chicagoboss documentation but couldn't understand ----> 
> boss_mail:send_template(my_application, 
> foo_message, [Arg1, Arg2, ...])
> foo_message is the function in myapp_outgoing_mail_controller.erl with the 
> variables Arg1,Arg2.. but still couldnt understand how to get content from 
> view folder and where to put sender and recipent??
> Is there any example of using .html templates in my mail with dynamic 
> variables?
>
> Many thanks
> Mert
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/chicagoboss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/chicagoboss/4acb7cfd-3307-473f-a348-f0917808759d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to