Action Mailer : FROM ADDRESS

Hi,

I have been using action mailer with little or no issues for quite a
while. I have been sending all mails as admin. Now that i thought of
using user’s email IDs itself when they communicate with each other
instead of sending it via admin.

The action mailer messages /output do indicate that Mail from is :
[email protected]

“235 2.7.0 Accepted\r\n”
“MAIL FROM:[email protected]\r\n”
“250 2.1.0 OK\r\n”
“RCPT TO:[email protected]\r\n”
“250 2.1.5 OK\r\n”
“DATA\r\n”
“354 Go ahead\r\n”

But the mail received by [email protected] still says, [email protected].

  1. How to solve this issue?

  2. Is it legal to even use user’s email id in such communications. If at
    all if I or someone gets this working, essentially mail can be sent to
    anyone with anyone’s email id! Is this legal?

Regards,
SG

On Aug 25, 11:55 am, Sandeep G. <rails-mailing-l…@andreas-
s.net> wrote:

But the mail received by [email protected] still says, [email protected].

  1. How to solve this issue?

  2. Is it legal to even use user’s email id in such communications. If at
    all if I or someone gets this working, essentially mail can be sent to
    anyone with anyone’s email id! Is this legal?

Yup, from addresses can easily be spoofed. That’s why you often get
spam with bogus from addresses. Some mails servers force the from
address to be the one associated with the account, precisely to reduce
this sort of problem.

Fred