• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: PHP Email Script

PHP Email Script 11 years 6 months ago #25334

I need some help with something that seems fairly easy but I lack the PHP skills to pull it off.

I need to insert a download link in the User Email that is Absolute but I don't want to enable Absolute links in the TinyMCE editor because it impacts the entire site.

My thought was to use the PHP Email Script to do this but I am not sure how.

I would like to have in the body of the email "Click here to download: {link}"

What would I put in the PHP Email Script section and what do I need to put in the body to have it insert?

Any help would be appreciated.

Thanks
The administrator has disabled public write access.

PHP Email Script 11 years 6 months ago #25336

Hello chris.spence5,

If you would like to append your site's domain in front of the links included in your email, please use something like the following in the PHP Email Script area:
$modAdminEmailText = str_replace('{link}','http://your_site_domain/{link}',$modAdminEmailText);

Please keep in mind that the above code is just a sample and might require adjustments (specifically replacing the "http://your_site_domain/{link}" with the correct URL).

For more details about the PHP Email Scripts, please refer to the following article:

www.rsjoomla.com/support/documentation/v...p-email-scripts.html

Regards!
Please remember that my responses aren't considered customer support, to receive customer support please submit a new customer support ticket, and we will gladly assist you.

Best Regards,
Cristian Nicolae.
The administrator has disabled public write access.

PHP Email Script 11 years 6 months ago #25337

A couple of things. I need this to happen in the User Email and not the admin.

Also how to I format the text in the User Email body to insert the link?

Thanks, for the quick reply.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!