Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Fix a PHP script after purchase from PayPal

I have a website that handles PayPal to Bitcoin exchages, the buyer needs to fill a form with his PayPal email, select amount and currency to pay with PayPal and then he is redirected to a paypal button with the previous details.

Here some pictures:
[Image: 0ba5fe33fcec3c620752b3e8b1c6844a.png]

[Image: 9553431f2e6eabe2a32ccc6f593b1ff8.png]

It contains a mailer function that every purchase that is performed, it needs to send an email to the PayPal buyer with a message including transaction number, his name exactly as PayPal , amount paid + currency , and the contact trade.

The mailer function unfortunately does not send the mail , the rest is working just fine.

Name a price to get it working with Gmail and also should work with my own SMTP server.


Have you tried using the PHPMailer? Its usually perfect for this kind of thing.

https://github.com/PHPMailer/PHPMailer/
(Feb 12, 2017 02:21 PM)Specs Wrote:  Have you tried using the PHPMailer? Its usually perfect for this kind of thing.

https://github.com/PHPMailer/PHPMailer/

I'm using the same phpMailer but for some reason it wont send the email.
Did you implement it yourself or get the source online?
I'm still needing this code fixed so I can start selling using my website instead invoicing.
Try sending it to a yopmail account and check out the results.
If you always do what you’ve always done, you’ll always get what you’ve always got.
(Feb 14, 2017 01:26 PM)Lucifer's Inferno Wrote:  Try sending it to a yopmail account and check out the results.

I've tried with several servers (outlook, gmail , my own smtp server) there is something wrong with the code that it does not send it.
Do you have this on regular hosting or did you buy a VPS or dedi and set it up as your own little hosting server? If you bought a VPS or dedi you need to make sure PHP mailing capabilities are enabled I had this issue in the past a long time ago with a website I used to run.

Click this link if you manage your own hosting on dedi or VPS:
http://lmgtfy.com/?q=enable+centos+to+send+mail+php



If you are using regular shared hosting and you are sure your PHP script is fine (sending an email really isn't hard, not easy to get that wrong), then send a ticket to your hosting about this. 🤝


Possibly Related Threads...
Thread / Author Replies Views Last Post
by OVH SasApr 27, 2015 03:47 PM 4 217 Apr 27, 2015 03:47 PM
Last Post: G*59
[Looking] by NoSuchAgencySep 13, 2014 01:01 PM 0 77 Sep 13, 2014 01:01 PM
Last Post: NoSuchAgency
by SIM-1534439Aug 17, 2014 03:06 PM 7 175 Aug 17, 2014 03:06 PM
Last Post: SIM-1534439