Shop Script Software Order Notification Problem

Discussion in 'PHP' started by john_global, Jan 9, 2008.

  1. #1
    Hi,

    I am having a problem with shop script which I have installed on my site. This script requires editing of the php.ini file in order to send emails for order notification to customers and admin, but my hosting provider does not allow this. I need to get a work around solution or an alternative way to get the order mails to send. I am willing to pay anybody who can get this done for me. I have been told I can use PHP mailer.

    Thanks for your help.

    Regards,

    John!
     
    john_global, Jan 9, 2008 IP
  2. Dagon

    Dagon Active Member

    Messages:
    122
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Which script are you using?

    You can override many php.ini settings with ini_set();
     
    Dagon, Jan 9, 2008 IP
  3. john_global

    john_global Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I don't really know much about php, how would I use ini_set() to override those settings? (premium)

    These are the settings that need to be changed but my host does not allow this, they have suggested I use phpmailer which I have no idea how to do.

    On Windows systems mail goes through SMTP server. You must specify correct SMTP settings in your php.ini file.:

    [mail function]
    SMTP = server address (e.g. smtp.myprovider.com)
    smtp_port = SMTP server port number (e.g. 25)
     
    john_global, Jan 10, 2008 IP
  4. Dagon

    Dagon Active Member

    Messages:
    122
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #4
    At the top of your script:

    ini_set("smtp","mail.yourdomain.com");
    ini_set("smtp_port","25");
     
    Dagon, Jan 10, 2008 IP
  5. john_global

    john_global Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thank you for the help, but I have no experience in php so my problem is which script do I put that code into?
    I am sorry if I soumd like an idiot!!
     
    john_global, Jan 10, 2008 IP
  6. Dagon

    Dagon Active Member

    Messages:
    122
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #6
    You should put it in the script which actually sends the mail. If you have no clue, just put it in the config file (something like config.php probably).
     
    Dagon, Jan 10, 2008 IP
  7. john_global

    john_global Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thanks again for your help, but I cannot find any config.php file, the only file I can find similar to that is config_file.class. I don't know if this is the right file though. I also have a file called class.smtp.php I don't know if this is the file that is used to send the orders.
     
    john_global, Jan 10, 2008 IP
  8. Dagon

    Dagon Active Member

    Messages:
    122
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #8
    try putting it in class.smtp.php like this:

    <?php
    ini_set("smtp","mail.yourdomain.com");
    ini_set("smtp_port","25");

    class {
    ...
    ?>

    See if it works :)
     
    Dagon, Jan 10, 2008 IP
  9. john_global

    john_global Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I tried that but it did not work. I also tried a file called function.mailto.php but that didn't work either
    Any other ideas, or would you be interested in looking at it for me?
     
    john_global, Jan 10, 2008 IP
  10. Dagon

    Dagon Active Member

    Messages:
    122
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #10
    ok i'll take a quick look at it
     
    Dagon, Jan 10, 2008 IP
  11. john_global

    john_global Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Thank you, what do you need from me to set this up?
     
    john_global, Jan 10, 2008 IP
  12. Dagon

    Dagon Active Member

    Messages:
    122
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #12
    Change your ftp password to a temporary one and pm me the details
     
    Dagon, Jan 10, 2008 IP
  13. john_global

    john_global Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    PM sent, Thanks again!
     
    john_global, Jan 10, 2008 IP