Hello everybody,
I have an issue with converting a URL to link. I hope someone can guide me through this.
SocialEngine doesn't automatically convert URLs to links in email messages (https://community.socialengine.com/blogs/597/34/mail-templates).
According to the above article that Donna kindly sent, we have to add the link HTML manually to the email templates.
We did this like the following:
but instead of converting the URL to a link, it sends the whole text (including the HTML script).
Would you please tell me what I am missing in this?
Best Regards,
Sorry, what we tried was this:
(http://[host][object_link]) (without parentheses of course!)
This editor converts what I type to a link:
we write before the link, and after that. I hope this comes correctly.
Sorry guys, this editor does not allow me to send HTML tags and converts them. In summary, we did as it is said in article (https://community.socialengine.com/blogs/597/34/mail-templates but the URL is not converted to link.
Sorry for bothering you all. The forum does not allow me to delete or edit my posts.
Use the code post button which is to the right of the smiley button when posting code as we mention in our forum posting rules.
As for html, some email programs will not allow html to come in emails so it can also depend on what you use for your email program such as thunderbird, etc.
Is your issue the same as this bug, https://community.socialengine.com/forums/topic/3300/bug-php-mail-issue . Note that we don't recommend using PHP mail though. SMTP is best.
Thanks Donna for the response. No our problem is not the same as the above mentioned bug. We don't use php mail() (we use SMTP)
My problem is that the URL in the email body is not shown as link. It's something that is normally set in SE, but SE document says that to convert a URL to link we should add an href code before it. I have done it as the instruction states, but instead of changing the URL to a link, the href code itself is shown. something like this (I hope it comes correctly ):
<a href="http://[host][object_link]">http://[host][object_link]</a>
Perfect for the code posting.
What email program do you use though? some do not allow html unless you change settings in them. I recall that thunderbird has settings to allow html.
I found out that the links work fine when the recipient is Gmail, but not in Yahoo. So, it should be a setting in the receiving mail server, not our side. I'll try to find out how we can make Yahoo to show the links. If I find something useful, I'll share it here.
Thank you, I had suspected the email program as I mentioned above. There are settings to allow html but email programs disable it as it can also cause your computer to get viruses in emails such as spam mails and unsafe emails.
Thanks Donna for you follow up and kind and helpful responses.
See if doing this helps, https://stackoverflow.com/questions/48110269/yahoo-mail-prevents-links-in-emails . Adding the nofollow in your email template might work for yahoo. There are so many different answers in google search though.
Thanks Donna for your constant care and responsiveness. I will go through this and inform you if it works.