Magento-Set latest products to Email template - magento-1.4

In my magento site I have to give the functionality to send invitation mail to friends.
This Email includes name of person who is sending invitation and latest sales(configure products )images dynamically.
The email template I have set under admin->transaction email.
Now how can I set both dynamic data for the mail template?

You can look into one of the templates showing dynamic data in
app/locale/en_US/template/email

Related

Create link for Compose mail - Ruby on Rails

I need to create a link on a mail ID(say x#company.com) which would take you to Compose mail of the logged in e-mail such as outlook account and put x#company.com in To:____
Any suggestions on how it can be done in Ruby on Rails using ActionMailer?
If you're to display this link on a website, a simple mailto: link would work. eg.
Email me
You can as well provide the subject for it
...
If you're trying to display this link inside another email, (ie. an automatic email sent from your website, for example, a transactional email) you can simply display the email address and rely on your email client (eg. Gmail, Outlook) to pick it up.
A few examples can be found here

Google EventReservation markup whitelisting

We would like to send Event Reservation markup along with our order confirmation email. The schema was implemented using JSON+LD and following the requirements set by google's reference document for event reservation.
We filled the form required by Google and sent one of our confirmation emails to the specified email address with the markup data. As a reply we were informed that "the schema was empty". When trying to request more information we received a no-reply message from the address that contacted us.
I'm adding a link to the html of the email sent along with the form confirmation emails with the markup data here. Our sent email contents are base64 encoded, could that be the cause of the email being rejected? If not, what other actions can we take to get the event reservation markup displayed in our emails?

Rails sending emails between users

I'm working on an app where I want the users to be able to send messages between each other via email. I checked Action Mailer but it allows me to send emails from my application not between two users.
I was thinking of doing it by displaying the user email so they can click on it and send that user email. Any idea about how i should do this?
If you're satisfied with only email-link, then you can just use mailto url-helper. It'll open your local default email-client.
For ex.
mail_to "where.to.send#mail.com", "Link name", cc: "send.here.as.cc#mail.com", subject: "Yep, it works"
will produce
Link name

Devise email custom 'from' parameter based on logged in user

I have an app in which companies can add customers. Each company has its own email.
Currently, when a new customer is created, they receive devise emails (confirmation, password reset etc.) through our domain email, but I want to the customers to see the email as being sent from the one specified by the company instead.
How can I intercept these emails and set the from parameter?
Read this article. It describe how to create custom mailer for Devise.
Inside of your custom mailer you can assign appropriate values to from field.

Invite new user to website per e-mail

I would like to build a form on my website where users, who are already registered, could invite new users via e-mail to sign up for this website. The user who sent the invitation and the user who accepted the invitation (and signed up) are then connected through a "friendship" relationship.
I would like to send the invitations via the ActionMailer.
My problem is: How do I "link" the email to the friendship-relationship. One way is probably to create a unique sender_id, which points to the user and which will be used as a link in the email.
Is there another possibility?
Thanks for your help!
In the link create an argument, where you can pass an ID that could identify your relationship.
Something like: http://example.com/invite?abcd
Than in you controller you can treat the relationship.
Other option is to use Devise Invitable

Resources