$_SERVER['HTTP_REFERER'] is used to check if links is clicked in browser ? how to check if link is cliked in email viewer? - http-referer

My purpose is : i send email to user that contains some links, if user click, it must go to my server to check and forward. in browser you can use $_SERVER['HTTP_REFERER'], but in email i don't know how ?

Sorry, but you can use the same $_SERVER['HTTP_REFERER'] if user check mail over web interface, and you can't get any mark about click in desktop email client.

Related

Using SendGrid to send password reset links

I am using SendGrid as the email provider in my application. When I place a link in the email it gets re-encoded to a link on the SendGrid servers. Can I trust this link with my password resets? I know that I am already trusting SendGrid with my links by sending through their servers but what is the purpose of rewriting the urls. To use the link you need to also know the email address and it is only valid for 20 minutes.
The link in my email looks like
http://myserver/resetpassword/oLsjShCLh7tFpyl8cEzbghHpS59iazhD
and it gets encoded in the email as
https://u5478763.ct.sendgrid.net/wf/click?upn=hvVg2ntCa8InWO5OtVSRJPdvIiofcS3RGII270TrJ9aOSJX2MZ9RkcgQLgnRLLNMjjo5mMQVejYxIGVPoz-2BfxtM55lXWiXwtNWvE42LzFPE-3D_Q0Y0L54uOhrrHtFzGFlMm55yZkDAUn39DjKFOTu4BtReZW14K4ruKT7IkXyh4pWHctN-2FYlmmFj2J7a6-2BHy0UN0PZDTzqKnADTi10YJeXfirMSGqGLkjKxZZY1iGRjCkgddBCiyIBiLfBs3VS4GmrB5SPa7uCb9KYcZdqm5AvebY6pyGitqdcpmDSVV6zHjR1oK3NZQboFfjng-2Fqv6PQHekU7irw1BWOtP5ja3RxfUKE-3D
This is because you have Click Tracking enabled in your account. Log into your SendGrid dashboard, and from the navbar on the left side click on Settings -> Tracking and disable Click Tracking.

How can I send a form by email with titanium

I have seen the email dialog example and also the email dialog example, but I am not looking for an email client interface.
I also took a look at the pizza ordering app, and I couldn't find any method for the send button.
I have custom text fields and in the end I want to send the whole form to an email recipient. I can't find the way to do that.
That is, I would appreciate your help.
For sending E-mail from your app , you have these options :-
1- Using Titanium.UI.EmailDialog .
The Email Dialog is created with the Titanium.UI.createEmailDialog method. The user needs to register an e-mail account on the device in order to open the dialog. The dialog will not open when there is not a registered e-mail account.
Ex : Android
Read more http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.EmailDialog
But As you said you don`t want like this ! and if you want to send direct messages from your app please see these other options :-
2- Make any backend service like #PHP to send email
for ex:- http://www.w3schools.com/php/func_mail_mail.asp, and using Titanium.Network.HTTPClient to connect with your backend service .
3- Using ArrowDB
Enjoy !
Follow these steps,
1) Create webservice method to send email.
2) Call particular email method in the button click.
Note :
Apple will not approve if you don't provide valid reason to send email via webservice. They might think you are trying to spam users.
Create a web service (e.g. a PHP script) that receives POST data and send an email based on it.
In your app, clicking the button simply collects all the data and POST it to your web service.
You can not check this on emulator/simulator only can check on device. And in device you need to configure any email account like gmail or outlook mail.
var emailDialog = Ti.UI.createEmailDialog();
emailDialog.subject = "Hello from Titanium";
emailDialog.toRecipients = ['foo#yahoo.com'];
emailDialog.messageBody = '<b>Appcelerator Titanium Rocks!</b>';
var f = Ti.Filesystem.getFile('cricket.wav');
emailDialog.addAttachment(f);
emailDialog.open();

Want to set up a system of sending email to users on my magento store who have forgot a password

I have set up a magento store of my own for my business of grocery products.
I have almost configured each and everything.
I have a mail server and can have as many email addresses as I require.
I have a theme set up for the store.
While a user tries to log in and has forgot a password, there is a link to click saying "Forgot Password".
On clicking it, it displays "An email has been sent to your account with new password details."
I know this will not send an email as I have to configure entire system.
I do not want to send a new password by email. Instead I want to send a link. On clicking this link, the user can go the it and have an option of password reset.
Please help me with this. It will be much much appreciated.
Magento's standard "Forgot Password" functionality works exactly as you've described - it sends a link to the user to reset his or her password - it doesn't just send a new password.
Magento uses Zend_Mail to send emails. By default, Zend_Mail will use PHP's mail() function (via Zend_Mail_Transport_Sendmail), which will usually send emails via sendmail or similar, depending on the PHP configuration.
If you have your own mail server that you'd prefer to use, you can configure Magento to use SMTP. This does require some code, but, luckily, there are some good extensions out there that already do this, like aschroder/Magento-SMTP-Pro-Email-Extension.

Why do emails sent with Gmail from an alias not appear in the sent items?

I have an email address set up on a certain domain, and I have added an alias email address in my Google Apps account set up on another domain. I've also added that alias on the second domain to "Send mail as" to be able to send emails from that email address.
Problem is that when I send emails from that alias, they don't appear in the sent items. Why is this? How can I resolve it?
i just figured it out and it now works, even previously sent mails from an alias via gmail also appear in my sent messages.
in gmail, go to settings, account and imports, in the "send mail as" section, click on "edit info" next to the account which you are having the problem with.
on the screen which pops up, uncheck the radio box for "treat as an alias" dont change any other info, click next step, enter your password and click save changes.
thats all it took to sort out my issue.
best regards
They way I'm reading this is: you've added an alias/secondary in Google Apps account, example.com, for another domain you own, test.com. After doing this, you created an email alias for your Google Apps user and setup a send as address for #test.com within your #example.com account.
If this is the case, the expected behavior is: emails you send from your example.com account as your test.com account will appear in the 'Sent Mail' label for your example.com account. I've just double checked this to confirm.
Can you please provide your exact steps to reproduce the issue if the above isn't correct or you're seeing different behavior?
Sign in to your Google Apps email.
Click the in the upper-right and select Settings along the top of any page, and select the Accounts tab.
Under Send mail as, click Add another email address.
In the Email address field, enter your name and alternate email address.
Click Next Step >> and then click Send Verification. Gmail will send a verification message to your other email address to confirm that you own it.
Locate the message from Gmail. Open it and and either click the link contained in the message or enter the confirmation code in the Accounts section of your Google Apps email settings.
Then select
When replying to a message:
Reply from the same address the message was sent to

Button Clicking feature using LWP:Useragent module in perl

I have a requirement where I got to send sms to the mobiles when the systems are down. I have LWP:Useragent module through which I would like to to send values to the fields and click submit button. Using post method I can post values to the fields in the of the webpage where we can send free sms. But how do we click the submit button and go to the next page and type message to send once you have login to the account(The process is login to your account and then send sms using websites like way2sms.com). Any help is appreciated. Thanks.
Regards,
Preethy
I will suggest you:
1) Check API of SMS service, it's more easy to through it.
2) If you know details of POST/GET request
- send POST/GET request to log in on site
- save cookie
- send POST/GET request with SMS notification
3) If you want to make process of fill and then clicking submit button (see it module: WWW::Mechanize )