+ Reply to Thread
Results 1 to 10 of 10

Thread: vtiger CRM - out going mail settings

  1. #1
    Join Date
    Nov 2008
    Posts
    2

    Lightbulb vtiger CRM - out going mail settings

    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

  2. #2
    Join Date
    Nov 2008
    Posts
    1

    Default vtiger outgoing email settings will require some programming corrections

    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,$fro m_email,$from_name,$to_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.

  3. #3
    Join Date
    Nov 2008
    Posts
    2

    Default Mail could not be sent to the admin user. Please check the admin emailid/Server setti

    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

  4. #4
    Join Date
    Dec 2008
    Posts
    1

    Default I'm having this problem as well!!

    Quote Originally Posted by tlhallums View Post
    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,$fro m_email,$from_name,$to_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??

  5. #5
    Join Date
    Jan 2009
    Posts
    1

    Default

    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.

  6. #6
    Join Date
    Apr 2009
    Posts
    1

    Default Finally a solution for me

    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.

  7. #7

    Smile Thanks Cool Breeze

    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.

  8. #8
    Join Date
    Jan 2009
    Posts
    3

    Default

    for me, using localhost in server name field, and nothing in username and password fields did the trick.

  9. #9
    Join Date
    Mar 2010
    Posts
    2

    Default

    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?

  10. #10
    Join Date
    Jun 2010
    Posts
    1

    Angry With me not working alsoooo

    Quote Originally Posted by tlhallums View Post
    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,$fro m_email,$from_name,$to_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 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?

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts