BadBuLL Posted May 16, 2004 Posted May 16, 2004 Since provider that's hosting my pages doesn't support mail() function I'm trying to configure so mail function would work through smtp. I disabled Send Extra Mail to functions as well... http://www.host.sk/mail-how-to.html I've uploaded class.smtp.php to \catalog\included\classes and edited email.php so now it's: /--- if (EMAIL_TRANSPORT == 'smtp') { // begin smtp authentication include(DIR_WS_INCLUDES . '/classes/class.smtp.php'); $smtp=new smtp(); $smtp->host_name = "localhost"; $smtp->localhost = "host.sk"; $smtp->SendMessage( $from, array( $to ), array( "From: $from", "To: $to", "Subject: $subject" ), $text ); } else { return mail($to, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers)); } } /--- I can recieve e-mail, customers can too but all mails don't have any text inside of it (empty). To, From and Subject fields are OK? Any ideas what's set wrong?
vasttech Posted May 16, 2004 Posted May 16, 2004 All I had to do was go into admin, and configuration, then e-mail options. There is a setting there to change from sendmail to smtp. If you select smtp, email.php uses the correct code through an if statement. You should not have had to edit email.php. osCommerce Knowledge Base osCommerce Documentation Contributions
BadBuLL Posted May 17, 2004 Author Posted May 17, 2004 You have account on host.sk and it worked without changing email.php? Not possible
BadBuLL Posted May 19, 2004 Author Posted May 19, 2004 Can any1 help, there's gotta be some setting so mail text will be shown?!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.