Joomla: Shortcode {user:data} don't work

Leso 03 Oct, 2019
Hi,
I have a simple form that sends an email, but if I use {user: email} or similar in the "from email" or "from name" fields, I have the following error:
---------
NOTICE
The following from address failed: name@domain.com : MAIL FROM command failed,, 255.27962:0A000000, 255.27962:0E000000, 255.31418:0A00B280, ...
-----
The same shortcodes inserted in the body of the email, return the correct data.

Joomla 3.9.12

Any ideas?

Thanks
Matteo
GreyHead 03 Oct, 2019
Hi Matteo,

Yes, don't use {user:email} in the From Email field. That usually needs to match your sending domain. If you want to set a Reply To address then please use those fields.

Also note that the {user:email} will only have a value if the user is logged in - I don't know if that is the case here.

Bob
Leso 03 Oct, 2019
Should I use {var: read_data}?
The user is logged in.

Matteo
GreyHead 03 Oct, 2019
Hi Matteo,

No.

You can usually leave the From Email and FRom Name boxes empty and CF will use the values from the Site Email settings.

Bob
Leso 03 Oct, 2019
Thanks for the help Bob!
I need the email to have the user as the sender (through the user's email we open a support ticket).
GreyHead 04 Oct, 2019
Hi matteo.

You can include the User's email in the text of your email; and/or you can use the Reply To email boxes. I strongly recommend that you do not use the From Email boxes with values that do not match your domain. There is a very high chance that they will be identified at probable spam and may be deleted before delivery.

Bob
Leso 04 Oct, 2019
Hi Bob,
Unfortunately the problem is an automated workflow that serves the user's email address in the "from" field.
Thanks for your help

Matteo
GreyHead 04 Oct, 2019
Answer
Hi Matteo,

Using {data:email} etc. in there might work occasionally but better if you fix the automated workflow so that it will work correctly with your site :-(

Bob
healyhatman 04 Oct, 2019
You simply CANNOT send emails as if they're from someone else - it's simply not possible. This is not a limitation of Chronoforms, or of Joomla - you just can't do it. Nearly every single server on the planet will refuse to even let you try. If you use the REPLY TO field, when you click "reply" on the email you've sent it will let you REPLY to any email address you want.
This topic is locked and no more replies can be posted.