Jump to content

yitzle

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

yitzle's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. From the 100webspace.com PHP FAQ: [quote]You can be having trouble sending e-mail using Formmail script, because of the following reasons: 1. You have entered an e-mail address which is not hosted on our servers. We require the one of either the 'FROM:' e-mail address or the 'TO:' e-mail address to be hosted on our servers. Only if one of them is hosted on our servers, you will be able to send e-mail successfully. 2. You are using wrong header information. You must always provide the text From:, the name of the sender and an e-mail address. Without one of these three parameters, the formmail script will not work properly and will not deliver e-mail to your mailbox. You can find out more information here: http://www.php.net/manual/en/function.mail.php Here are examples of well working formmail scripts: First Example: <? $from = "From: yourname "; $to = "receiver"; $subject = "Hi! "; $body = "TEST"; if(mail($to,$subject,$body,$from)) echo "MAIL - OK"; else echo "MAIL FAILED"; ?> Second Example: <? $from = "From: sender"; $to = "yourname "; $subject = "Hi! "; $body = "TEST"; if(mail($to,$subject,$body,$from)) echo "MAIL - OK"; else echo "MAIL FAILED"; ?>[/quote] [move]Oops :)[/move] Thanks for all the time and effort from you guys!
  2. I am in fact using a form. And it does have a mandatory email field :) However, I'm pulling my data by doing [code]$msg .= "From: " .$from;[/code] where from is the name of the textfield on the form. I'll send the admins an email about sending mail(). It is a subdomain setup, but I think I am allowed an email address at it.
  3. Sorry for being obtuse, but I don't follow. My PHP is on 100webspace.net The email is going to gMail.com Who is imposing the From? Is it gMail? And is gMail requiring it for be a recognized email address (e.g. a gMail address) or a valid @100webspace.net (which I don't have ATM)? Or is it 100webspace?
  4. Erm... The mail() returns true Can you elaborate on "Are you makeing sure that the from portion of the code is a valid email address with the mail server?" Does it need to be valid format or a working address? Does the @abc.com have to match the host's domain name?
  5. Tested your code Not working :(
  6. Help?! My code: [code]<?php mail('[me]@gmail.com', 'My Subject', 'Testing'); ?>[/code] That's thye entire .php I direct my browser to the php file and check my email. Hmm. Nothing. [code]<?php @$test=mail('[me]@gmail.com', 'My Subject', 'Testing'); if ($test==1){ echo('True'); } else {echo('False');} ?>[/code] Well. I get 'True' but still no email. I'm using 100webspace.net What's going on? Why won't it work? Thanks!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.