Author Topic: no confirmation or welcome emails  (Read 2341 times)

muchmorewealth

  • Posts: 11
    • View Profile
no confirmation or welcome emails
« on: April 30, 2006, 03:07:09 pm »
Hello,

My problem is as follows

I have configured LMP and the send tests pass, I get the bounce and remote email confirmation messages to my email addresses.

However I can't subscribe via blank email or via a form on my website, in both cases the user details are added in the unconfirmed area of LMP but no emails are sent out.

I believe this may be due to php mail from posts I have seen on the forum, I have used the php page listed to test the php mail and that said it was ok.

I have had LMP working in the past on 2 different web hosts so I am not a complete newbie in setting up the scripts

Please HELP as I do not know what else to try

Thanks

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
no confirmation or welcome emails
« Reply #1 on: May 01, 2006, 02:03:49 pm »
Quote
I believe this may be due to php mail from posts I have seen on the forum, I have used the php page listed to test the php mail and that said it was ok.

When the PHP mail() test script says 'Ok' it means the server seemed to have accepted the message for sending.  Final delivery of the message, on the other hand, is left up to the server mail software.  Are you able to send test messages to a remote test address not on your server?

In ListMail with bounce enabled your return path is your 'Bounce to address'.  With bounce disabled your return path is the 'Administrator Email'.  These should usually be set to an address on the same domain of ListMail and may (rarely) need to be existing accounts or forwarders on your domain.

You may want to try enabling the following line in config.php to enable a 5th paramater to PHP mail(), forcing the 'Return-path':
Code: [Select]
$phpmailf = 1;
Please let me know if I can be of further assistance.

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

muchmorewealth

  • Posts: 11
    • View Profile
no confirmation or welcome emails
« Reply #2 on: May 01, 2006, 05:29:07 pm »
As far as I know the bounce script is working, I haven't had any emails to my administrator account.

The problem I have which is really causing problems is that no welcome emails are being sent at all, by form or email signup.

The users details are added to the unconfirmed area of the list but they never get the email to confirm the account, if I remove the confirmation option they are added to the list but never get the welcome email.

Have tried what you suggested but made no difference

Any more suggestions

Thanks

muchmorewealth

  • Posts: 11
    • View Profile
no confirmation or welcome emails
« Reply #3 on: May 01, 2006, 05:31:46 pm »
Sorry forgot to mention if I send an email from the admin area to my list that appears to go ok to a remote address.

Also if I signup with an email address on the same domain as listmail i get the welcome message

Thanks

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
no confirmation or welcome emails
« Reply #4 on: May 01, 2006, 05:59:27 pm »
Are you able to use PHP mail with the following test script to email a remote address?

1. Modify the $to var to a remote email address and the $fromdomain var to your ListMail domain.
2. Copy and paste to a new.php file
3. Upload to your site and Browse to it
Code: [Select]
<?php// PHP mail() test script$to = 'remote@hotmail.com';$fromdomain = 'example.com';if(mail($to,'test','test',"Return-path: anything@fromdomain\nFrom: \"Test Test\" <anything@$fromdomain>\n")){ echo "Success - message sent!. Was it received?<br>";} else { echo "Failed!  Message could not be sent?!<br>";}?>

If the message is not received there could be a problem with the server's PHP configuration.

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

muchmorewealth

  • Posts: 11
    • View Profile
no confirmation or welcome emails
« Reply #5 on: May 04, 2006, 02:34:01 pm »
Hello,

I tested the php code you posted and did not receive an email so I contacted my webhost who advised me that php mail was working ok and that the script must be at fault.

They did say that if I could provide details of exactly what I want them to check they will look into it further.

What do I need to ask them ??

Thanks

Stuart

muchmorewealth

  • Posts: 11
    • View Profile
no confirmation or welcome emails
« Reply #6 on: May 04, 2006, 03:22:46 pm »
I don't know if this helps but the path to sendmail on my hosting account is /usr/sbin/sendmail

I also set my config to send using php instead of smtp and I still get no welcome or confirm emails and if I send a message to a list I don't get that either.

Hope this helps to shed some light

Thanks

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
no confirmation or welcome emails
« Reply #7 on: May 04, 2006, 05:52:34 pm »
I noticed a bug in the test code which might have caused a problem.  I've also added an additional test:
Code: [Select]
<?php// PHP mail() test script$to = 'remote@hotmail.com';$fromdomain = 'example.com';if(mail($to,'test1','test1',"Return-path: anything@$fromdomain\nFrom: \"Test Test\" <anything@$fromdomain>\n") && mail($to,'test2','test2',"Return-path: anything@$fromdomain\nFrom: \"Test Test\" <anything@$fromdomain>\n","-fanything@$fromdomain")){ echo "Success - 2 test messages sent!. Were they received?<br>";} else { echo "Failed!  Message could not be sent?!<br>";}


Note: Set $to (remote@hotmail.com) to a remote address you can check mail at.  Set the $fromdomain (example.com) to your ListMail domain.

If you do not receive the test messages you can point your host to the test script to see if they can get it to work.

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

muchmorewealth

  • Posts: 11
    • View Profile
no confirmation or welcome emails
« Reply #8 on: May 05, 2006, 04:54:49 pm »
Hello

Tried the new code and I got an email returned to my listmail domain email address as below

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:

  *******@ntlworld.com
    unrouteable mail domain "ntlworld.com"

I tried this with 3 different email accounts on different domains with the same result

Does this prove that phpmail is not functioning correctly ???

Thanks

muchmorewealth

  • Posts: 11
    • View Profile
no confirmation or welcome emails
« Reply #9 on: May 05, 2006, 05:06:55 pm »
I decided to try the code on another domain with a different host and the emails aren't delivered from that one either ????

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
no confirmation or welcome emails
« Reply #10 on: May 08, 2006, 04:25:11 pm »
Quote
A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:

*******@ntlworld.com
unrouteable mail domain "ntlworld.com"

I tried this with 3 different email accounts on different domains with the same result

Does this prove that phpmail is not functioning correctly ???

I would say yes.  Your host should be able to get the test script working for you by checking the server mail logs while running the script to see exactly what's happening.
Quote
I decided to try the code on another domain with a different host and the emails aren't delivered from that one either ????

A simple PHP mail call such as follows should (in 95% of cases) be able to be delivered to a remote address (one not on the sending server):
Code: [Select]
mail('test@yourisp.com','Test Subject','Test Message');
I wish I could be of more assistance. :(

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

muchmorewealth

  • Posts: 11
    • View Profile
It works
« Reply #11 on: May 10, 2006, 02:53:23 pm »
Hello,

I passed on the test code to my webhost and they made some 'corrections' at the server and it works.

Thanks for your help