Help - Search - Members - Calendar
Full Version: bluehost smtp email
CubeCart Forums > CubeCart Version 3 > Installation & Upgrade Help (Version 3)
trogfish
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....
Brivtech
Have you contacted your host?
trogfish
QUOTE(Brivtech @ Jun 8 2007, 08:20 AM) *
Have you contacted your host?

No, but I can. I have used my thunderbird settings, and several configurations with no luck. Since outgoing smtp works in thunderbird, I thought there was something in cubecart I was not getting right. So, I thought I'd ask here first.

Is there any other documentation for cubecart beside the install guide? I would like to have a more comprenhensive all-in-one instruction manual that I can refer to. For example, I'd like to know how the file structure is layed out. When index.php is built, what components in what order are called upon? There is great help on the web, but it is so scattered. Frankly, I don't like the search function of this forum. I find it counter-intuitve. I'd rather read a manual than slog through dozen year old periperally related forum posts. Maybe just me.
TimHensel
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


Then just your regular e-mail address and password and that should work fine.
I never tried changing the Use Authentication is Yes...Hmmm should work though.
trogfish
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!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.