Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email Activation Link | ahref string with "click here" instead of string? #738

Closed
sidopufn opened this issue Oct 13, 2015 · 3 comments
Closed

Comments

@sidopufn
Copy link

Does anyone have a creative idea on how to make the activation link a simple ahref'd link that says "Click Here to Activate", instead of the long string that is now in the body of the email? This would look much more "professional" and clean.

@Dominic28
Copy link
Contributor

You need to set html as content-type.
Take a look at example 4 http://php.net/manual/en/function.mail.php

@sidopufn
Copy link
Author

I figured this out:

(1) in the class.phpmailer.php file, change "public $ContentType" to 'text/html'

(2) RegistrationModel.php, in public static function sendVerificationEmail add opening " . '<a href="' " and closing " . '">YOUR_ACTIVATION_TEXT" before the "Config::get('URL')" and after the "urlencode($user_activation_hash)"

This should probably be incorporated into a "to do" in the next iteration of the code with a $variable for the YOUR_ACTIVATION_TEXT.

@panique
Copy link
Owner

panique commented Oct 15, 2015

Thanks, I've linked this from the readme file as "HTML mails" under "community-provided features". Please note that this project should be as simple and minimal as possible dealing with html mails inside a script that's mainly about PHP security is too much.

I'll close this ticket, I hope it's okay for you :)

@panique panique closed this as completed Oct 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants