Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    May 2011
    Posts
    13
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Arrow PHP Paypal autoresponder Mail Configuration.

    I wish to send an email to the customer after a purchase through Paypal.

    I am having all the variables sent to my site and database through www.mysite.com/my_ipn.php

    In order to mail the customer the code i have is:
    PHP Code:
    mail("$receiver_email""Order Processed!""Message Body here!""From: me@myemail.com"); 
    However this doesn't seem to be successful...

  • #2
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts
    try this;

    PHP Code:
    if(mail($receiver_email"Order Processed!""Message Body here!""From: me@myemail.com")){
       echo 
    'mail sent';
    } else {
       echo 
    'error, mail could not be sent';

    if it doesn't work you may need to check with your host.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •