Copy link to clipboard
Copied
Hello,
first I will say great work david this is great book, and i found everything i neede in it.
I have one problem.
I have managed to get to lesson 8 and i couldnt wait so i started live project and incororated everything in it learned from this book.
But this is the problem.
I have hosting on bluehost which makes mail conector from lessons 7-8 with gmail not to send email in example when i try to recover forgoten password.
The scripts changes the token in database in users table, token is created, and i get message that the mail was sent but nothing comes to my mail.
Same password login and everything works local but on bluehost server wont send mail.
I contacted them and they said that i have to create mail on server from which mail will be sent.
I did that too.
But for what ever i put in mailconector array cant get that mail, and i really dont know what to do and who to ask.
Until this point i could get every problem solved put this bugs me because this is the last stage of what i was tryong to do and that is to incorporate login system from the book to live page.
this is the code i have:
<?php
$mailhost='ssl://mail.majapanic-tarot.com';
$mailconfig=array( 'auth' => 'true',
'username' => 'majapanic@majapanic-tarot.com',
'password' => 'password',
'ssl' => 'ssl',
'port' => '465');
$transport=new Zend_Mail_Transport_Smtp($mailhost,$mailconfig);
Zend_Mail::setDefaultTransport($transport);
and this is what they stated in info about the mail:
Mail Server Username: majapanic+majapanic-tarot.com >>>>>>>> this plus i think is (at)
Incoming Mail Server: mail.majapanic-tarot.com
Incoming Mail Server: (SSL) box344.bluehost.com
Outgoing Mail Server: mail.majapanic-tarot.com (server requires authentication) port 26
Outgoing Mail Server: (SSL) mail.majapanic-tarot.com (server requires authentication) port 465
Supported Incoming Mail Protocols: POP3, POP3S (SSL/TLS), IMAP, IMAPS (SSL/TLS)
Supported Outgoing Mail Protocols: SMTP, SMTPS (SSL/TLS)
Please HELP!
Copy link to clipboard
Copied
FIXED!!
1)
i finally did get the message problem was with:
$mailhost='ssl://mail.domain.com';
ssl:// was just nonsense and been removed
2)
'auth' => 'true' was changed to 'auth' => 'login'
3)
for bluehost i got information that it was tls secure connection protocol not ssl
'ssl' => 'tls'
4)
port used '25' not 465.
Didnt still tried 26 and 465 maybe they would work too.
Copy link to clipboard
Copied
Cool. I did initial reply to your post suggesting you remove the ssl:// as it is not part of a hostname - but then I ran accross this:
http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm
so I deleted my reply. I found other posts on the web that suggest it too, so it might depend on your host.
Glad you got it working.