How to modify the "From" field when a registration message is sent
Posted 17 years 10 months ago
hi,
I would like to modify the "From" field when users register and get a registration email, and the Subject.
Can you help and let me know what files I need to modify this?
Re: How to modify the "From" field when a registration message is sent
Posted 17 years 10 months ago
My emails from joomla are being sent as This email address is being protected from spambots. You need JavaScript enabled to view it. support sent me this:
Any ideas how I change this in Joomla?
Quote
This is because our servers require you (or your script) to use a properly formatted, valid From: header in your email. If the From: header is not formatted correctly, empty or invalid our system will change the from address to be <username>@<box>.bluehost.com. To stop this, you must change the script you are using to correctly use a valid From header.
Examples of headers that should work would be:
From: This email address is being protected from spambots. You need JavaScript enabled to view it.
From: <This email address is being protected from spambots. You need JavaScript enabled to view it.>
From: "name" <This email address is being protected from spambots. You need JavaScript enabled to view it.>
Examples of headers that will NOT work:
From: "This email address is being protected from spambots. You need JavaScript enabled to view it."
From: user @ domain.com
Alternative for PHP Users:
- You can also modify which account should be used when sending out using the mail() function. Inside the local php.ini file, you will find a line of code that looks something like this(around line 319):
sendmail_from = This email address is being protected from spambots. You need JavaScript enabled to view it.
Be sure to uncomment this by deleting the ';' before the directive. Also, the account you use must be a valid created account.