Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1

    email error Email not sent in HTML format

    I am developing a custom page where the user's interests will be emailed to the store manager.

    I am using this line of code to send the email:

    Code:
    zen_mail(STORE_NAME,
    SEND_TO_ADDRESS,
    'Product Interests',
    $email_text,
    $_SESSION['fullName'],
    $_SESSION['email'],
    array('EMAIL_MESSAGE_HTML' => $email_html),
    'escalate_product_interests');
    For some reason the email is not being sent in HTML format. The emails received have no 'text/html' header information.

    All the possible values are enabled in the admin area: MIME HTML, Email Admin Format.

    I am not specifying any HTML template for the 'escalate_product_interests' . So I believe it uses the default template.

    What could be the problem? Please help. Thank you.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Email not sent in HTML format

    To whom are you sending this test to?
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,246
    Plugin Contributions
    58

    Default Re: Email not sent in HTML format

    Is the user account you are sending too accepting html... their account is it text or html as their choice?

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  4. #4

    Default Re: Email not sent in HTML format

    Quote Originally Posted by mprough View Post
    Is the user account you are sending too accepting html... their account is it text or html as their choice?
    The account the email being sent to is Gmail. It's obvious that Gmail accepts HTML messages. I am sending the mail using smtpauth using Brinkster Mail. I checked with the host and they said they have no restriction in sending HTML mails.

  5. #5
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,246
    Plugin Contributions
    58

    Default Re: Email not sent in HTML format

    Quote Originally Posted by thinknirmal View Post
    The account the email being sent to is Gmail. It's obvious that Gmail accepts HTML messages. I am sending the mail using smtpauth using Brinkster Mail. I checked with the host and they said they have no restriction in sending HTML mails.
    When ZC accounts are created whether admin or not the account is dubbed text or html, regardless of the email account ZC will only send text to a text account.

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Email not sent in HTML format

    Also if this is the admin email account of record, then emails to the admin are always as text
    Zen-Venom Get Bitten

  7. #7

    Default Re: Email not sent in HTML format

    Thank you for the sincere reply.

    Quote Originally Posted by kobra View Post
    Also if this is the admin email account of record, then emails to the admin are always as text
    Then how to go about with HTML emails?
    I am sending the email to abc######################.
    abc###################### is registered as Admin.

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Email not sent in HTML format

    Use another address or BETTER yet change your admin email to one that is representative of your company...
    You do not see or receive email from amazon, MicroSoft, or any other "real" company from a gmail or Yahoo addy

    I woud "freak" if I received a valid email from paypal from a gmail account
    Last edited by kobra; 6 Jan 2009 at 06:26 AM.
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Email not sent in HTML format

    Quote Originally Posted by kobra View Post
    Also if this is the admin email account of record, then emails to the admin are always as text
    Quote Originally Posted by thinknirmal View Post
    Then how to go about with HTML emails?
    I am sending the email to abc######################.
    abc###################### is registered as Admin.
    Admin-copy emails are sent as HTML if you have the "Send Admin emails as ..." set to HTML in Admin->Configuration->Email Options (and of course have Send as MIME HTML enabled)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Email not sent in HTML format

    Opps!!! Who put that switch there???
    Zen-Venom Get Bitten

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Send email in HTML format
    By tips007 in forum General Questions
    Replies: 6
    Last Post: 18 Jan 2013, 05:05 PM
  2. Cannot Send HTML Email Format
    By kcchan in forum General Questions
    Replies: 4
    Last Post: 29 Mar 2009, 05:19 AM
  3. Send Welcome Email in HTML format
    By artcoder in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Mar 2008, 07:03 AM
  4. HTML Email Format
    By shrimp-gumbo-mmmhhh in forum General Questions
    Replies: 2
    Last Post: 26 Feb 2008, 01:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg