How to change the URL email is coming from - magento-1.4

How to change the "FROM URL" to my "website name"? I tried to change it via
System -> Configuration -> Store Email Addresses
and Transactional Email, but there is nothing which can change that.

This is a php mail setting, deep in the innards of the machine. Do you own the box or are you on shared hosting? Maybe make this question more generic and consider trying another app, e.g. Wordpress, to see if it is hosting or Magento.

I have resolved this issue by following these three steps:
Make changes to php.ini on line #683
sendmail_path = /usr/sbin/sendmail -t -i -fname#Domain.net -nMY CompanyName
Changed lib/Zend/mail.php line #686
$this->_storeHeader('From', 'name#Domain.net', true);
In cPanel created email account with the same name "name#Domain.net"

Go to System -> Configuration -> Contacts
so, you can set 'Send Emails To' field

Related

Django email verification - customize email html & 404 not found accounts/profile/

I have two issues. Email verification works well, but I want to customize the email sent to users. Here is the content of the email:
Hello from Localhost!
You're receiving this e-mail because user test has given yours as an
e-mail address to connect their account.
To confirm this is correct, go to
http://127.0.0.1:8000/rest-auth/registration/account-confirm-email/MTE:1h4DCn:JtkrZ1wkENQIdG8ysIVu7Qx_R44/
Thank you from Localhost! https://localhost:8000/
How can I create an html file and fill in the content that I want to be sent in the email? And how about the email subject?
The second issue, is that when I click on the link, the user gets verrified, but then I get a 404 error on /accounts/profile.
Here is my code:
from allauth.account.views import confirm_email
urlpatterns = [
path('accounts/', include('allauth.urls')),
path('rest-auth/', include('rest_auth.urls')),
url(r'^rest-auth/registration/account-confirm-email/(?P<key>[-:\w]+)/$', confirm_email),
path('rest-auth/registration/', include('rest_auth.registration.urls')),
]
Do I have to add a url for accounts/profile/ and create an html template showing that the email verification was successful? Also, is there a way to change to url to i.e accounts/verification-success/?
Custom e-mail
You can find the default e-mail templates used here: https://github.com/pennersr/django-allauth/tree/master/allauth/templates/account/email
Subject: email_confirmation_subject.txt
Text e-mail: email_confirmation_message.txt
You can override them in your Django app like any other template.
To activate HTML, you just have to add your own file with the name email_confirmation_message.html.
You can also have different messages when you signup or just confirm an e-mail address.
You can have a look into the code to understand how it works.
accounts/profile/
When you end up here you have successfully logged in. However, you will need to implement a view for this URL yourself, as whatever is to be displayed here is project specific. You can also decide to redirect elsewhere:
https://docs.djangoproject.com/en/dev/ref/settings/#login-redirect-url
From https://django-allauth.readthedocs.io/en/latest/faq.html#when-i-attempt-to-login-i-run-into-a-404-on-accounts-profile
Since you have to implement the profile yourself, you can use accounts/verification-success/, too.

MVC/Razor Identity 2.0 - Where is error string for account already taken?

When a user is creating a new account and attempts to use a username that already exists, an error message is displayed by #Html.ValidationSummary(true) that says:
Name test#example.com is already taken.
I need to localize that string but cannot find it in the entire solution. Does anyone know where this string is defined?
The Identity 2,.0 is localizable via Nuget Packages:
Instal-Package Microsoft.AspNet.Identity.Core.XX
where XX is the desired culture (es, de, fr...)
There is no other way to do it.
Of course, you need to somewhat set the culture of your application: in web.config, programmatically, specified by the user's browser...

Can I filter Jira Issues that were created via a mail handler?

I'm hoping to create a report that will return all of the Issues that were created via a mail handler that we have set up.
I thought about trying to use "reporter=" in the JQL, but that only works in the cases for when the user isn't already in our system (we've set createuser=false).
I'm running 5.2.5, not-OnDemand.
You could work around this by having the mail handler add a unique tag to each issue that it creates, and then just filter on the tag.
First, create a custom field called "By Email".
than, using Script Runner, add the following script to the workflow, to the create transition:
from com.atlassian.jira import ComponentManager
cfm = ComponentManager.getInstance().getCustomFieldManager()
# read issue description
description = issue.getDescription()
if (description is not None) and ('Created via e-mail received from' in description):
issue.setCustomFieldValue(cfm.getCustomFieldObjectsByName("By Email"),'By Email')
this will add 'By Email' to all issues created by emails. Than, you can find those issues using the following JQL:
"By Email" is not EMPTY
Let me know if you're having truble implelenting this solution.
NOTE: If the email is sent from an email known to Jira (Jira's user) the sender will be set as the autor of the ticket and his email will not be saved.

Liferay: After changing Public Virtual Host settings, can't log in

I did a mistake and seems like I can't fix it alone, if it can be fixed. I have the Liferay URL looking like this: http://192.168.10.10:8080/web/guest; I wanted to remove the '/web/guest' part from the address so from Manage -> Settings wrote 192.168.10.10:8080 to the Public Virtual Host field. After saving it, I can't log in anymore. Everytime I write http://192.168.10.10:8080/login (as I did before), it goes to the index page and not the login page.
Then if I write the login after 'web/guest', I can go to the login page, but when I fill in the Username and Password field and hit Submit button, it goes nowhere, that is no action taken, which most probably is because of the permissions that I have set earlier. Only owner has full rights.
I thought somewhere in the database (MySql) I could clear what I have written to the Public Virtual Host field, but from the table names couldn't tell which table is for that. Now I am trying to change the user privileges from the DB, no result yet. I even restored the DB from a 2-weeks-old dump, but seems like the Public Virtual Host changes are saved somewhere else and not the DB.
I appreciate any help or insight on this.
Thanks in advance!
Finally solved the problem. I just needed to fix the virtual host from the database.
Here is my script in case someone did what I did:)
update LayoutSet SET
-> virtualHost = '192.168.10.10'
-> WHERE virtualHost = '192.168.10.10:8080';

Salesforce Create Buttons and Links option - Custom URL to launch email template

I have an email template that I would like to launch from within the case using a Link/Button. I see the option under setup->customize->cases->button and links I even see where I need to place the URL. What I don't see is nay documentation on how to build the URL to launch an email template. Any help you be great
I don't know if this is documented anywhere by salesforce, but I found from some guess work:
/_ui/core/email/author/EmailAuthor?p3_lkid={!Case.Id}&p2_lkid={!Case.ContactId}&template_id=00X40000000weWn
Just use that as the url content of a custom button or link. This one is for cases, as you are trying to do, but I think this should work for other types of objects as well.
The parameters are p3_lkid, which is the case id, p2_lkid which is the id of the contact you are emailing, and template_id which is hardcoded to the desired email template. (You can find this id by looking in the url of the Setup page for the template)
This was really helpful. I did, however, figure out another way to do it. Click on the "Send an Email" button you currently have. Copy the URL and add &template_id=YOUR TEMPLATE ID.
There is one other ID number that will show up in the original URL. Change that to be the dynamic field you want it to be.
For example:
Copy url from "Send Email": https://na3.salesforce.com/_ui/core/email/author/EmailAuthor?p3_lkid=70150000000Axj1&retURL=%2F70150000000Axj1
Add &template_id=YOUR TEMPLATE ID so it looks like this:
/_ui/core/email/author/EmailAuthor?p3_lkid=70150000000Axj1&retURL=%2F70150000000Axj1&template_id=YOUR TEMPLATE ID
Remove the other id (it's the object you used to send the email - so in this case, I was wanting to be able to send an email directly from a Campaign) and replace with the dynamic field:
/_ui/core/email/author/EmailAuthor?p3_lkid={!Campaign.Id}&retURL=%2F70150000000Axih&template_id=YOUR TEMPLATE ID
And voila! It should work!
Abeyer's answer is good. However, if the template contains solution attachments "{!Case.Solution_Attachments}" the attachments will not get included unless you add the new_template=1 parameter to the URL making it:
/_ui/core/email/author/EmailAuthor?p3_lkid={!Case.Id}&p2_lkid={!Case.ContactId}&template_id=00X40000000weWn&new_template=1

Resources