Nov 22, 2009
Pages: 1, 2

Email Problems - cant send mails

free web hosting

Read Latest Entries..: (Post #13) by mustra on May 18 2006, 07:43 AM.
this is great thanks nightfox! i now have solved manyproblems, i really wasnt seeing that "s" coming, that fixed a lot of things, i still have that wierd problem, why sapo.pt says im trash ? thats really bad because im trying to run an affiliate program at my site, could u guys plz use some email adress other then astahost.com and try to subscrib it ? ill delete you afterwards.its just that i belong to other affiliate programs and sapo.pt does not blocks them, hmmm, maybe its becau...
read more.
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion & Free Web Hosting > Astahost > Hosted Members Support

Email Problems - cant send mails

mustra
hi, ive just hosted and ive tried but i cant fix this, in my computer im running easy php 1.8, i confirgured the settings of apache, i placed the smtp server and email adress and password of the email accoutn provided from my isp, so, in my computer, i can send mails that use the mail function.

my problem...

i have this script that send an email confirmation for user authentification/registration, the script doesnt has options for configuring smtp server, neither email account or accoutn password, has it seams it rellies on the parameters of apache/php ? because in my computer i can send emails, in your host i cant, i need help, it isnt sending the emails for the user, im not english and this problem is to hard for me to better explain myself, does anyone understands my problem ? please help me as soon has possible.

thank you.

Comment/Reply (w/o sign-up)

nightfox
If you could please re-word your text in easy-to-understand-English I or someone else, might be able to easily help you! smile.gif

Thanks!

[N]F

Comment/Reply (w/o sign-up)

mustra
i have a script where you put your email adress and he sends you an email, in my computer server, it works, on astahost it doesnt, i need help plz

Comment/Reply (w/o sign-up)

nightfox
QUOTE(mustra @ May 17 2006, 06:15 PM) *

i have a script where you put your email adress and he sends you an email, in my computer server, it works, on astahost it doesnt, i need help plz

What is this script called?

On Astahost, you should have access to the PHP Mail() function along with SMTP. Authentication (I forget which protocol it's needed for) would be your hosting account username and password.

[N]F

Comment/Reply (w/o sign-up)

mustra
but what is the main account ?
its just that it inst working....

Comment/Reply (w/o sign-up)

nightfox
the user/pass is your Cpanel user/pass

if you're using a subdomain, the mail server should be mail.astahost.com. If you're using your own domain, it would be mail.YOURDOMAIN.EXT

[N]F

Comment/Reply (w/o sign-up)

mustra
but i dont find anywhere in the script where to put user/pass

the script assume i creat an account called "support" and then @$my_domanin_name

so i did an account called support@mails.astahost.com but still he doesnt sends the mails !
(my site is at mails.astahost.com)

Comment/Reply (w/o sign-up)

Houdini
Please show the script that you are using and maybe it can be seen what needs to be changed to make it work.

Comment/Reply (w/o sign-up)

mustra
<?php


$to = "prosurf@sapo.pt";
$subject = "PHP Is Great";
$body = "PHP is one of the best scripting languages around";
$headers = "From: support@mails.astahost.com\n";
mail($to,$subject,$body,$headers);
echo "Mail sent to $to";

?>

this doesnt work, shouldnt it work ? because i do have an email account
named support@mails.astahost.com made in astahost add account option in cpanel.

so, where am i suposed to add the username and password for the account and the smtp settings ?

Comment/Reply (w/o sign-up)

nightfox
QUOTE(mustra @ May 17 2006, 08:31 PM) *

<?php
$to = "prosurf@sapo.pt";
$subject = "PHP Is Great";
$body = "PHP is one of the best scripting languages around";
$headers = "From: support@mails.astahost.com\n";
mail($to,$subject,$body,$headers);
echo "Mail sent to $to";

?>

this doesnt work, shouldnt it work ? because i do have an email account
named support@mails.astahost.com made in astahost add account option in cpanel.

so, where am i suposed to add the username and password for the account and the smtp settings ?

You're using PHP's mail() function so you don't need a user/pass because it is being sent via PHP's mail() function, NOT directly using a SMTP server.

I copied your script to my Astahost account and it worked perfectly fine. The script works.

Be sure that the email isn't getting marked as spam or something at the email "prosurf AT sapo DOT pt". That's where the fault is, not your script.

[N]F

 

 

 


Comment/Reply (w/o sign-up)

Latest Entries

mustra
this is great thanks nightfox! i now have solved manyproblems, i really wasnt seeing that "s" coming, that fixed a lot of things, i still have that wierd problem, why sapo.pt says im trash ? thats really bad because im trying to run an affiliate program at my site,

could u guys plz use some email adress other then astahost.com and try to subscrib it ? ill delete you afterwards.

its just that i belong to other affiliate programs and sapo.pt does not blocks them, hmmm, maybe its because im a subdomain of astahost, maybe if i had a domain it wouldnt block it, right ?



edit: can someone email me at mustra@sapo.pt ??

please use an account from a domain you have at astahost plz.


erd time i edit: plz......someone :'(

Comment/Reply (w/o sign-up)

Houdini
I just sent an email to myself from my astahost server using this
CODE
<?php
echo "The email is processing right NOW<br />";
$to = "afakeaddy@somewhere.net";
$subject = "PHP Is Great";
$body = "PHP is one of the best scripting languages around and works just fine it you use the rite email.";
$headers = "From: myName@myAstahostDomain.astahost.com\n";
mail($to,$subject,$body,$headers);
echo "Mail sent to $to";
?>Make sure that you use a valid email that you have set up in your cPanel. The $headers is one of my email accounts. It takes about 10 minutes for astahost to actually send the mail the address you had was not valid you need to use your astahost account email in the $headers for it to work.

Comment/Reply (w/o sign-up)

nightfox
QUOTE(mustra @ May 17 2006, 09:37 PM) *

edit: actually youre right, its sapo.pt thats blocking it, why ? how do i unblock it ???

Contact them. That's the best advice I can give you.

QUOTE

another problem, so, now the scripts sends and email for you to confirm that you want to join my site and be a member,

https://www.mails.astahost.com/pages/signup...ls.astahost.com

the email contains this link, problem is, when i click it, it says, failed to load, connection interrupted, im using firefox. so why did i got this error now ?

damm................why cant nothing ever be easy for me once in my life !!!! ARGHHH ! sad.gif

Calm down! Your problem is this: https://...... you're trying to use a secure connection which there is none available. Just change the script over to http://....... and you'll be fine. See, here's the link without the https://.... : http://www.mails.astahost.com/pages/signup...ls.astahost.com

It works perfectly! wink.gif

Don't think that you're alone. I get frustrated all the time and it ends up being a stupid mistake. I ALWAYS forget a semi-colon or a squiggly bracket SOMEWHERE in a PHP script and then I get all frustrated.

Let me know if you need anything else!

[N]F

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2
Similar Topics

Keywords : email, problems, send, mails

  1. Email Server / Cpanel Problems
    (1)
  2. Email Problems
    Unable to Send or Receive (5)
    Ever since the server move (migration, relocation, whatever you want to call it) I've had a
    problem with both sending and receiving emails. I use Microsoft Outlook Express as my email
    application, and originally hadn't changed any of my email settings (figuring that there
    wouldn't be any difference between the two). I'm unsure of exactly when the problem started,
    as I get no errors or messages indicating that it was failing to receive messages (getting the
    normal "connecting, authorizing, checking mail" series of stages in the process). It was only when I....
  3. Getting Strange Problems
    (6)
    Hi, I was surfing around the astahost pages today when I came across a strange error. When i hit the
    back button in the browser (Firefox) i get a page full of random numbers, letters and symbols. I
    have attached a copy of it in a text document if anyone wants to try and make any sense of it (i
    couldn't). I was browsing around the programming forums if it is something specific there! I
    have never seen this before - but it doesn't look like a database error! could it be something
    with my computer/browser conflicting with the website? Thanks -jimmy....
  4. Email Issues - Maildir Invalid
    (5)
    I keep getting these error messages from the astahost mail server CODE Error from server: -ERR
    Maildir invalid (no 'cur' directory). Did you change your password? I've checked the
    mail folder via ftp and everything seems intact. Havn't changed any passwords, i've tried
    reentering the pop3 details but nothing. Thanks - HellFire....
  5. Problems With phpMyAdmin (Unable To Edit The Fields)
    (12)
    Hi all, (Sorry for disturbing admins and techs here /tongue.gif" style="vertical-align:middle"
    emoid=":P" border="0" alt="tongue.gif" /> ) One more issue friends! After cPanel Upgradation ( I
    think so /unsure.gif" style="vertical-align:middle" emoid=":unsure:" border="0" alt="unsure.gif"
    /> ) the phpMyAdmin is not working fine guys! I think, that also upgraded now! /wink.gif"
    style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> ( As its showing Server
    version: 4.0.26-Max , phpMyAdmin - 2.9.0.2 & MySQL client version: 4.1.10 ) I mean, if I open....
  6. Cannot Send Email After Account Upgrade
    Outgoing mail broken after upgrade to paid account (3)
    I just upgraded mistymanor.astahost.com to a paid account. Since the upgrade, outgoing mail is not
    working. Specifically, for mistymanor.astahost.com, using mail.mistymanor.astahost.com with
    eric@mistymanor.astahost.com as the username, 587 for the port number, and the appropriate password,
    sending mail from Apple Mail on OS X 10.4.8 fails. This account worked prior to the changeover.
    Incoming mail still works. I have tried using "mistymanor.astahost.com" (dropping the "mail.") as
    the mail server. I have tried with/without SSL. I have tried sending the message with Squ....
  7. Problems With cPanel
    Showing some error message (9)
    Hi all, I was trying to upload some files to my account using cpanel! There was no problem in the
    beginning! But suddently it shows one error message as: Sorry for the inconvenience!
    The filesystem mounted at / on this server is running out of disk space. cPanel operation has been
    temporarily suspended to prevent something bad from happening. Please ask your system admin to
    remove any files not in use on that partition. (Edit: Authentication is working fine! After
    authentication only, ith shows the error message like this! ) Please check this one: htt....
  8. Is Anyone Else Having Problems?
    (8)
    I've been getting an error for the past hour or more "connection terminated suddenly" ....
  9. Addon Domain Problems, Not Working With Www
    (13)
    During the last month, I've added two addon domains to my account. This is the setup: 1.
    mg-forum.net points to mgforum.cpserbia.net (cpserbia.net is my default domain) 2. the-brits.net
    points to the-brits.cpserbia.net On my computer, I have no problem accessing both the www and
    non-www versions of these two domains. However, when I was installing the first one, m^e pointed out
    that he couldn't access the www version. Since I could, I just ignored the problem, but it seems
    that it is more serious than I thought. When I try adding a Google Sitemap for The Brits....
  10. Problems With PHP/Joomla On Hosted Site
    PHP sevred pages are blank in Firefox, network error in Safari (9)
    I am having some odd problems with my hosted site. They started sometime yesterday. I have not made
    any changes for about two weeks. In Firefox, the index page (index.php) for Joomla comes up blank.
    I can access my Control Panel and can check that the files are there and look correct. No favorites
    icon is displayed either and the page source is empty. In Safari, I get the favorites icon but then
    get a network error and a blank page ("Safari can’t open the page “http://mistymanor.astahost.com/”.
    The error was: “lost network connection” (NSURLErrorDomain:-1005) Please cho....
  11. General Problems With New Account
    MySQL problems and quota issues (2)
    I just got a new account and CPanel reports that I have -380.2 MB of quota space and using 400.2MB.
    This disables some of Cpanel's functions. It would have been nice to use the automated Mambo
    installer, but no biggy. I uploaded the latest Mambo .tar.gz from my FTP program and unpacked it
    via Cpanel's file manager with no problem. When I first logged into the system I created a new
    Database for mambo and a new user for that database and linked the two from Cpanel. I logged off to
    watch something on TV and came back and that database isn't being reported....
  12. Disk Space Problem
    A couple of problems with disk space. (9)
    Hi, In my cPanel, the disk space usage meter never changes, even when I delete a substantial folder
    of files. I always seems to read the same thing. I also got an email telling me I had used over
    300%of my disk space?!? /ohmy.gif" style="vertical-align:middle" emoid=":o" border="0"
    alt="ohmy.gif" /> What should I do, I can'tvery easily tell what my exact usage is but it
    can't be over the limit I don't think. Can someone tell me how much space all the various
    files that are there that you don't put there like ht.access, frontpage extension config files,....
  13. Im Having Lots Of Problems
    (5)
    I am unable to connect to my C-Panel today,, and yesterday when I tried to play the music files I
    uploaded in my account, i get this error message that says "The sites administrator exceeded his
    bandwith" Does anyone have the same problem?? I understand that the site was going through some
    changes, but for past three days I was unable to connec to my c-panal and my music files that were
    uploaded are unable to play.....
  14. Ip Problems
    (5)
    I keep getting messages about server problems on Astahost and also on my personal web site
    (www.oboists.co.uk). I know these are problems with my IP address becuase I can still access these
    websites through a proxy server. The thing is this is incresingly annoying to have to search for an
    open proxy every time I want to access astahost. Does anyone know what's going on and if
    something on the Astahost server is stopping me from accessing files? Thanks....

    1. Looking for email, problems, send, mails

See Also,

*SIMILAR VIDEOS*
Searching Video's for email, problems, send, mails
advertisement



Email Problems - cant send mails

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com