notify url = wordpress path - wordpress

i'm having an issue using wordpress pathing when i use paypal button. the paypal button is working if the form code is not encypted but when i encrypt it does not work
sample code
without encryption
<input type="hidden" name="notify_url" value="<?php echo get_bloginfo('template_url');?>/myfile.php">
with encryption
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7----- blahblah -----END PKCS7-----
what can i do in order for my notify url work?

The URL cannot be encrypted.
see the PayPal IPN Integration Guide. The request to your notification URL will contain some information which you can send back to a PayPal server to confirm to confirm for yourself that it was really sent by PayPal, and to let PayPal know that you received the notification.

Related

Contact Form 7 showing sent message but not receiving email

Experiencing issue with WP plugin, contact form 7. When I fill in the form and submit, I receive a success message stating it was sent yet I don't receive it in my emails.
The mail is not in my junk and I only received the message in my email when I input the email its being send to!?
The email it is going to is an exchange account. I can see the emails coming through using a contact form submission on the WP backend. But would like to resolve this issue.
Form
[text* your-name placeholder "Name"]
[email* your-email placeholder "Email Address"]
[text* your-dob placeholder "DOB"]
<p>Which Challenge(s) would you like to enter?</p>
[checkbox* select-challenge "1" "2" "3"]
</br>
Please tick here that you have read and accepted the [popup_trigger
classes="popmake-food-challenge-tcs"]
<u>terms & conditions</u>[/popup_trigger] for entry & participation.
[acceptance acceptance-997]
[submit "Send"]
Mail
To: myname#company.com
From: Website
Subject: Challenge
Reply-To: [your-email]
From: [your-name] <[your-email]>
Eating Challenge Registration
Name: [your-name]
Email: [your-email]
DOB: [your-dob]
Challenge(s): [select-challenge]
I also checked with website host that they use wp_mail() and was confirmed they do. As other contact forms send - bar this one.
Try setting the from: email address to wordpress#yourdomain.com. Contact Form 7 support recommends setting the from address as being on your own domain, so that the website's mailer program doesn't think it is spoofing the email being sent (sending it from an incorrect email address).
If that doesn't work, best to use a plugin like WP Mail SMTP Plugin.
I set it up to send contact form emails through our Gmail account, which worked well. Instructions here.
SMTP Plugins are a Band-aid Solution
The reason people use SMTP plugins is because they have not set up their own domains properly; so, they route their emails through their email hosting company under the expectation that THEIR domain is both set up properly and permissive enough to accept the email that needs to be forwarded. So, let's say your website is at example#mywebsite.com and your email is example#gmail.com, then you can use an SMTP plugin to send an email to gmail.com, and then gmail resends it on your behalf.
As you can see, this is a clunky work around, and does not actually fix the problem of not being able to send email from your website directly. There are a few use cases where this is a problem:
If you want to actually send the email from example#mywebsite.com and not expose your example#gmail.com address to the public.
If your email provider does not support SMTP.
Some anti-spam tools may block emails routed this way, because SMTP can be a sign of spoofing through a hacked account. This almost always leads to problems when using the Mail(2) feature to send confirmation emails to the client since you are pretty much guaranteed that some of them will use spam filters that will block it.
You may also need to send emails through other means (not contact form 7) that does not work with your SMTP plugin.
A Better Solution
The best way to fix deliverability issues to to set up your DKIM, SPF, and PTR records properly in your DNS.
If you are using cPanel as most hosting companies seem to do these days, you need to go to EMAIL > Email Deliverability and it will show you warnings if you need to update your DNS. If you do, just copy the records it auto generates into your Domain's DNS and this should fix the problem. Unlike trying to route through someone else's server to send emails, this will set up YOUR server to send them properly thus alleviating all of the above mentioned issues.
This is just as easy to set up as most SMTP plugins, and makes it so you don't have to clutter your WordPress install with unnecessary plugins.
If you do not have cPanel access, just contact your Domain Hosting provider and ask that they setup your DKIM, SPF, and PTR. If your Domain Hosting provider and your Web Hosting provider are two different companies, you may need to request the proper DNS records from your web hosting company to either put in your self or give to your domain hosting company.
when I have a problem about wp contact form I always solve that with using smtp plugin. I suggest you to use wp smtp mail plugin.
Easy SMTP WP plugin page on wordpress.org
If any problem after using smtp plugin, reply this post I will try to help you again.
I have this problem in my website.
Some hosting companies block automatic email sending, because some user uses the host for sending email marketing. So, I think you can contact your host provider to solve this problem.

Image is Not display in email that send by Nopcommerce

I am working on nopcommerce (version 3.60) message template i have put image and give also proper path to image location. Mail is sent properly but its not display image in gmail,yahoo. i have configure my mail template like below
<p><img src="http://example.org/Content/Images/logo (2).png" alt="" width="173" height="86" /></p>
<p>%Store.Name%<br /> <br /> To activate your account click here. <br /> <br /> %Store.Name%</p>
Is any configuration missing please tell me. and also is gmail or yahoo denied image to be display in mail for security?
Thank you in Advance.
It's easy for a hacker to replace the image src attribute with a Javascript file that send a request on behalf of an authenticated user to a particular site and do some damage, this is called CSRF attack, for this reason they don't show pictures in emails to protect their users, they show image if it's coming from a trusted source.

i want to retain username when user login page fails in spring security

when user given username and password then click on login button. If login fails then redirect to login page but remove username but i want to retain username. i am using spring security version 3.1.4
You can try as below. This worked for me.
<input name="email" id="email" type="text" value="${SPRING_SECURITY_LAST_EXCEPTION.authentication.principal}" required email>
Hope this helps!!

HTTP 302 (Redirect) in Paypal sandbox adaptive payment

I want to implement paypal adaptive payment for my Spring WebApplication in sandbox mode. I have submit the following HTML Form
<form name="paypalSubscriptionPreApprovalFrom" id="paypalSubscriptionPreApprovalFrom" action="https://svcs.sandbox.paypal.com/AdaptivePayments/Pay" method="GET">
<input name="cmd" id="cmd" type="hidden" value="_ap-payment" />
<input name="preapprovalkey" id="preapprovalkey" type="hidden" value="xxxxxxxxxxxxx" />
</form>
My redirect url is "http://www.testApp.com/teatApp/paypalSuccess. After payment success, paypal will redirect to my application, but i'm unable to receive response parameters. because paypal return nothing. How can i receive paypal adaptive payment response.
Thanks,
SENTHIL B

SSL form POST from one site to another

I am attempting to do a POST securely from one website to another. Instead of trying to do our own encryption or hashing I would like to use SSL. Is it possible to do a form post from one site to another using SSL that would be completely secure for transferring the user information?
You can't redirect the user's browser to another site with POST (the redirect will switch to a GET), but you can certainly have one server initiate a POST to another site over SSL.
A simple form post should work.
<form action="https://theirsite.com/Form.html" method="post">
<input type="hidden" name="UserID" value="1" />
<input type="text" name="UserName" value="Quickfire55" />
</form>

Resources