Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Help! Does Mail() Function Work With Qupis Free Account?


4 replies to this topic

#1 lnljamat

    Newbie

  • Kontributors
  • Pip
  • 4 posts

Posted 17 April 2010 - 08:30 PM

hi,

ive made a script to send an email using the mail() function in php here is the script:
$email_content = "hello world";
 $email =  someone@somehost.com;	//used an actual email in the original script
 $email_subject = "Hello";
 $user_email = "someone@somehost.com";
 $headers = "From: $user_email";

 if(mail($email,$email_subject , $email_content , $headers))
 {
  print"Email: $email_content - has been sent";
 }
 else print"Email Failed";
}

when i run the script, it says the email has been sent, meaning it has to be sent (or else there would be an error), however i dont recieve any emails on my email account, i checked the php_ini file for the qupis server and the SMTP server is localhost,
could this be the problem?
or does qupis not allow sending of emails?
if so is there anyway to change the php_ini file?

if anyone can shed some light on this matter!

#2 Rigaudon

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 101 posts
  • Gender:Male
  • Location:<?php echo __FILE__; ?> in other words, right behind you.
  • myCENT:50.57

Posted 19 April 2010 - 08:54 PM

If it says sent, the it's obviously not something wrong with your code. However, when an email is sent through SMTP, it goes through many different servers and spam filters.

Some potential fixes:

1) Try adding more standard information into the header and make the content not so spam-like.

2) Make sure the SMTP server is what qupis says it should be, and if not, change it.

3) The email user should also be defined in the php.ini. To see where it is, use phpinfo().

4) If all else fails, you may want to download and try phpmailer.

#3 galexcd

    Trap Grand Marshal Member

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPip
  • 1,331 posts
  • Gender:Not Telling
  • myCENT:89.24

Posted 26 May 2010 - 06:43 AM

Do you have shell access to the server you are running this on? Can you tunnel into it? If so, try using the shell to mail the message. Depending on if it successfully sends or not, you'll know if the issue is with php or your outgoing mail server.

#4 andresf91

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 128 posts
  • Gender:Male
  • Location:Montevideo, Uruguay
  • myCENT:9.84

Posted 28 June 2010 - 03:33 AM

Two theories:
1. I don't know really about Qupis, but some free hosts take some time to send emails. I hope it's not the case, but it might be an explanation. And they probably arrived to your account a few hours later.
2. I understand that you have changed the email address you actually try to send emails to, but I noticed that $email doesn't have quotes. Most probably, they were lost when you replaced the address. If not, I know that PHP should have SHOUTED error immediately, unless you have some special debug mode in your account which disables error alerts and messages. That's another theory.

#5 OpaQue

    Administrator

  • Admin - The Official Guru
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1,894 posts
  • Gender:Male
  • Location:Somewhere in Time & Space.
  • Interests:Discovering Myself.
  • myCENT:55.78

Posted 28 June 2010 - 12:07 PM

Qupis has mail() function disabled. This has been done to fight spam. Please use SMTP function inside PHP to send emails. Qupis gives free hosting with practically all features provided by other hosting packages... except the php mail() function. Even though, We do not have Safe Mode ON, still some critical functions that can cause big time abuse have been disabled.

To get Hosting with all features, signup with computinghost or knowledgesutra to get a free hosting account without ads or limitations.




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users