Jump to content

Problem Using Php's Mail() Function


Recommended Posts

Guest datapusher
Posted

When I signed up I noticed that you allow sendmail access.

 

I have a php contact form that I need as my contact source. After testing my complex script to no avail... I have written a short script to test mail() on your server.

 

<?php

 

// Your email address

$email = "myemailaddress";

 

// The subject

$subject = "Testing Mail Function";

 

// The message

$message = "This was a test of the server's mail() function.\n\nIf you are reading this... IT WORKED!!!";

 

mail($email, $subject, $message, "From: $email");

 

echo "The email has been sent.";?>

 

Now that was a simple as I could think of to make the script so I could test basic functionality.

 

How do I go about making it work through your totalchoicehosting server?

 

Do I need to configure a special sendmail thingy. I am used to setting it up in my own severs in the php.ini file.

 

Thank you for your time.

 

Jim

 

Thank you.

Guest datapusher
Posted

My mistake.

 

The email in my script was addressed to the account on the other computer.

 

Looks like you guys already did a good job of setting up the ini and sendmail.

 

Thanks for your fast response though.

 

One more question. Can I send to anyone? Or just to myself on the domain. i ask this because I would like to include a email that is sent out as a confirmation when they fill out my cointact page.

 

Thanks

 

;)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...