Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Email notifications not working on 1.1.12 install on GoDaddy

Aloittaja SeaChaser, tammikuu 20, 2011, 02:59:41 AP

« edellinen - seuraava »

SeaChaser

Got my first ever forum up and running on Go Daddy. SMF is great. I may be in the minority based on my search but GoDaddy has been good to me so far.

I can't get the SMF email to function properly. It won't send out email notifications or newsletters. I am using the PHP setting. I called Go Daddy and they had me add my admin email addy to the formmailer but still nothing.

My searches show others with this problem but none with a solution. Any help would be appreciated. The good news is that I l;earned about GoDaddy backups, Java SMF backup among a bunch of other good tips while doing extensive searches for a solution.

Thanks in advance,

-Dan

Illori

there are a few posts here on godaddy and how they are oversellers, also there are a few posts here on how people have issues configuring their email. you may want to look to another host, and google to fix your email issue. smf staff may or may not know how to configure certain things like email on every server, a lot of this is left to the admin and their host to get it working correctly.

JimM

#2
I've seen several topics about this same issue.  This seems to be a GoDaddy issue, IMO.  However I'll attach a small script to this post that you can use to test the PHP email.  Open it in a good text editor like notepad++ and add your email address in the first line.  Upload the script to the same location as your SSI.php and call it from your browser.  Post the results here.

<?php
$email 
'[email protected]';


global 
$context$scripturl$modSettings;

error_reporting(E_ALL);

echo 
'First Mail Results: ';
// First test.. Direct email sending.
if(mail($email'First Test in testing''This is a test message does it get emailed?'))
echo 
'We sent the email<br />';
else
echo 
'We failed to send the email<br />';

// Second test.. Strings..

$subject 'Second Test';
$msg 'This is the message. Do we get it?';

echo 
'Second Mail Results: ';
if(
mail($email$subject$msg))
echo 
'We sent the email<br />';
else
echo 
'We failed to send the email<br />';

// Third and final test.. Include strings to send.
require_once('Settings.php');
require_once(
$boarddir '/Themes/default/languages/index.english.php');

echo 
'Third Results: ';
if(
mail($email$txt[106], ($txt[152] . ' ' $txt[164] . ' ' $txt[153])))
echo 
'We sent the email<br />';
else
echo 
'We failed to send the email<br />';

echo 
' Now Check your inbox, spam or whereever for your mail';
?>

Jim "JimM" Moore
Former Support Specialist

ubuntuaddicted

been using SMF 1.1.11 and using godaddy as the host (since back in May 2010 that I am aware of). Out of no where the email notifications regarding forums private messages and or topic reply's have suddenly stopped working. Meaning I don't get any  emails anymore whether someone reply's a topic i was watching or if someone send me a PM on the forums.

I am trying to help the admin of the forums with all this as he has stated he is unsure what he is doing or why it stopped working because he didn't change anything. To be honest this is my first experience with SMF and godaddy as well but I love trying to figure this stuff out ever since i converted to Ubuntu over 7 years ago.

He is attempting to use the SMTP relay server of godaddy which we have read is hxxp:smtpout.secureserver.net [nonactive] and to set the port to 80. The username and password are that of the email account he registered with godaddy per this post about SMF 1.1.12. http://www.simplemachines.org/community/index.php?topic=417709.20  We are still getting the errors in the log though that look like this: ""Couldn't get mail server response codes"
Any help would be appreciated.

Illori

this is not an issue with smf as stated above, please contact your host for support.

JimM

@ ubuntuaddicted - as Illori mentioned this is not a SMF issue.  Please have your friend contact GoDaddy.
Jim "JimM" Moore
Former Support Specialist

ubuntuaddicted

Lainaus käyttäjältä: JimM - tammikuu 23, 2011, 02:51:31 IP
I've seen several topics about this same issue.  This seems to be a GoDaddy issue, IMO.  However I'll attach a small script to this post that you can use to test the PHP email.  Open it in a good text editor like notepad++ and add your email address in the first line.  Upload the script to the same location as your SSI.php and call it from your browser.  Post the results here.

<?php
$email 
'[email protected]';


global 
$context$scripturl$modSettings;

error_reporting(E_ALL);

echo 
'First Mail Results: ';
// First test.. Direct email sending.
if(mail($email'First Test in testing''This is a test message does it get emailed?'))
echo 
'We sent the email<br />';
else
echo 
'We failed to send the email<br />';

// Second test.. Strings..

$subject 'Second Test';
$msg 'This is the message. Do we get it?';

echo 
'Second Mail Results: ';
if(
mail($email$subject$msg))
echo 
'We sent the email<br />';
else
echo 
'We failed to send the email<br />';

// Third and final test.. Include strings to send.
require_once('Settings.php');
require_once(
$boarddir '/Themes/default/languages/index.english.php');

echo 
'Third Results: ';
if(
mail($email$txt[106], ($txt[152] . ' ' $txt[164] . ' ' $txt[153])))
echo 
'We sent the email<br />';
else
echo 
'We failed to send the email<br />';

echo 
' Now Check your inbox, spam or whereever for your mail';
?>


was going to run this test on our SMF site but need clarification as what you mean when you say, "call it from your browser. " ALso, when trying this test i need to have the mail setting set at PHP Default but what other settings should also be set. I guess I am asking that if I were to be using the default mail method with SMF which is PHP, what other settings in the mail section need to be set and to what. Im afraid the admin just started randomly started changing things and didn't note how it worked previous to whatever godaddy changed something. I am asking because we may be going to a new host. Thanks for any support guys.

Illori


SeaChaser


JimM

@ ubuntuaddicted - yes you would need to set the mail back to the PHP default.  You shouldn't need anything else set under the mail settings.  If you save the script as I mentioned you would call it with your browser  y adding the file name to the end of your forum URL.  If you name the file email.php it would look like this:

www.yourdomain.com/email.php

You might want to take a look at the topic that SeaChaser posted as well.

@ SeaChaser - glad you got it resolved.  Feel free to mark this topic solved by clicking the Mark Topic Solved link on the bottom left of the page.
Jim "JimM" Moore
Former Support Specialist

DDPI01

#10
::: edit,

Got it working,  didnt change anything just started working..

::::



@JimM 

I ran your php  code  and here are my results.


First Mail Results: We sent the email
Second Mail Results: We sent the email
Third Results:
Notice: Undefined offset: 106 in /home/content/D/D/P/DDPIAdmin/html/smf2.0/mail.php on line 32

Notice: Undefined offset: 152 in /home/content/D/D/P/DDPIAdmin/html/smf2.0/mail.php on line 32

Notice: Undefined offset: 164 in /home/content/D/D/P/DDPIAdmin/html/smf2.0/mail.php on line 32

Notice: Undefined offset: 153 in /home/content/D/D/P/DDPIAdmin/html/smf2.0/mail.php on line 32
We sent the email
Now Check your inbox, spam or whereever for your mail


I received the first and second emails.  not the third. 

Yet still can not send through the smf forum


:: just to add,

email is set to php and there are no settings in the other boxes

Illori

please open a separate topic for your issue. there is a thread around with a fix for godaddy try searching for it.

Advertisement: