Gmail + SMTP + Linux + Email library |
[eluser]chik3n[/eluser]
Hi, I have readed many posts about this problem but still I have some problems my initial config looks like this : Quote: $configmail = array( and the part of code that sends the mail : Quote: $this->email->from('[email protected]', 'name'); and still I get this kind of output : Quote:220 mx.google.com ESMTP s10sm13968098mue.27 I have this on Linux Debian server if u want some kind of output just say. Can any one help me with this problem ?
[eluser]2think[/eluser]
Hi chik3n, Few things to check since I had problems initially on Fedora: 1. Make sure your iptables (firewall) allows outbound and inbound on that port. Looking over your error return message I think you may be ok with that. 2. In your username in your config, make sure you put [email protected]. That is, include the @gmail.com part.
[eluser]chik3n[/eluser]
Here is the thing, I'm using other php script from php classes to send email via php and gmail and it works just fine so something must be wrong in codeigniter, as for the firewall is all ok because that other script is working on the same port :/. Any other ideas ? Oh right I putted the '@gmail.com' on the end of the login and same story, nothing, is that posible that the problem is I got dots in login name ? Edit: I'd try another email where login dont have dots, same thing :/.
[eluser]2think[/eluser]
Wish I knew more about SMTP but give this a try: ‘smtp_host’ => ‘ssl://smtp.googlemail.com’,
[eluser]eoinmcg[/eluser]
have you tried logging in to this gmail account via your browser? some times when sending lots of test mails gmail thinks you're spamming and suspends the account.
[eluser]chik3n[/eluser]
Yes I can log in via the browser on the account so that is not the problem and I was trying to send only 3-7 email in period of 10-30 minutes so I think that spam we can canceled as well.
[eluser]eoinmcg[/eluser]
just tried your code (with my gmail account) and also got a timeout error. compared it with some working code and it seems gmail doesn't like either all or a combination of setting wordwrap, mailtype, charset and not setting new line char... Code: $configmail = array( Obviously you could be a bit more scientific and investigate which of these is causing the problem and why
[eluser]chik3n[/eluser]
Still nothing, I try everything, even creating an new controler only to send one email and still nothing :/. Any other ideas ?
[eluser]theshiftexchange[/eluser]
this is my email config for gmail which works: Code: $config['protocol'] = 'smtp'; I cant remember - do you need to enable smtp in your gmail account or something mayube? |
Welcome Guest, Not a member yet? Register Sign In |