QUOTE(TimHensel @ Jun 8 2007, 10:59 AM)

QUOTE(trogfish @ Jun 8 2007, 12:02 AM)

I can get mail() to work on bluehost.com; but I cannot figure out the right combination to get smtp mail to work with bluehost.
I am successfully using thunderbird to use my bluehost mail; but cannot make cubecart to work correctly.
As I said, mail() works, but I don't know if that is secure enough?>!!!
Thanks to all in advance....
I use SMTP with Bluehost for my site (jammaboards.com):
CODE
Mail Sending Method: SMTP
SMTP Host: mail.jammaboards.com
SMTP Port: 26
Use Authentication? No
Thanks for your response! I had contacted bluehost support and got this:
CODE
This configuration should work for any script SMTP connection running on our server:
Server: localhost
User name/Email: Full email address all lower case letters, must be created
Password: the password to that email address
Port: 25
So, here's my series of tests:
Curiously, when I tried these settings, cubecart says mail has been sent, without errors; BUT
no mail is actually received. (I am testing multiple recieving accounts simultaneously.)
CODE
Mail Sending Method: SMTP
SMTP Host: mail.smilingcharleys.com
SMTP Port: 26
Use Authentication? NO
SMTP USERNAME: blank
SMTP PASSWORD: blank
Then I try:
CODE
Mail Sending Method: SMTP
SMTP Host: mail.smilingcharleys.com
SMTP Port: 25
Use Authentication? NO
SMTP USERNAME: blank
SMTP PASSWORD: blank
AND GET:
CODE
Warning: fsockopen() [function.fsockopen]: unable to connect to mail.smilingcharleys.com:25
(Connection refused) in /home/smilingc/public_html/ccart/classes/smtp.php on line 87
Warning: fsockopen() [function.fsockopen]: unable to connect to mail.smilingcharleys.com:25
(Connection refused) in /home/smilingc/public_html/ccart/classes/smtp.php on line 87
Recipient: smilingc@smilingcharleys.com
SO, I went back to port 26, but only then used 'localhost'
CODE
Mail Sending Method: SMTP
SMTP Host: localhost <actually filled in, not blank
SMTP Port: 26
Use Authentication? NO
SMTP USERNAME: blank
SMTP PASSWORD: blank
Recieved no errors: "The bulk emailer has completed its task successfully"; BUT no recipients recieved mail.
THEN I TRIED:
CODE
Mail Sending Method: SMTP
SMTP Host: localhost
SMTP Port: 26
Use Authentication? NO
SMTP USERNAME: webserver@smilingcharleys.com
SMTP PASSWORD: *actual password*
FYI: webserver@smilingcharleys is a valid account. I have sent and recieved mail with that account from squirrelmail.
AHA! Success!Lastly, I turned authenticate: YES
CODE
Mail Sending Method: SMTP
SMTP Host: localhost
SMTP Port: 26
Use Authentication? yes
SMTP USERNAME: webserver@smilingcharleys.com
SMTP PASSWORD: *actual password*
ThAT, Also worked!!!!!
Then, just to complete the experiment;
CODE
Mail Sending Method: SMTP
SMTP Host: localhost
SMTP Port: 26
Use Authentication? no
SMTP USERNAME: webserver@smilingcharleys.com
SMTP PASSWORD: blank
no cubecart errors; but no mail recieved
AND THEN;
CODE
Mail Sending Method: SMTP
SMTP Host: localhost
SMTP Port: 26
Use Authentication? no
SMTP USERNAME: nosuchthing@smilingcharleys.com
SMTP PASSWORD: blank
no cubecart listed errors; but no mail recieved
So, as weird as it seems, the conclusion is: to use SMTP the username and password must be accurate, even if Authenticate is 'no'; PLUS, bluehost documentation says port 25; When in reality port 26 is required. I don't know where to look for logs, so I am not sure if it's a 'cubecart-thing' or a 'hosting thing'.
WHEW. That was harder than it needed to be.
I am going to send this info to bluehost; hopefully no one else has to go through all this!