15 posts
  • Has been part of the Envato Community for over 6 years
  • Has collected 10+ items on Envato Market
fadetogray says

In the last two weeks I have bought two projects from Activeden and cannot get either of the authors to respond in support.. I am trying to get the php mailer to send email and can’t see why it’s not doing it..Please if you can lend any help I would be grateful code is below

<?php $to = ($_POST[‘_to’]); $subject = ($_POST[‘_subject’]); $message = ($_POST[‘_content’]); $message .= ”\n\n------------\n”; $headers = “From: ” . $_POST[‘_email’] . ” <” . $_POST[‘_emailfrom’] . ”>\n”; if(@mail($to, $subject, $message, $headers)) { echo “answer=ok”; } else { echo “answer=error”; } ?>

<?php $to = “wishingwell@cinci.rr.com”; $subject = “From our website”; $message = “Someone has reached out.”; $from = “someonelse@example.com”; $headers = “From:” . $from; mail($to,$subject,$message,$headers); echo “Mail Sent.”; ?>

113 posts
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Made it to the Authors' Hall of Fame
  • Has sold $1,000+ on Envato Market
+4 more
KurtBilisim says

I can’t see any problem with the code.

Are you sure your hosting supports PHP mail sending? If it is a free host for example it is probably not permitted.

Or even if it is not free, sometimes they close it and open only when requested.

Also your mails from your hosting may end up in Junk folder or perhaps the destination mail provider filters it completely.

15 posts
  • Has been part of the Envato Community for over 6 years
  • Has collected 10+ items on Envato Market
fadetogray says

I can’t see any problem with the code.

Are you sure your hosting supports PHP mail sending? If it is a free host for example it is probably not permitted.

Or even if it is not free, sometimes they close it and open only when requested.

Also your mails from your hosting may end up in Junk folder or perhaps the destination mail provider filters it completely.

Thanks for the reply !! I have checked my junk forlder nothing there I can ask them if there is an issue with php mailing but dont ever think I have had issues before …atleast the code is correct thats a good start

15 posts
  • Has been part of the Envato Community for over 6 years
  • Has collected 10+ items on Envato Market
fadetogray says


I can’t see any problem with the code.

Are you sure your hosting supports PHP mail sending? If it is a free host for example it is probably not permitted.

Or even if it is not free, sometimes they close it and open only when requested.

Also your mails from your hosting may end up in Junk folder or perhaps the destination mail provider filters it completely.
Thanks for the reply !! I have checked my junk forlder nothing there I can ask them if there is an issue with php mailing but dont ever think I have had issues before …atleast the code is correct thats a good start

Forgot to add no I pay for my hosting account so thats why I am stumped

4140 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Located in Brazil
+3 more
tsafi says

Its probably on your and 99% all from mail file here been check before submission, check your php url path maybe you need to change it ? But overall i am almost sure it’s your upload setting, probably something minor you are doing wrong

15 posts
  • Has been part of the Envato Community for over 6 years
  • Has collected 10+ items on Envato Market
fadetogray says

Its probably on your and 99% all from mail file here been check before submission, check your php url path maybe you need to change it ? But overall i am almost sure it’s your upload setting, probably something minor you are doing wrong

THanks for all th ehelp Just where would my upload setting be ? the php url

4140 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Located in Brazil
+3 more
tsafi says

Well there is a basic way how you should upload flash file to your website, i am not going to start singing for you the flash routine with the right upload steps that is way too long ,but i think a year ago or so i write a tutorial here with step by step how to upload flash file to your website base on AD files, you need to look for it here .

Regarding the php url if he didn’t add this option in the xml it probably in the Action Script code itself you need to find it(I am sure he mention it on the help file ) change the url and compile the swf before you upload the file.

113 posts
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Made it to the Authors' Hall of Fame
  • Has sold $1,000+ on Envato Market
+4 more
KurtBilisim says

Hey look, your second code can be called by on its own. Upload it to your server and type its URL in the address bar, like http://www.yoursite.com/mailsender.php and if you can see the mail in inbox, the code certainly works.

The first code requires some post values so you can’t test it this way though.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by