When a user sends some enquiry through a company's website, he also enters email,
now is there a way where the email when received to the enquiry department will reflect as :
From : user@xyz.com
to : enquiry@myCompany.com
Subject: enquiry
Some Text
where "user@xyz.com" is the email entered by user in the enquiry form.
the same can be seen in some e-card website, where you send ecard to your friends email and they receive it with your address in the "from" part.
how can this be achieved?
------------EDIT-------------
Example:
Front-End :
To send ecard to your friend: your email address : abc@xyz.com your friends email address: lmn@pqr.com
and then friend receives an email as:
from: abc@xyz.com via jkh.hk.dn.net
to: lmn@pqr.com
subject: ecard
ecard email
as you can see though the email is send the e-card website, the from address reflect the email address entered by user.
So need some help on how this can be achieved? and any example would be more helpful...