|
|
|
|
![]() ![]() |
Nov 24 2006, 05:59 PM
Post
#1
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 13 Joined: 22-November 06 Member No.: 33,855 |
I am posting this because I believe there is a problem with my SMTP server (at Trap17.com). I have been trying to send mail with PHP using the mail() function. Although PHP did not return any errors, none of the mail was actually sent... I have enclosed a copy of 2 different codes I have tried to use. Either I'm making a mistake with these codes or there js a problem with my SMTP server. If there is a mistake with my code, please tell me what is wrong. Otherwise, maybean admin can look at my SMTP server configuraton to make sure it works.
CODE 1 CODE $email_to = "myemail@gmail.com"; //SEND MAIL TO HERE $subject = "Testing SMTP Server"; $message = "This a test of the SMTP server on Trap17.com."; mail($email_to, $subject, $message, 'From: ' . "runeco@runexchange.trap17.com" . "\r\n") CODE 2 CODE $to = "myemail@gmail.com"; $subject = "Testing SMTP Server"; $message = "This a test of the SMTP server on Trap17.com."; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: Runeco <runeco@runexchange.trap17.com>'; mail($to, $subject, $message, $headers); Note To Admins: My Username is runeco and my subdomain is www.runexchange.trap17.com This post has been edited by runeco: Nov 24 2006, 06:11 PM |
|
|
|
Nov 24 2006, 07:05 PM
Post
#2
|
|
|
ITS ALIVE.....MUHHHAAAA ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 532 Joined: 17-October 05 From: Chippenham UK Member No.: 13,031 |
have you set the incoming and outgoing mail servers to mail.runexchange.trap17.com?
|
|
|
|
Nov 24 2006, 07:26 PM
Post
#3
|
|
|
Desperately seeking "any key" to continue... ![]() Group: Admin Posts: 3,478 Joined: 23-April 05 From: Trap17 storage box Member No.: 6,042 |
Have you checked your BULK or SPAM folder? If you are using AOL, YAHOO, MSN, HOTMAIL or GMAIL emails sent from Xisto mail server will land in your bulk or spam folder initially.
PLEASE PLEASE be sure to check *NOT SPAM* and move it to your inbox folder. If none exists in your bulk or spam folder, post it here further and we can isolate the next issue you might have. |
|
|
|
Nov 25 2006, 12:11 AM
Post
#4
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 13 Joined: 22-November 06 Member No.: 33,855 |
I thought that may have been the case, but when I checked my Spam Folder in Gmail it was not there. I have also tried to send it to a Lycos Mail account with the same problem. The code that I showed in the first post is being used in a PHP document after someone has signed up, it is then to send a confirmation e-mail to the account that they registered. I have not set any sort of e-mail account in my Trap17.com subdomain...will this disallow me from using the SMTP? Maybe somebody could post a step-by-step procedure on how to make a PHP code send an e-mail to someone's e-mail address using PHP and the Trap17.com SMTP server. Another thing could be that there may be something wrong the SMTP configuration on my account. I would appreciate any help on the matter, Thank You.
|
|
|
|
Nov 26 2006, 10:22 AM
Post
#5
|
|
|
Hidden Secrets can't be told threw just words. One must feel what the other feels to truely understand... ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1,523 Joined: 8-January 06 From: Sacramento California Member No.: 16,756 |
runeco, are you meaning for this mail feature to be included in like a member's area script? or just a normal script that would make something like i have on my site
http://hogwartsmagic.net/feedback.php that when the user clicks submit, it automatically gets e-mailed to you or whatever e-mail address you put in a part of the scrip If ^^ that is what you are looking for then i can post the code here. This post has been edited by Albus Dumbledore: Nov 26 2006, 10:25 AM |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 7th October 2008 - 04:27 AM |