sendmail guide

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Postby Wiedmann » 20. September 2005 19:13

PHPBB uses its own SMTP engine, which does support SMTP AUTH.

Right. But like sendmail, you need a real postbox with acces to the SMTP server. And not only webmail/HTTP mail.

If Hunters ISP have only Webmail, he can only use a lokal SMTP-server like Mercury. And with Mercury he can use the normal mail() function via SMTP.

But, if you send your mail from a local SMTP - server and a dial-up line, many mailserver on the internet blocks such mails.

So I think it's a good idea to use sendmail and a real postbox, from the ISP or freemail like GMX, with SMTP access.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Hunter » 20. September 2005 22:04

So I think it's a good idea to use sendmail and a real postbox, from the ISP or freemail like GMX, with SMTP access.

I´m having really hard to gripp this. You recommend me to keep the settings in php.ini and get a normal "webmail" with SMPT support? Guess the best would be if I had the same as you know but GMX looks to be only german.

Have tried to add everything who is of importante as an overview here: have update as good as I can: http://83.227.193.230/pic/smtp/index.php think I dident miss anything right? But I really think it´s a lot wrong. Would appreciate if you could make an quick overlook of it.

Have get myself a new webmail. And I even got some information about it!
e-mail adress: wings@bredband.net
Incoming email server (POP3): pop.bredband.net
Out email server (SMTP): smtp.bredband.net
webmail adress: webmail.bredband.net

Is SMTP username and pas same as my username and password to the mailaccount(wings@bredband.net)?

edit: have seartch a lot after a guide to this but it´s impossibel to find and I will definatly write one when I´m getting this one working(if I ever will......)
Hunter
 
Posts: 32
Joined: 03. September 2005 16:29

Postby Wiedmann » 20. September 2005 22:48

Have tried to add everything who is of importante as an overview here: have update as good as I can: http://83.227.193.230/pic/smtp/index.php think I dident miss anything right?

Ok, I don't know anything about "SMTP Server Pro". And you remeber: With sendmail and a real postbox at your ISP there is no need for such a software. (Picture 1-4)

Is SMTP username and pas same as my username and password to the mailaccount(wings@bredband.net)?

You mean "auth_username" in "sendmail.ini"? Yes.


Have get myself a new webmail. And I even got some information about it!

Well:
sendmail.ini (Picture 5)
Code: Select all
smtp_server=smtp.bredband.net
auth_username=<username from bredband.net>
auth_password=<password from bredband.net>
force_sender=wings@bredband.net

For testing you may add/enable in this file:
Code: Select all
error_logfile=error.log
debug_logfile=debug.log



php.ini (Picture 6)
Code: Select all
;SMTP = localhost
;smtp_port = 25
;sendmail_from = me@example.com
sendmail_path = "\xampp\sendmail\sendmail.exe -t"

You may add a driveletter to "sendmail_path".


phpbb (Picture 7)
Insert SMTP Username/Password.

Or, if you want use sendmail:
Change setting for "Use SMTP Server" from "yes" to "no".


It's really so easy... ;-)
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Hunter » 21. September 2005 07:52

With sendmail and a real postbox at your ISP there is no need for such a software. (Picture 1-4)

What is "real postbox"? Is my bredband.net a real postbox? Know where I can find it for free else(eng. version)?

Pictures is uppdated: http://83.227.193.230/pic/smtp/index.php

something is still wrong. Have now added the shortest <php> script I could find.
Code: Select all
<body>
    <?php
        if (!$Submit){
    ?>
        <form name="form1" method="post" action=" <?php echo $PHP_SELF?> ">
            <input type="text" name="name" value="test">
            <input type="text" name="surname" value="test">
            <input type="text" name="titel" value="test">

            <input type="submit" name="Submit" value="Send">
            <input type="reset" name="Submit2" value="Reset">
        </form>
    <?php
        } else {
            $mailadress = "wings@bredband.net";
            mail("$mailadress", "$titel",
            "Mail has been sent by:\n$name $surname");
            echo "Mail has been sent to $mailadress";
        }
    ?>
</body>
Hunter
 
Posts: 32
Joined: 03. September 2005 16:29

Postby Wiedmann » 21. September 2005 10:08


a) You remeber: You don't need "SMTP Server Pro" if you use our sendmail.
b) I never told you to setup "pop3_server", "pop3_username" and "pop3_password" in "sendmail.ini".

something is still wrong.

And what?
- error message?
- log files?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Hunter » 21. September 2005 17:09

- error message?
- log files?

Error message is something like this:

"Area restricted - You dont got enought rights(it´s at swedish :( )

Think you can see it here:
http://83.227.193.230/wings2/phpbb2/utvardering.php

And there is no log files in my "sendmail"(located: "C:\xampp\htdocs\sendmail"). Refering to some other log file?...

http://83.227.193.230/pic/smtp/index.php
Hunter
 
Posts: 32
Joined: 03. September 2005 16:29

Postby Wiedmann » 21. September 2005 17:31

"Area restricted - You dont got enought rights(it´s at swedish Sad )

You mean there is a "error 404"? Look in the Apache "error.log".

BTW:
You should test the PHP mail function with a simple testscript and not with phpBB. Questions about phpBB are better placed in a support forum for phpBB.

And there is no log files in my "sendmail"(located: "C:\xampp\htdocs\sendmail").

"sendmail.exe" should be in "C:\xampp\sendmail"?

But sorry. I think I can not really help you. I instruct you make/setup this, and you make something else...
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Hunter » 21. September 2005 18:21

You should test the PHP mail function with a simple testscript
NICE!!!!! It really worked direct then. Thanks a lot man!!

Questions about phpBB are better placed in a support forum for phpBB.

You are right, guess I have to go there now becouse it still dosent work into phpBB. Any last guess?

But sorry. I think I can not really help you. I instruct you make/setup this, and you make something else...

You have been a great help! Many thanks to you and I´m sorry I´m so slow. Why I did add the "pop3_server", "pop3_username" and "pop3_password" was becouse I thought it was some kind if backup if something should go wrong. Really sorry about that one.

Working form path: http://83.227.193.230/form.php
Not working form path: http://83.227.193.230/wings2/phpbb2/utvardering.php
Hunter
 
Posts: 32
Joined: 03. September 2005 16:29

Previous

Return to XAMPP for Windows

Who is online

Users browsing this forum: Altrea, persiatis and 38 guests