68 Classifieds Forums

68 Classifieds Forums (http://www.68classifieds.com/forums/index.php)
-   v3.0 Questions & Support (http://www.68classifieds.com/forums/forumdisplay.php?f=4)
-   -   E-Mails won't send (http://www.68classifieds.com/forums/showthread.php?t=97)

Winnie 04-02-2006 12:56 AM

E-Mails won't send
 
Conact Us, Contact Owner and E-Mail a Friend won't send - I do get the 'Thank you, your E-Mail has been sent' Message but I don't receive any E-Mails (spam filter is turned off!)

suzkaw 04-02-2006 09:08 AM

Are you on a windows or linux host?

Also do you know if you can send mail through smtp?

Winnie 04-02-2006 11:30 AM

Microsoft Internet Explorer

suzkaw 04-02-2006 11:55 AM

Can you try this. Create a new php page. Example test.php and include this code:
PHP Code:

<?php
$to      
= '[email protected]';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]' . "\r\n" .
    
'Reply-To: [email protected]' . "\r\n" .
    
'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>


Change the $to variable to your email address. Next upload it to your server and visit that page. Then see if you get an email.

Lhotch 04-02-2006 12:00 PM

Quote:

Originally Posted by Winnie
Microsoft Internet Explorer

Internet explorer is a web browser itself.

What we really need to know is if the web host (the company you have hosting your classified site) is using a windows or unix operating system. Also, do they require you to use smtp for transfering mail?

Also, the e-mail address you are using for your classified site, is it an e-mail address that is hosted by your web company as well?

To further clarify what I mean by the e-mail address, lets say your web site is

http://mysuperclassifieds.com

Is the e-mail address you use end in @mysuperclassifieds.com? or is it another e-mail address like [email protected]?

Winnie 04-02-2006 12:17 PM

my host is SimpleHost.com but I'm using a msn.com e-mail address for my website (don't know anything about the operating system of my server, and don't know where I could find out!)

I'll see if I can get Eric's suggestion to work!

Winnie 04-02-2006 12:26 PM

okay - I haven't created a new.php file yet to test my script but the Contactus e-mail function does work now - E-mail a friend and contact Owner don't work still.

Lhotch 04-02-2006 12:42 PM

Quote:

Originally Posted by Winnie
my host is SimpleHost.com but I'm using a msn.com e-mail address for my website (don't know anything about the operating system of my server, and don't know where I could find out!)

Then that is likely your problem.

By default the php scripts will route mail to the local configured mail server and if the e-mail is from an address that is hosted on the server it will take it and deliver it. If your using a different e-mail address the mail server will see the "from" address as one not belonging to a site hosted by the server and will typically not "relay" the message.

If you want to use an e-mail address other than one hosted on your web host you will have to use smtp and add some code.

I would recommend, if possible to use an e-mail address hosted by your web host, most hosting packages come with the option to create and use e-mail. This looks more professional for one and reduces potential problems with e-mail like your having now.

Ill take a look at SimpleHost.com and see what I can find.

If your msn e-mail account is a free one, they may not allow the use of smtp e-mail. but I cant say for sure have never had an account with msn, free or otherwise.

Lhotch 04-02-2006 12:44 PM

It looks like simple host has a pretty thurough FAQ on setting up and using e-mail with their hosting.

http://www.simplehost.com/faq/04160377.htm

I would try and create an e-mail through them, something like [email protected] or [email protected] and use that for your classified site.

Winnie 04-02-2006 01:07 PM

I created a test.php, went to the page (which was completely blank)
PHP Code:

<?php
$to      
= '[email protected]';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]' . "\r\n" .
    
'Reply-To: [email protected]' . "\r\n" .
    
'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>

</span> </span> </div>



and received this
From: [email protected]
Subject: the subject
Message Body: hello

should something else have happend or should I have been able to see something other than a blank screen when I went to that test.php page?


All times are GMT -4. The time now is 06:44 AM.

Powered by vBulletin Version 3.6.0
Copyright ©2000 - 2006, Jelsoft Enterprises Ltd.