Mail Server Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationMail Server Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 23rd, 2004, 09:35 PM
Slybone Slybone is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 2 Slybone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Issues Sending Mail using php

ok here is my thing... I made a PHP script that when access Cron/manually I want it to send a email to the designated email. The Script I used was
Code:
<?php
//start reusable script
$emails = "DESIGNATED@EMAIL.com";
$subject = "This Weeks Allowance";
$body = "Hey dad\n Can You please give me Today\'s allowance when you have a chance?";
$from = "From: Whatever@haha.com";

$subject = addslashes($subject);
$body = addslashes($body);

mail($emails, $subject, $body, $from);


 
 ?>


problem is when accessed it doesnt send the email, and I tried it on someone elses server and it sent, which brings me to the conclusion that there is something wrong with my mail server. I have created a PHPinfo document for you guys to see if you can see anything wrong with it.

http://209.67.210.213/~sonsofaz/someone.php

Any help is appreciated

-Slybone

P.S. If I go to sonsofazeroth.net/webmail I can send mail out of there, just not the way im trying to do currently.

Reply With Quote
  #2  
Old September 27th, 2004, 01:44 AM
m7rgy m7rgy is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 3 m7rgy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
check your php.ini if phpmail are enabled or not.

regards.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationMail Server Help > Issues Sending Mail using php


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT