Jump to content


Photo

php email help


  • Please log in to reply
4 replies to this topic

#1 Forum_Mod

Forum_Mod
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 08 June 2006 - 12:04 PM

when anyone replies to a thread or receives a PM they used to get an email from admin@*****.com saying they had a response to their thread but that has stopped for some reason. What has happened?

#2 poirot

poirot
  • Members
  • PipPipPip
  • Advanced Member
  • 646 posts
  • LocationAustin, TX

Posted 08 June 2006 - 01:28 PM

You mean here in this forum or on your site?

If it's on your server, it may be a server related problem. Try to code a test script yourself and make it call the mail() function. If you get no emails whatsoever, contact your server admin.

If not, there may be a problem with your script. To test mail():

**********
1. Create a file called test.php (use Notepad)

2. Copy and paste the code below [be sure to set the correct email]

<?php

mail('youremail@someplace.com', 'Testing php mail()', 'This is a test, blah blah blah');

?>

3. Save the file, upload it, and access it using the browser. (ie.: [a href=\"http://www.example.org/test.php)\" target=\"_blank\"]http://www.example.org/test.php)[/a]

4. Check if you get any email after executing the script (check bulk folder too)

5. Try different emails, it may also be a problem with your email provider.
~ D Kuang

#3 Forum_Mod

Forum_Mod
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 08 June 2006 - 02:24 PM

[!--quoteo(post=381351:date=Jun 8 2006, 08:28 AM:name=poirot)--][div class=\'quotetop\']QUOTE(poirot @ Jun 8 2006, 08:28 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
You mean here in this forum or on your site?

If it's on your server, it may be a server related problem. Try to code a test script yourself and make it call the mail() function. If you get no emails whatsoever, contact your server admin.

If not, there may be a problem with your script. To test mail():

**********
1. Create a file called test.php (use Notepad)

2. Copy and paste the code below [be sure to set the correct email]

<?php

mail('youremail@someplace.com', 'Testing php mail()', 'This is a test, blah blah blah');

?>

3. Save the file, upload it, and access it using the browser. (ie.: [a href=\"http://www.example.org/test.php)\" target=\"_blank\"]http://www.example.org/test.php)[/a]

4. Check if you get any email after executing the script (check bulk folder too)

5. Try different emails, it may also be a problem with your email provider.
[/quote]


It's on my forum.
When anyone replys to a thread or gets a PM the "admin@*******.com sends them an email telling them of this. this is not happening now and I don't know why.

#4 poirot

poirot
  • Members
  • PipPipPip
  • Advanced Member
  • 646 posts
  • LocationAustin, TX

Posted 08 June 2006 - 02:25 PM

[!--quoteo(post=381407:date=Jun 8 2006, 07:24 AM:name=Forum Mod)--][div class=\'quotetop\']QUOTE(Forum Mod @ Jun 8 2006, 07:24 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
It's on my forum.
When anyone replys to a thread or gets a PM the "admin@*******.com sends them an email telling them of this. this is not happening now and I don't know why.
[/quote]
What happens if you try what I had suggested?
~ D Kuang

#5 Forum_Mod

Forum_Mod
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 08 June 2006 - 02:34 PM

I havent done it as I'm not 100% where to upload it to. When I go into the forum provider page, then to mail set-up there is no accounts set-up.

So I go to: Auto-responder Maintenance


[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]
When configuring an autoresponder you can use the following tags to insert information into the message that is returned to the user:
%subject% The subject of the message that was sent to the autoresponder.
%from% The sender of the message that was sent to the autoresponder.
%email% The sender's email from the message that was sent to the autoresponder.
[/quote]


then set-up:
email: Admin@******.com
from: %from%
subject: %subject%

I thought if i created this with the tag '%' it should go to them when anyone responds to a thread they should get an email telling them of this.

Could it be the SMTP and port 25. I have heared that they somtimes get deleted, and if so how can I replace it?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users