View Full Version : vtiger CRM - out going mail settings
ecaboodle
11-09-2008, 06:54 AM
I have installed and have running vtiger, love it think it's great, however I can't seem to get the out going mail settings right.
Have tried mail.domainname.com with a vaild username and password, but with no luck, any help would be great.
Thanks
tlhallums
11-09-2008, 01:11 PM
In the vitger_root/modules/Emails/ folder, you will find a file called 'mail.php'. At around line 48/49 of that file, there is a call to the function setMailerProperties() as shown below:
setMailerProperties($mail,$subject,$contents,$from _email,$from_name,$to_email,$attachment,$emailid);
If you look into the parameter list of the function, it has used the $mail object as a value parameter.
I replaced the function call with the following and my email is working.
setMailerProperties(&$mail,$subject,$contents,$from_email,$from_name,$t o_email,$attachment,$emailid);
Yes, nothing other than passing $mail as a reference instead of value. That means, I just added a '&' before the $mail in the parameter list.
I hope it works for you. It took me all morning this morning to fart around with this one, too.
ecaboodle
11-25-2008, 07:14 AM
Hi tlhallums,
Tried your setting change but still getting the following error:
Mail could not be sent to the admin user. Please check the admin emailid/Server settings
Regards
Matthew
dexterisys
12-20-2008, 12:40 PM
In the vitger_root/modules/Emails/ folder, you will find a file called 'mail.php'. At around line 48/49 of that file, there is a call to the function setMailerProperties() as shown below:
setMailerProperties($mail,$subject,$contents,$from _email,$from_name,$to_email,$attachment,$emailid);
If you look into the parameter list of the function, it has used the $mail object as a value parameter.
I replaced the function call with the following and my email is working.
setMailerProperties(&$mail,$subject,$contents,$from_email,$from_name,$t o_email,$attachment,$emailid);
Yes, nothing other than passing $mail as a reference instead of value. That means, I just added a '&' before the $mail in the parameter list.
I hope it works for you. It took me all morning this morning to fart around with this one, too.
Can anyone help me with the same problem? - I can't set my newly installed version of vtiger CRM and can't find the file mentioned by tlhallums above (my version is 5.0.4 - not sure which version he is referring to here).
Anyone have any advice??
mediamagix
01-20-2009, 03:12 AM
My english is not good... sorry.
I had the same problem... the only have to do is put "localhost" instead "mail.domain.com" with your login data.
its work try it. :rolleyes:
Cool Breeze
04-06-2009, 03:15 PM
Tried the "&" tip above but had no luck with the Outgoing.
Was having this same issue and was dousing the pc with gasoline when I realized I had to include the port number!
mail.domainname.com:26
When you configure a new email address, you can look at the general email account setup settings provided by bluehost they will tell you the port number.
puppyblooms.com
06-04-2009, 09:15 AM
Thanks for the tip on adding a port. I think I spent almost 2 hours reading through several pages of forums and trying different things that didn't work. This worked right away. I'm new to this, so there's a bit of a learning curve to begin with. :)
seabro
07-19-2009, 03:25 AM
for me, using localhost in server name field, and nothing in username and password fields did the trick.
Oruen
03-12-2010, 07:40 AM
Thanks for all of these tips, it helped me a lot.
However, I still have a problem with sending e-mails. When I try to send one, I get an error:
Warning: Invalid argument supplied for foreach() in /home2/vtiger/public_html/vtigercrm/include/utils/CommonUtils.php on line 2675
Does anyone know how to solve this one?
Ubunter35
06-20-2010, 03:08 AM
In the vitger_root/modules/Emails/ folder, you will find a file called 'mail.php'. At around line 48/49 of that file, there is a call to the function setMailerProperties() as shown below:
setMailerProperties($mail,$subject,$contents,$from _email,$from_name,$to_email,$attachment,$emailid);
If you look into the parameter list of the function, it has used the $mail object as a value parameter.
I replaced the function call with the following and my email is working.
setMailerProperties(&$mail,$subject,$contents,$from_email,$from_name,$t o_email,$attachment,$emailid);
Yes, nothing other than passing $mail as a reference instead of value. That means, I just added a '&' before the $mail in the parameter list.
I hope it works for you. It took me all morning this morning to fart around with this one, too.
Hi all,
I don't if this issue had been solved, but for my suddenly:mad: not... I mean, the outgoing mail was working automatic, just now we moved the server from siteground to gator, and it's not working...
I did as you explain replacing the function, it's not working..
I add the port for gmail, it's not working... I put the local host instead of the smtp, it's not working...
Any update, or suggestion?
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.