Zen Cart Logo
Forums / General Questions / Turning Send Welcome email option off ?

Turning Send Welcome email option off ?

Locked

Views: 7,709

Results 1 to 20 of 27
This thread is locked. New replies are disabled.
4 May 2007, 4:45 PM
#1
enric avatar

enric

New Zenner

Join Date:
Jun 2006
Posts:
18
Plugin Contributions:
0

Turning Send Welcome email option off ?

Hi everyone,
Is there a way to turn the Elcome email option off when a new users creates an account, we don't want to bother customers with the welcome email, so can anyone help?

Thanks in advance...

4 May 2007, 5:15 PM
#2
fastweb_destiny avatar

fastweb_destiny

New Zenner

Join Date:
Apr 2007
Posts:
2
Plugin Contributions:
0

Re: Turning Send Welcome email option off ?

In admin/email_welcome.php comment out around line 115 where it says:

zen_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_NAME, EMAIL_FROM, $html_msg, 'welcome');so it would read:
// zen_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_NAME, EMAIL_FROM, $html_msg, 'welcome');This shuts off the send mail function.

8 May 2007, 10:15 PM
#3
chrisareas avatar

chrisareas

New Zenner

Join Date:
Mar 2007
Posts:
22
Plugin Contributions:
0

Re: Turning Send Welcome email option off ?

This is already commented out. What now?

8 May 2007, 11:51 PM
#4
chrisareas avatar

chrisareas

New Zenner

Join Date:
Mar 2007
Posts:
22
Plugin Contributions:
0

Re: Turning Send Welcome email option off ?

I went to the create_account.php file and took out the part about sending a welcome message. But it still sends one. What's going on? Does it have something to do with using PayPal?

9 May 2007, 3:11 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Turning Send Welcome email option off ?

The actual email is sent from the file:
/includes/modules/create_account.php

to the customer:

    // send welcome email
    zen_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_NAME, EMAIL_FROM, $html_msg, 'welcome');

to the admin:

      zen_mail('', SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO, SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO_SUBJECT . ' ' . EMAIL_SUBJECT,
      $email_text . $extra_info['TEXT'], STORE_NAME, EMAIL_FROM, $html_msg, 'welcome_extra');
9 May 2007, 11:12 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Turning Send Welcome email option off ?

PayPal Express Checkout will still send the email. This is important, because it contains their password too.

18 Jun 2007, 5:24 PM
#7
steve_atlanta avatar

steve_atlanta

New Zenner

Join Date:
Jun 2007
Posts:
4
Plugin Contributions:
0

Re: Turning Send Welcome email option off ?

I like the welcome e mail but would love to NOT have the link show up to my store at the bottom of the e mail. How do I get rid of that? I point a different domain address to my zencart store and don't want my main address to show up in the e mail. How do I remove??

18 Jun 2007, 8:25 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Turning Send Welcome email option off ?

Steve Atlanta:

I like the welcome e mail but would love to NOT have the link show up to my store at the bottom of the e mail. How do I get rid of that? I point a different domain address to my zencart store and don't want my main address to show up in the e mail. How do I remove??

Is there some specific text you want removed, or just the link?

If you look at the specific text that's next to the link, and then look that up via the Developers Toolkit (Admin->Tools menu), you can usually find the right file to edit.

ie: includes/languages/english/YOURTEMPLATE/create_account.php

define('EMAIL_CONTACT', 'For help with any of our online services, please email the store-owner: <a href="mailto:' . STORE_OWNER_EMAIL_ADDRESS . '">'. STORE_OWNER_EMAIL_ADDRESS ." </a>\n\n");
define('EMAIL_GV_CLOSURE','Sincerely,' . "\n\n" . STORE_OWNER . "\nStore Owner\n\n". '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'.HTTP_SERVER . DIR_WS_CATALOG ."</a>\n\n");
18 Jun 2007, 9:06 PM
#9
steve_atlanta avatar

steve_atlanta

New Zenner

Join Date:
Jun 2007
Posts:
4
Plugin Contributions:
0

Re: Turning Send Welcome email option off ?

I don't want my url (xxx.com/zencart/blah blah) to show up on ANY of the e mails. If there a way to kill it from showing up? THANK YOU!

18 Jun 2007, 11:58 PM
#10
steve_atlanta avatar

steve_atlanta

New Zenner

Join Date:
Jun 2007
Posts:
4
Plugin Contributions:
0

Re: Turning Send Welcome email option off ?

To be more specific...below is the e mail the buyer gets, The stuff in RED, I do not want in the e mail. How do I delete that stuff?

Thanks for shopping with us today!
The following are the details of your order.

Order Number: 11
Date Ordered: Monday 18 June, 2007
Detailed Invoice:
http://blahblah.com/zencart/index.php?main_page=account_history_info&order_id=11

Products

1 x test (00-002) = $0.01

Sub-Total: $0.01
Flat Rate (Best Way): $0.00
Total: $0.01

Delivery Address

Mr. Blah
2398 Blah Walk
atlanta, GA 30342
United States

Billing Address

2398 Blah Walk
atlanta, GA 30342
United States

Payment Method

You are almost done with your order.

Please make your check or money order payable to:

We appreciate your business! Don't forget to press CONFIRM THE ORDER below.
Thank You.

Mail your payment to:
blah

Your order will not ship until we receive payment.

23 Jul 2007, 10:31 AM
#11
hansi avatar

hansi

New Zenner

Join Date:
Aug 2006
Posts:
67
Plugin Contributions:
0

Re: Turning Send Welcome email option off ?

Hi Guys,

How can I add the username and password inside the customised welcome message that is sent to the user once they register?

Regards,

Hansi

9 Aug 2007, 5:14 PM
#12
mbahoo avatar

mbahoo

New Zenner

Join Date:
Aug 2007
Posts:
6
Plugin Contributions:
0

Re: Turning Send Welcome email option off ?

hansi:

Hi Guys,

How can I add the username and password inside the customised welcome message that is sent to the user once they register?

Regards,

Hansi

me look for that too :cool:
the code was there [preinstalled on admin/email_welcome.php] but not active for somehow. with the string tag [%s] defined from /includes/modules/create_account.php
im on my search for the code to make that run.
try compare the code on admin/email_welcome.php with drbyte's "add costumers from admin" module downloaded from zc-downloads page. that module works just fine. but i cant see their differences. perhaps on the [define] tag
:laugh:
btw what version are you??

9 Aug 2007, 5:37 PM
#13
hansi avatar

hansi

New Zenner

Join Date:
Aug 2006
Posts:
67
Plugin Contributions:
0

Re: Turning Send Welcome email option off ?

Hi,

I am on version 1.3.7.1. I have read somewhere that it is not possible to include the user id and password in the email because both values are encrypted with MD5 in the database.

Regards,
Hansi

mbahoo:

me look for that too :cool:
the code was there [preinstalled on admin/email_welcome.php] but not active for somehow. with the string tag [%s] defined from /includes/modules/create_account.php
im on my search for the code to make that run.
try compare the code on admin/email_welcome.php with drbyte's "add costumers from admin" module downloaded from zc-downloads page. that module works just fine. but i cant see their differences. perhaps on the [define] tag
:laugh:
btw what version are you??

9 Aug 2007, 9:57 PM
#14
mbahoo avatar

mbahoo

New Zenner

Join Date:
Aug 2007
Posts:
6
Plugin Contributions:
0

Re: Turning Send Welcome email option off ?

yes true it was encrypted..
BUT..i swear the module i have said before can do such thing.
off course it was unsafe though the password you type to the form field in admin side was not in asterix. and that is something.
but again, if the the database was encrypted when DB connect, then it must be the password was sent by the form field directly to the welcome_email.php. not from database. thats make sense. no write-read-write process to the DB.

i dont know how to work the standard installation out. i am a newbie. but, as a webmaster of my small company i shoud find out.

duhh... this tiny important part of zen is killin me :frusty:

10 Aug 2007, 6:43 AM
#15
hansi avatar

hansi

New Zenner

Join Date:
Aug 2006
Posts:
67
Plugin Contributions:
0

Re: Turning Send Welcome email option off ?

Is the name and passwd passed through the Session object? If this is the case, it looks like we could perhaps extract the name and passwd parameter from the Session Object parameter before it is saved (encrypted) to the database.

What do you think?

Hansi

10 Aug 2007, 12:02 PM
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Turning Send Welcome email option off ?

hansi:

Is the name and passwd passed through the Session object? If this is the case, it looks like we could perhaps extract the name and passwd parameter from the Session Object parameter before it is saved (encrypted) to the database.No, it's not stored in session variables.

You can reference it in the create_account module via $password or $_POST['password']

12 Aug 2007, 8:00 AM
#17
hansi avatar

hansi

New Zenner

Join Date:
Aug 2006
Posts:
67
Plugin Contributions:
0

Re: Turning Send Welcome email option off ?

Thank you very much Dr Byte for responding.

I believe that to include the password in the welcome email I would somehow have to insert some PHP code here (in the create_account module):

// add in regular email welcome text
$email_text .= "\n\n" . "password:" . $password . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_GV_CLOSURE;

$html_msg['EMAIL_MESSAGE_HTML']  = str_replace('\n','',EMAIL_TEXT);
$html_msg['EMAIL_CONTACT_OWNER'] = str_replace('\n','',EMAIL_CONTACT);
$html_msg['EMAIL_CLOSURE']       = nl2br(EMAIL_GV_CLOSURE);

How do I access the user name (e.g. $user or $_POST['user'])?

DrByte:

No, it's not stored in session variables.

You can reference it in the create_account module via $password or $_POST['password']

12 Aug 2007, 8:03 AM
#18
hansi avatar

hansi

New Zenner

Join Date:
Aug 2006
Posts:
67
Plugin Contributions:
0

Re: Turning Send Welcome email option off ?

Sorry I meant the user-login name?

hansi:

Thank you very much Dr Byte for responding.

I believe that to include the password in the welcome email I would somehow have to insert some PHP code here (in the create_account module):

// add in regular email welcome text
$email_text .= "\n\n" . "password:" . $password . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_GV_CLOSURE;

$html_msg['EMAIL_MESSAGE_HTML']  = str_replace('\n','',EMAIL_TEXT);
$html_msg['EMAIL_CONTACT_OWNER'] = str_replace('\n','',EMAIL_CONTACT);
$html_msg['EMAIL_CLOSURE']       = nl2br(EMAIL_GV_CLOSURE);

How do I access the user name (e.g. $user or $_POST['user'])?

12 Aug 2007, 5:21 PM
#19
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Turning Send Welcome email option off ?

The customer's login name is their email address.
Do you really need to tell them their email address, when the email you're trying to send their password in is going to be sent TO that email address ?

13 Aug 2007, 1:02 AM
#20
mbahoo avatar

mbahoo

New Zenner

Join Date:
Aug 2007
Posts:
6
Plugin Contributions:
0

Re: Turning Send Welcome email option off ?

DrByte:

The customer's login name is their email address.
Do you really need to tell them their email address, when the email you're trying to send their password in is going to be sent TO that email address ?

i think DrByte is absolutely right Hansi...:D
by the way, DrByte..thanks for the tips on this thread and the other "old" one which is something about admin was forbidden when creating new product.

SecFilterEngine Off
``` at the bottom of htaccess file really works. i almost give up hope and shutdown the shop :D and run back along the conventional way.
one more thing, the "add customer from admin" module can show the password. why shouldnt default zen do the same. is there any missing part of the defined section??. i try to compare both add_costumer file but got different result each of them. at my first try with the default, the word "your password blablabla...is..." didnt even show up in both html and text email welcome.