Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Create Account Email


Guest

Recommended Posts

Hi,

 

I was wondering if there is a way for the email that is sent upon successful creation of an account to be sent as HTML?

 

Does anyone know if and how to do this.

 

Thanks

Link to comment
Share on other sites

Craig I could be wrong, but isn't this done by going through the admin :panel

 

admin.... configuration..... e-mail options ......Use MIME HTML when sending emails (true)?!

 

As I said I could be very wrong with regard to this.

 

Cheers

Todd

Link to comment
Share on other sites

  • 1 month later...
  • 2 years later...

Hi

 

I actually have the same problem. Has anyone figured it out yet?

 

I've tried messing a little bit around with the shop/create_account.php around line 232 - see below. I've changed the "$email_text" to "$email_html" and changed the "EMAIL_WELCOME" to html-code, but it doesn't seem to do the trick! :( It just throws away all the tags when I recieve the e-mail. I have set the "Use MIME HTML when sending emails" to "true".

 

// build the message content
     $name = $firstname . ' ' . $lastname;

     if (ACCOUNT_GENDER == 'true') {
        if ($gender == 'm') {
          $email_text = sprintf(EMAIL_GREET_MR, $lastname);
        } else {
          $email_text = sprintf(EMAIL_GREET_MS, $lastname);
        }
     } else {
       $email_text = sprintf(EMAIL_GREET_NONE, $firstname);
     }

     $email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;
     tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

     tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL'));
   }
 }

 

Can anyone help????

 

Thanks,

Mikael :(

Link to comment
Share on other sites

  • 2 years later...

Hi, wanted to do the same thing, basically when a customer signs up, osc would send an email in html. I was wondering if you guys found that out. Really would like to change the whole welcome email thing. Would be great if we could add logos or pictures or stuff. I know there are contribs that would help you create html email from the admin but there is no option to change the welcome email.

 

 

Hope someone could help

Link to comment
Share on other sites

  • 2 weeks later...
Yes, .me too. I want to add my logo. but do not know what code to add :(

There a contributions to do this, the latest is Ultimate Html Emails V1.1 that is supported by its author.

Link to comment
Share on other sites

Unfortunately that did not help me, but thanks for the suggestion.

 

Anyway I manage to add my logo/banner to my order process email.

In the catalog/includes/modules/shipping/paypal_standard.php (it should also works in catalog/checkout_process.php, as well as create_account.php) I used this contribution Email_order_clickable_link with a line added for to get the image. If you do not SSL , put false instead of true.

// lets start with the email confirmation

$email_order = NULL;

$link_to_order = tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', true);

 

if (EMAIL_USE_HTML) {

$email_order .= EMAIL_TEXT_IMAGE . "\n\n";

$email_order .= EMAIL_SEPARATOR1 . "\n";

$email_order .= EMAIL_TEXT_THANKS . "\n";

$email_order .= EMAIL_SEPARATOR1 . "\n\n";

$email_order .= EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n";

$email_order .= EMAIL_TEXT_ORDER_NUMBER . ' ' . $order_id . "\n";

$email_order .= EMAIL_TEXT_INVOICE_URL . ' <a href="' . $link_to_order . '">' . $link_to_order . '</a>' . "\n\n";

} else {

$email_order .= STORE_NAME . "\n";

$email_order .= EMAIL_SEPARATOR . "\n".

$email_order .= EMAIL_TEXT_THANKS . "\n\n";

$email_order .= EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n";

$email_order .= EMAIL_TEXT_ORDER_NUMBER . ' ' . $order_id . "\n";

$email_order .= EMAIL_TEXT_INVOICE_URL . ' ' . $link_to_order . "\n\n";

}

 

unset($link_to_order);

$email_order .= EMAIL_COMMENTS;

if ($order->info['comments']) {

$email_order .= tep_db_output($order->info['comments']) . "\n";

 

In the store/includes/languages/english/checkout_process.php

 

I added

define('EMAIL_TEXT_IMAGE', '<IMG height=75 alt="" src="http://mywebsite.com/folder/folder/logo.gif" width=667>');

I also wanted more text eg a thank you and I defined that here also and spacers .

eg

define('EMAIL_TEXT_THANKS','<FONT color=#808080 size=4> Thank you for shopping with MY Store.</FONT>');

Since this also stands for corrections as I am not coder but maybe it will can help someone else and not confuse or someone can make it better.

cheers.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...