HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Emails Not Being Sent

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#32484 (In Topic #7371)
Joe
Avatar

Honoured member

I noticed ocPortal doesn't send emails out. I've made numerous backups of the site in the past few weeks, and not once have I ever received an email stating the backups were completed. My board sends out emails fine without any problems. :/

Also, I've been testing out certain sections of the site, and after signing up for a POP3 email account via the Point-Store, I don't receive those emails either.

Back to the top
 
Posted
Rating:
#32490
Avatar

Community saint

I remember having this problem some time back but I thought it was fixed and have not tried it in the newest version.
I could try it now and see what it does.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#32491
Avatar

If e-mails aren't going out then it's probably a configuration or spam-filtering problem. If you have set up SMTP details in ocPortal's configuration, try without SMTP details (i.e. using PHP's inbuilt mailer); and if you haven't tried setting up SMTP details, try doing that.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#32506
Joe
Avatar

Honoured member

SMTP authentication not supported (502 unimplemented (#5.5.1) )

Back to the top
 
Posted
Rating:
#32522
Avatar

Community saint

Joe,

My two-cents worth. I've always had a problem with this element and it boils down to being 'server-specific-setup', or rather, 'host-specific'

My hosts are pretty parsimonious with this facility, so my setup in:

Admin >> Configuration >> Site options >> SMTP

is set to "Host: smtp.<your domain name>.com" (where <your domain name>=your domain/account name). The rest I've left blank.

Works for me, so why not give it a try?

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#32530
Joe
Avatar

Honoured member

PHP WARNING [2] fsockopen(): php_network_getaddresses: getaddrinfo failed: No address associated with hostname (ocPortal version: 3.1.6, PHP version: 4.4.1, URL: /site/index.php?page=pointstore&type=__newpop3&id=pop3)


Code

File  '/home/<hidden>/public_html/<hidden>/sources/global2.php'  
Line  '700'  
Function  'get_html_trace'  
Args   

File  '/home/<hidden>/public_html/<hidden>/sources/global2.php'  
Line  '425'  
Function  'clean_exit'  
Args  'PHP WARNING [2] fsockopen(): php_network_getaddresses: getaddrinfo failed: No address associated with hostname'
 

Function  'ocportal_error_handler'  
Args  2

'fsockopen(): php_network_getaddresses: getaddrinfo failed: No address associated with hostname'

'/home/<hidden>/public_html/<hidden>/sources/mail.php'

237
 

File  '/home/<hidden>/public_html/<hidden>/sources/mail.php'  
Line  '237'  
Function  'fsockopen'  
Args  'smtp.<domain>.com'

25

0

''

30
 

File  '/home/<hidden>/public_html/<hidden>/sources/hooks/modules/pointstore/pop3.php'  
Line  '215'  
Function  'mail_wrap'  
Args  'Point-store: POP3 account request'

'<hidden_info>'
 

Function  '__newpop3'  
Class  'hook_pointstore_pop3'  
Type  '->'  
Args   

File  '/home/<hidden>/public_html/<hidden>/site/pages/modules/pointstore.php'  
Line  '218'  
Function  'call_user_func'  
Args  array
 

File  '/home/<hidden>/public_html/<hidden>/sources/zones.php'  
Line  '305'  
Function  'run'  
Class  'module_pointstore'  
Type  '->'  
Args   

File  '/home/<hidden>/public_html/<hidden>/sources/site.php'  
Line  '637'  
Function  'load_module_page'  
Args  'site/pages/modules/pointstore.php'

'pointstore'
 

File  '/home/<hidden>/public_html/<hidden>/sources/site.php'  
Line  '510'  
Function  'request_page'  
Args  'pointstore'

true
 

File  '/home/<hidden>/public_html/<hidden>/site/index.php'  
Line  '42'  
Function  'do_site'  
Args  

Back to the top
 
Posted
Rating:
#32534
Joe
Avatar

Honoured member

I contacted my host, and they said that the hostname would be mail.domain.com.

Seeing as authentication is "not supported" by the server, I've left the username and password fields blank, while inputting "mail.mydomain.com" as the hostname, however, I still get an error.

Code

Destination address not accepted (553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) )

Back to the top
 
Posted
Rating:
#32537
Avatar

I wouldn't imagine they'd be much help with talking about SMTP connections. A more direct "why won't PHP send mail" question seems more apt - because none of this manual SMTP stuff should really be necessary (PHP should itself contain this kind of configuration, and ocPortal's SMTP connector that these config options relates to exist for exceptional circumstances only).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#32539
Avatar

Community saint

Joe said

I contacted my host, and they said that the hostname would be mail.domain.com.

Seeing as authentication is "not supported" by the server, I've left the username and password fields blank, while inputting "mail.mydomain.com" as the hostname, however, I still get an error.

Code

Destination address not accepted (553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) )

that error sounds like they require SMTP athentication. with how many times I have heard customers read that off to me I am sure thats what it is.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#32540
Joe
Avatar

Honoured member

No, because when I specify a username and password, it gives me "Not supported" errors, meaning the server does not accept authentication.

There is something wrong within ocPortal. I never had problems with outgoing email messages when I first installed ocPortal a long time ago. Any ideas on how to fix it? I need the ability to email members which is a higher importance than anything else, as it would be with other communities as well.

Back to the top
 
Posted
Rating:
#32542
Avatar

Community saint

have you tried the php send mail?

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#32549
Joe
Avatar

Honoured member

That's what it was set to at first. Although I wasn't getting any errors, I wasn't receiving the emails either. :P

Back to the top
 
Posted
Rating:
#32552
Avatar

If you want to try and diagnose PHP's mailer yourself, the actual call is on line 330 of sources/mail.php. You could try substituting lines such as any of the following to try and see what happens (these aren't fixes, but might give a better idea of what's happening…

Code

$worked=mail($to,$tightened_subject,$sending_message,$headers); // Try sending to e-mail address without specifying the recipients name

$worked=mail($to_name.' <'.$to.'>','test','test',''); // Test subject and message

$worked=mail('you@example.com',$tightened_subject,$sending_message,$headers); // Try and force your own email address, in case you mistyped it

exit('yes, I really am trying to send mail via PHP'); // One should expect this message to come up -- if it doesn't, then ocPortal's own SMTP is being used

A good tool to send test mails is the "recommend site" module.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#32559
Joe
Avatar

Honoured member

This does nothing:

Code (php)

$worked=mail($to,$tightened_subject,$sending_message,$headers); // Try sending to e-mail address without specifying the recipients name


This sends a TEST email which IS received:

Code (php)

$worked=mail($to_name.' <'.$to.'>','test','test',''); // Test subject and message


This does what it's supposed to:

Code (php)

exit('yes, I really am trying to send mail via PHP'); // One should expect this message to come up -- if it doesn't, then ocPortal's own SMTP is being used


This does nothing:

Code (php)

$worked=mail('you@example.com',$tightened_subject,$sending_message,$headers); // Try and force your own email address, in case you mistyped it

Also, there seems to be a problem with the Recommend module. When I press submit, I get this error:
Unfortunately a query has failed [INSERT INTO ibf_f_invites (i_inviter, i_email_address, i_time, i_taken) VALUES ('1', 'thisisanemail@example.com', 1181075869, 0)] [Table '<dbname>.ibf_f_invites' doesn't exist] (ocPortal version: 3.1.6, PHP version: 4.4.1, URL: /index.php?page=recommend&type=actual)

here is the stack trace:

Code

File  '/home/<hidden>/public_html/<hidden>/sources/global2.php'  
Line  '700'  
Function  'get_html_trace'  
Args   

File  '/home/<hidden>/public_html/<hidden>/sources/database/mysql.php'  
Line  '171'  
Function  'clean_exit'  
Args  object
 

File  '/home/<hidden>/public_html/<hidden>/sources/database.php'  
Line  '627'  
Function  '_db_query'  
Args  'INSERT INTO ibf_f_invites (i_inviter, i_email_address, i_time, i_taken) VALUES (\'1\', \'thisisanemail@example.com\', 1181075869, 0)'

array

NULL

NULL

false

false
 

File  '/home/<hidden>/public_html/<hidden>/sources/database.php'  
Line  '323'  
Function  '_query'  
Class  'database_driver'  
Type  '->'  
Args  'INSERT INTO ibf_f_invites (i_inviter, i_email_address, i_time, i_taken) VALUES (\'1\', \'thisisanemail@example.com\', 1181075869, 0)'

NULL

NULL

false

false
 

File  '/home/<hidden>/public_html/<hidden>/pages/modules/recommend.php'  
Line  '152'  
Function  'query_insert'  
Class  'database_driver'  
Type  '->'  
Args  'f_invites'

array
 

File  '/home/<hidden>/public_html/<hidden>/pages/modules/recommend.php'  
Line  '60'  
Function  'actual'  
Class  'module_recommend'  
Type  '->'  
Args   

File  '/home/<hidden>/public_html/<hidden>/sources/zones.php'  
Line  '305'  
Function  'run'  
Class  'module_recommend'  
Type  '->'  
Args   

File  '/home/<hidden>/public_html/<hidden>/sources/site.php'  
Line  '637'  
Function  'load_module_page'  
Args  '/pages/modules/recommend.php'

'recommend'
 

File  '/home/<hidden>/public_html/<hidden>/sources/site.php'  
Line  '510'  
Function  'request_page'  
Args  'recommend'

true
 

File  '/home/<hidden>/public_html/<hidden>/index.php'  
Line  '104'  
Function  'do_site'  
Args  

Back to the top
 
Posted
Rating:
#32560
Avatar

Community saint

Pretty colors. Looks like an bug to me.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#32562
Joe
Avatar

Honoured member

*Hugs syntax highlighting*

Back to the top
 
Posted
Rating:
#32563
Avatar

Kudos for going through those :).

Bug confirmed and fixed:
ocPortal &ndash; Entry: Recommend module fails for non-OCF users
(hopefully this run of bugs your finding won't go on much longer ;))

Do you want to send off an e-mail to chris@ocportal.com, then I'll see if I get it. The advantage here is if it's a problem on the receiving end, I can actually look through my servers logs to see if there is any indication there.

If this doesn't get us anywhere, I'll offer to take a look on the sending side myself.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#32564
Joe
Avatar

Honoured member

Ok, what should line 330 be in sources/mail.php so I can send you the email? I'd revert to the default, but I don't remember what was there. :P

Back to the top
 
Posted
Rating:
#32565
Avatar

lol.

Code

         $worked=mail($to_name.' <'.$to.'>',$tightened_subject,$sending_message,$headers);


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#32566
Avatar

Community saint

Bugs I could not find too. I swear I tested a lot too but not sending.  :lol:

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Expand