Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 08:28:13 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155441 Posts in 21702 Topics by 7732 Members
Latest Member: Smacki
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: [Solved] Form module - mail not sending  (Read 819 times)
mikejd

Offline Offline

Posts: 160


« on: September 13, 2008, 10:46:35 AM »

I have set up a form on my site and have changed the files to use authenticated smtp : config.php and class.wbmailer.php, as detailed elsewhere on this forum.

The form script now apparently is sending the mail, as a submission is recorded and can be viewed in the admin interface, but it is not being received by the email address set up in the 'Settings'.

Can anyone suggest a solution?

regards,
Mike
« Last Edit: September 19, 2008, 12:05:07 PM by mikejd » Logged
mikejd

Offline Offline

Posts: 160


« Reply #1 on: September 17, 2008, 11:59:11 AM »

I have still not sorted this problem.

I have a line in the config.php file :

define('WBMAILER_SMTP_HOST', 'auth.smtp.1and1.co. uk');

and the following lines in the class.wbmailer.php :

    function wbmailer() {
        // set method to send out emails
        if(defined('WBMAILER_SMTP_HOST')) {
            // sets Mailer to send messages using SMTP
            $this->IsSMTP();                                           
            $this->Host = WBMAILER_SMTP_HOST;       // use STMP host defined in config.php
            $this->SMTPAuth = true;         // SMTP with authentification
            $this->Username = "mail@huntlypipeband.co.uk";      // SMTP-Username
            $this->Password = "xxxxxxxxxxx";     // SMTP-Password - correct password
        } else {
            // set Mailer to send message using PHP mail() function
            $this->IsMail();
        }

The username/password is correct and is working for sending mail. In the actual page settings there is my email address but I have also tried it with the username address. Neither of these are receiving any email sent from the form. The form script records a submission and I can view it in the admin. interface but nothing is being received.

Any advice welcomed.

Mike
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6975


WWW
« Reply #2 on: September 17, 2008, 01:12:52 PM »

What do the serverlogs say? You should find something in there ... I am not shure about the setup though. Why do you use the auth.smtp ... and not only smtp?

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

mikejd

Offline Offline

Posts: 160


« Reply #3 on: September 17, 2008, 01:32:53 PM »

Not really sure what I should be looking for in the server logs.

The 'auth.smtp.1and1.co. uk' is the correct address provided by the hosting provider.

regards,
Mike
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6975


WWW
« Reply #4 on: September 17, 2008, 04:36:51 PM »

As far as I remember the auth.smtp hosts only do encrypted connections ... has been put online when I left the UK but might have changed.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

mikejd

Offline Offline

Posts: 160


« Reply #5 on: September 18, 2008, 10:12:25 AM »

Is it not possible to use encrypted connections with this code?

Mike
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6975


WWW
« Reply #6 on: September 19, 2008, 06:57:40 AM »

as far as I know it is not possible ... but please correct me if I am wrong wink

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

mikejd

Offline Offline

Posts: 160


« Reply #7 on: September 19, 2008, 12:04:24 PM »

I've sorted this problem. It was nothing to do with WB but an error by the host. They say that the mail server is auth.smtp.1and1.co. uk but you actually have to enter auth.smtp.oneandone .co.uk. I found this from Google from a post on a forum for Actinic.

It does, however, raise another question regarding the formatting of the email information from the form which I will post separately.

regards,
Mike
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!