May 16, 2008

Genuine Help With Smtp And Php Mail() Function - I need help using the PHP mail() function and the SMTP server on Trap1

Free Web Hosting, No Ads > General > Hosted Members Area

free web hosting

Genuine Help With Smtp And Php Mail() Function - I need help using the PHP mail() function and the SMTP server on Trap1

runeco
Hello, I have looked up the solution to this problem numerous times on this forum but cannot seem to get a straight answer. I have also read that something called SMTP Authetication is required. I have looked up numerous ways this should be done, but I believe it required special protocols. This is the code that I tried to use to send e-mail using the SMTP server here at Trap17.

CODE
$email_to = "whoever@whoever.com"; //SEND MAIL TO HERE
$subject = "Testing the SMTP server";
$message = "This is a test of the SMTP server on Trap17.com Hosting.";
mail($email_to, $subject, $message, 'From: ' . "runexchange@trap17.com" . "\r\n");


No error occurs, but it does not send the message to the indicated mailbox. If anybody knows what I am doing wrong I would GREATLY appreciate am explanation on how to use the SMTP here. Even if you can just display a working code snippet of a mail() function this would help me GREATLY.

Thank You, please conside that I have tried very hard to find the solution on this forum as well as on the internet.

 

 

 


Reply

ghostrider
This code is from the login script I am developing for my site. It has been tested.

CODE

$to = $_POST['email'];
$subject = "Please confirm your account.";
$message = "
<html>
<head>
<title>Please confirm your account</title>
</head>
<body bgcolor=black>
<font color=blue face='verdana' size=4><b>Thank you for registering!</b>
<br>
<p>Please click this <a href='http://www.ghostrider.trap17.com/register/register.php?mode=confirm&u=$username&c=$c'>link</a> to register your account.</p>
<br><br>If your email client does not support links, you can copy and paste this one:
http://www.ghostrider.trap17.com/register/register.php?mode=confirm&u=$username&c=$c
<br><br><br><br>If you did not register at www.ghostrider.trap17.com, someone else used your e-mail address.  Do not worry, with out this e-mail they cannot activate their account and utilize this site.";
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: Registration (noreply) <noreply@ghostrider.trap17.com>';
mail($to, $subject, $message, $headers);

 

 

 


Reply

midnitesun
CODE
/* recipients */
$to  = "Mary <mary@example.com>" . ", "; //note the comma
$to .= "Kelly <kelly@example.com>";

/* subject */
$subject = "Birthday Reminders for August";

/* message */
$message = '
<html>
<head>
<title>Birthday Reminders for August</title>
</head>
<body>
<p>Here are the birthdays upcoming in August!</p>
<table>
<tr>
  <th>Person</th><th>Day</th><th>Month</th><th>Year</th>
</tr>
<tr>
  <td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
</tr>
<tr>
  <td>Sally</td><td>17th</td><td>August</td><td>1973</td>
</tr>
</table>
</body>
</html>
';

/* To send HTML mail, you can set the Content-type header. */
$headers  = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

/* additional headers */
$headers .= "From: Birthday Reminder <birthday@example.com>\r\n";

$headers .= "Cc: birthdayarchive@example.com\r\n";
$headers .= "Bcc: birthdaycheck@example.com\r\n";

/* and now mail it */
mail($to, $subject, $message, $headers);


you can use the example above to test and send mail , hope this helps

Reply

SHERY


I M SORRY BUT REALY I WANT TO ASK YOU A QUESION

IT IS IMPORTANT TO ME AND I COULD NOT MAKE A NEW TOPIC I WAS NOT ALLOWED TO DO SOME

SO MY QUESTION HOPING THAT NOT TO BOTHER YOU



HOW DO YOU WRITE JOWAN

IS IT LIKE THIS OR WRONG BEC I WANT TO WRITE THE CORRECT SPELLING IN THE PASA PORT

WITH ALL MY THANKS TO YOU ALL

(list)


Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : genuine, smtp, php, mail, function, php, mail, function, smtp, server, trap1

  1. Site Down After Server Transfer
    (3)
  2. Gamma Servers' Problem
    This topic is for all who have their account on Gamma Server & ha (1)
    Okay I see a lot of chaos all around and my site zoebelkin.co.cc is still down. Everything including
    FTP, CPanel etc are down. My site is on the gamma server. I see that all the servers are moved
    around a lot and the IP blocks also changing. So what is the new IP set for 'gamma'. When
    doing a reverse check on gamma I see it is still assigned to it's previous IP but when I'm
    trying to access the previous IP's port 80 then I get a Server not found error. Also the
    gamma.xisto.com name for the server fails to open the default Apache page which it used to ....
  3. Server Issues? Web Site Down? Cpanel Access?
    Server Migration issues to report. (48)
    I tried downloading my email from website this morning and Thunderbird said it couldn't access
    it the server. Then I tried loading my website - to no avail. Does anyone have any idea what's
    going on? Is anyone else experiencing this? Seems like this is the second time this spring this has
    happened. Is an upgrade going on, or something? Thanks in advance for your help! ....
  4. Name Server Question
    Why is the nameserver changed ? (3)
    CODE NetRange:   64.69.32.0 - 64.69.47.255 CIDR:       64.69.32.0/20
    NetName:    COREEXPRESS-BLK-1 NetHandle:  NET-64-69-32-0-1 Parent:     NET-64-0-0-0-0
    NetType:    Direct Allocation NameServer: NS1.CALPOP.COM NameServer: NS2.CALPOP.COM
    Comment:    ADDRESSES WITHIN THIS BLOCK ARE NON-PORTABLE RegDate:    2000-04-11
    Updated:    2004-08-06 RNOCHandle: ZC46-ARIN RNOCName:   ipadmin
    RNOCPhone:  +1-213-627-1937 RNOCEmail:  ipadmin@coreexpress.net RTechHandle: ZC46-ARIN
    RTechName:   ipadmin RTechP....
  5. Wordpress Backup For A Server Move
    backing up a Wordpress site (2)
    i have question: how can we backup wordpress from fantastico...is it possible to backup and move
    it to new host if you want?....
  6. Server Status Link Doesn't Work
    (1)
    Hey, I tried going to the xisto menu on the top right of the forums and the server/network status
    link doesnt work, it leads to: http://www.xisto.com/helpdesk/index.php?cmd=status I get, The
    requested URL /helpdesk/index.php was not found on this server. Is this a out-dated link?....
  7. Whats The Server?
    (3)
    hey guys, im working with a script, heres the part im trying to figure out: QUOTE
    $gc_do_caching = 0; $gc_cache_time = 3600; $gc_use_sql = 0;
    $gc_sql_server_host = ""; theres a lot more, but its not needed, i wanna know what the sql
    server host for trap17 is?....
  8. Keep Getting Socket Error
    mail won't send. (3)
    When trying to send email, I keep getting a socket #10061 error. I use the Trap 17 smtp server,
    related to my own domain, which is mail.vlaanderen-flanders.org.uk. This seems to be happening
    regularly lately. Has anyone got any idea why this could be happening? Thanks for any support. ....
  9. Help: Internet Server Error
    (20)
    Hello! I decided to try YaBB as a forum now, just testing....and ... Well first my question is,
    this is in ADDONSCRIPTS, not FANTASTICO, whats the difference? Secondly, about my problem: I was
    in the YaBB admin panel, I got through the Forum Settings, got to Advanced settings, filled out the
    info, and pressed save. The 5000 times I have tried this, I get this: QUOTE Internal Server
    Error The server encountered an internal error or misconfiguration and was unable to complete your
    request. Please contact the server administrator, webmaster@sherwoodinfo.trap1....
  10. Is The Server Ok?
    FTP and loading problems. (1)
    At the time of writing this (01:12 GMT) I seem to have problems FTPing to my site (Time out
    problems), and, to a lesser extent, page loading problems. I just wanted tocheck whether the servers
    are OK or whether the problem is on my end. Please let me know if you can. ....
  11. Help With A .rar File In Ftp Server
    Cannot unrar the file. (4)
    I uploaded a .rar file into my FTP but I cant unrar it. I have uploaded it before in zip format but
    I think it got curropted so I reuploaded again. is theren a way to unrar this file? I am concerned
    about this because it took me quite some to manage to upload it using a very slow internet
    connection. I need help here please,.....
  12. Our Own Email Account
    How do I make it and read my mail? (7)
    Hey guys, I love how I have sendmail and my own email account here, but I don't know how to
    access them. When I created my account, I put in my home email address because that's supposed
    to be there. But instead of having my users email me at my home email account in my contact form, I
    would like to have them email me here at trap17. I went into my Email Management and saw Add/Remove
    Email and created one called Custergrant@custopoly.trap17.com...and it created correctly and all.
    But if I have users email at this, how do I read it? Do I click Read Webmail? And h....
  13. Does Trap Use An Apache Server [resolved]
    (3)
    Well I just installed a mod, and it said you must have an Apache Server or something. SO does trap
    use an Apache Server and if not is there anyway we can since it says its free....
  14. Trap17 Ftp Settings
    There is a mistake in the trap17 FTP server address (3)
    After you are approved for free host account you must activate by going to a link sent in an email.
    On the confirmation page that appears after the activation script is finished you will see all sorts
    of data including your web URL and how to access control panel etc. .. At the bottom of the page for
    those who would rather configure an FTP program like Dreamweaver or CuteFTP you will see the FTP
    server address listed as: ftp.projectorange.trap17.com.com This is wrong and should read:
    ftp.projectorange.trap17.com Do not use passive ftp Host directory is optional (set....
  15. Web Mail Forwarding Not Working?
    (0)
    I set up a several email accounts on Cpanel, and am trying to forward the mail from some of them to
    a gmail address. So far nothing's been forwarded. Also, when composing email, I've noticed
    the "receipt" function doesn't work. Any clues, anyone? On another note, I noticed Cpanel
    reverted back to it's former state after a brief upgrade. What's the latest with Cpanel?
    Several days later and still no response? /huh.gif" style="vertical-align:middle" emoid=":huh:"
    border="0" alt="huh.gif" /> Mmkay, guess I'll pm admin directly.........
  16. What's Up With The Gamma Server?
    (3)
    It is all down, can anyone explain what is going on? This doesn't look like it is a routine
    server maintenance, it has been going on for 6 hours since I last check and still no improvements
    /sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" />....
  17. Mysql Server Problems [resolved]
    (3)
    hello, well since i installed php-nuke on my site's dir i have seen quite a lot of mysql SERVER
    ERRORS, like that the server is going down so now and often is it due to my cms or is the server
    having some probs ? this is what i just saw from the statistics: QUOTE Service Status
    named up spamd up imap up cpsrvd up pop up eximstats failed syslogd up clamd failed mysql
    (5.0.27-standard) failed httpd (1.3.37 (Unix)) up exim () failed exim-26 up ftpd failed Server
    Load 16.50 (1 cpu) quote tags added. please use quote tags as needed. review trap17....
  18. Server Availability
    (11)
    Recently i experienced that my pages was not reachable several times. i have enaugh hosting credits
    and iam the onliest to view the page (still building it). has trap17 any hosting issues that could
    cause this or is this usual? iam new here so dont wonder thanks Caos~....
  19. Trap17 Server Infrastructure.
    (5)
    Trap17's servers are very reliable, and give me what i need at the moment but some of the
    infrastructure is outdated and i am reading about some of the "new and marvellous" things you can do
    with newer infrastructure. Apache version 1.3.37 (Unix) The Latest Version is v2.2.3
    QUOTE The Apache HTTP Server Project is proud to announce the release of version 2.2.3 of the
    Apache HTTP Server ("Apache"). In addition to a number of bug fixes to release 2.2.3, this release
    includes an 'important' security fix for mod_rewrite. This version of Apache is a ....
  20. Errors With Php Setcookie() And Headers! Please Help!
    Having header errors when I try to set a cookie with PHP function setc (2)
    Hey guys, I'm having a problem setting cookies with PHP. I am trying to implement a script that
    will allow someone to log in and access members only pages on my website. One of the aspects is that
    I have to place a cookie on that persons computer. I know that you can use the PHP function
    setcookie() to place it on your computer. The problem is that wherever i have setcookie() in my PHP
    code I get an error: " Warning: Cannot modify header information - headers already sent by (output
    started at /home/runeco/public_html/cookie.php:6) in /home/runeco/public_html/cooki....
  21. Smtp Server Is Not Working...?
    I think there is a prob. with my SMTP server (4)
    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....
  22. Trap17 Mail Exchange Servers
    (4)
    Ok, I recently downloaded Mozilla Thunderbird to try and configure it to my websites e-mail, so i
    can recieve and send mail through it. But it's not working for me In the Cpanel mail management
    it says that the outgoing and imcoming are both mail.hogwartsmagic.net can someone help me
    configre this?....
  23. Mac Mail And Server Settings
    (2)
    I have Mac Mail checking and downloading email, but I can't get it to find the outgoing mail
    server. I've tried mail.blendergalactica.com, mail.www.blendergalactica.com,
    smtp.blendergalactica.com etc, but I get this error back: The SMTP server
    “mail.blendergalactica.com” is not responding. Check your network connection and that you entered
    the correct information in the “Outgoing Mail Server” field. If it still doesn’t respond, the server
    might be temporarily unavailable. If you continue, you may not be able to send any mail. ....
  24. The Filesystem Mounted At / On This Server Is Running Out Of Disk Space.
    (22)
    I was just checking my forums again as I wanted to install some new mods and suddenly I found that
    it was hacked by SpyHackerz group... You can view it here :- http://www.snrulez.trap17.com/forum/
    The first thing that came into my mind was to change my cPanel password but I can't even log in
    to my cPanel as I am getting the following error everytime I try to do so. Please Admins or anyone
    having any knowledge on how to solve this out please help me! QUOTE Sorry for the
    inconvenience! The filesystem mounted at / on this server is running out of disk s....
  25. Sites Disapeard, Mysql Errors? Also Server Folders Deleted
    (18)
    Hello its 15:40 and I login see if everything runs oke, and I see numerus things deleted my mysql is
    working again. Whats going on? My Webpage couple websites got deleted, and server folder files now
    whats going on? /sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> my
    forum also give errors but mysql db stil there /sad.gif" style="vertical-align:middle" emoid=":("
    border="0" alt="sad.gif" />.......
  26. Is A Smtp Server Setup On Trap17 Servers?
    I need it for my website's DRUPAL registration. (9)
    Hey guys! I can't ask in shoutbox so I've got to use the slow way. : / As you've
    probably read, I need it for my website's registration, I've learned this by asking in the
    Drupal(a CMS) Support, this good man said that I should have an SMTP server setup for it to work,
    unfortunately, I don't know if Trap17 haves it and I don't know how to access it. If there
    is none, could you recommend a free solution? If there is one, could you be so kind of teaching me
    how to use/access it? Thanks by now. P.S: Go Trap17 crew!....
  27. More Than One Registered Domain Per Server
    Is this possible (3)
    I am tryign to figure out if it is possible, using redirects to have more than one registered domain
    per site. For instance, I register 1.com and 2.com Than on my site I redirect 1.com to goto
    www.dbdb.trap17.com/1/ and redirect 2.com to www.dbdb.trap17.com/2/ Hence 2 sites on one server.
    Is this possible? Any do you think it is a good idea?....
  28. Sendmail Vs Mail() And Smtp
    how to use sendmail? (3)
    hello guys!.... at last i discovered that using sendmail the mails i send, arrived directly to
    the inbox folder in accounts like MSN or YAHOO!, that is very useful when you have a list to
    some friends or some kind of newsletter. The bad thing is that i made it all with joomla!, it
    had this option, but i would really like to have a script with this new form, do you have any idea
    about how this can be achieved guys? And the other thing, does trap17 support smpt? if you do
    support it guys, can the mails arrive to the inbox with accounts such as MSN or YAHOO....
  29. Mail Settings To Configure Outlook Express
    Common mistakes by members (10)
    Hi, There are many members who face trouble getting their mails to their inbox. There can be many
    reasons for which your system might not be able to fetch mails from our servers. We have kept all
    the attributes related to the mail at DEFAULT so that our clients don't have problems
    configuring the mail themselves. Here the the general mistakes which members make :- 1. Username
    *MUST* be in format USERNAME@DOMAIN.COM (i.e. your complete Emaill address itself acts as your
    username) 2. Forget the password or confuse it with Cpanel password. Every Email address has to....
  30. Path On Server !
    need to config ! (3)
    /huh.gif" style="vertical-align:middle" emoid=":huh:" border="0" alt="huh.gif" /> I have few files
    need path on server as "f:/localhost/www/mydirectories" I don't find anything about them in
    cpanel ! Can Admin help me ? /ohmy.gif" style="vertical-align:middle" emoid=":o"
    border="0" alt="ohmy.gif" />....

    1. Looking for genuine, smtp, php, mail, function, php, mail, function, smtp, server, trap1

Searching Video's for genuine, smtp, php, mail, function, php, mail, function, smtp, server, trap1
Similar
Site Down
After Server
Transfer
Gamma
Servers'
Problem -
This topic
is for all
who have
their
account on
Gamma Server
& ha
Server
Issues? Web
Site Down?
Cpanel
Access? -
Server
Migration
issues to
report.
Name Server
Question -
Why is the
nameserver
changed ?
Wordpress
Backup For A
Server Move
- backing up
a Wordpress
site
Server
Status Link
Doesn't
Work
Whats The
Server?
Keep Getting
Socket Error
- mail
won't
send.
Help:
Internet
Server Error
Is The
Server Ok? -
FTP and
loading
problems.
Help With A
.rar File In
Ftp Server -
Cannot unrar
the file.
Our Own
Email
Account -
How do I
make it and
read my
mail?
Does Trap
Use An
Apache
Server
[resolved]
Trap17 Ftp
Settings -
There is a
mistake in
the trap17
FTP server
address
Web Mail
Forwarding
Not Working?
What's
Up With The
Gamma
Server?
Mysql Server
Problems
[resolved]
Server
Availability
Trap17
Server
Infrastructu
re.
Errors With
Php
Setcookie()
And
Headers!
Please
Help! -
Having
header
errors when
I try to set
a cookie
with PHP
function
setc
Smtp Server
Is Not
Working...?
- I think
there is a
prob. with
my SMTP
server
Trap17 Mail
Exchange
Servers
Mac Mail And
Server
Settings
The
Filesystem
Mounted At /
On This
Server Is
Running Out
Of Disk
Space.
Sites
Disapeard,
Mysql
Errors? Also
Server
Folders
Deleted
Is A Smtp
Server Setup
On Trap17
Servers? - I
need it for
my
website'
s DRUPAL
registration
.
More Than
One
Registered
Domain Per
Server - Is
this
possible
Sendmail Vs
Mail() And
Smtp - how
to use
sendmail?
Mail
Settings To
Configure
Outlook
Express -
Common
mistakes by
members
Path On
Server !
- need to
config !
advertisement



Genuine Help With Smtp And Php Mail() Function - I need help using the PHP mail() function and the SMTP server on Trap1



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE