HTML Mail

Discussion in 'Customization & add-ons' started by newuser, Dec 12, 2004.

  1. newuser New Member

    Member Since:
    Nov 30, 2004
    Message Count:
    18
    Hello Alex & All:

    Is there any way to incorporate html in the regular signup mail and the periodic emails that I want to send users? I know I can do it manually in the CP but I want to send mail to my free users encouraging them to upgrade and include my nice header image and all that and I want ALL messages sent by email to be html?

    Also, does the script use the sendmail on my server or on cgi-central's servers?

    Thanks in advance.

    Mike
  2. alex Administrator

    Member Since:
    Jan 24, 2004
    Message Count:
    6,007
    Mike,
    of course, you can add line:
    Format: html
    to top of any e-mail template in aMember to send HTML email message.

    You can also add line:
    Attachment: filename.xxx
    and it will attach file "filename.xxx" to your e-mail message.
    File must be placed to amember/templates/ folder.
  3. roni Guest

    Member Since:
    Message Count:
    0
    help on html email

    Hi
    I would be very greatfull if any one can help in giving and example on inserting html in the signup_mail.txt , i have tried several option but could not make it work, you mentioned to add Format: html ontop but when i do that the original codes of amember becomes as text.

    just need a small example please.

    thank you
    roni
  4. alex Administrator

    Member Since:
    Jan 24, 2004
    Message Count:
    6,007
    Not sure which example could be here. May be something like this:

    PHP:
    SubjectMy Welcome E-Mail
    Format
    html

    Dear 
    <i>{$name_f} {$name_l}</i>,

    Thank you for subscribing

       
    Your User ID: <b>{$login}</b>

       
    Your Password: <b>{$pass}</b>

    Log-on to your member pages at:
    {
    $config.root_url}/member.php

    Best Regards
    ,

    Site Team
    Just configure your HTML editor to don't replace { and } with special characters. Or better do all editing with an text editor.
  5. roni Guest

    Member Since:
    Message Count:
    0
    thank you alex for the prompt reply,
  6. gigaenvy New Member

    Member Since:
    Oct 19, 2004
    Message Count:
    33

    I wish a smarty existed for period of subscription or how many months the subscription is for. ;)
  7. jeffro New Member

    Member Since:
    Nov 8, 2003
    Message Count:
    13
    Additional fields for sending the User email

    I was wondering if there is a way to add the product type & expiration date to the email we can send out to users from the Admin panel?

    Is there a method for adding more fields of data?
  8. gigaenvy New Member

    Member Since:
    Oct 19, 2004
    Message Count:
    33

    Give a little take a little...To give the exp. date in an email add the follow:

    {$payment.expire_date|date_format:"%m/%d/%Y"}

    If you find out the product code snippet...Let me know. The best way is to contact support and they will give you a straight answer.

    Goodluck
  9. jeffro New Member

    Member Since:
    Nov 8, 2003
    Message Count:
    13
    I tried that. It doesn't seem to work.

    Thanks for the suggestion, though!
  10. gantocks New Member

    Member Since:
    Feb 2, 2005
    Message Count:
    22
    Hi there

    Is it possible to include a header file (email_header.html)with images and a footer (email_footer.html)

    If so how would I do it?

  11. alex Administrator

    Member Since:
    Jan 24, 2004
    Message Count:
    6,007
    yes

    Code:
    Subject: My Welcome E-Mail
    Format: html
    
    {include file="email_header.html"}
    
    Dear <i>{$name_f} {$name_l}</i>,
    
    Thank you for subscribing.
    
       Your User ID: <b>{$login}</b>
    
       Your Password: <b>{$pass}</b>
    
    Log-on to your member pages at:
    {$config.root_url}/member.php
    
    Best Regards,
    
    Site Team 
    {include file="footer.html"}
    
  12. kobisrael New Member

    Member Since:
    Aug 14, 2005
    Message Count:
    6
  13. Ctboy New Member

    Member Since:
    Jan 3, 2006
    Message Count:
    5
    Did you save the HTML file in the same directory?

    I find when doing mail outs with custom headers and footers to do an absolute reference (i.e. instead of pointing images/header.jpg - as an example)
    i.e.
    http://www.mysite.com/images/header.jpg

    Give this a go and you may get the answer you want.

    Hope this helps.
  14. jumble New Member

    Member Since:
    Jan 24, 2006
    Message Count:
    4
  15. alex Administrator

    Member Since:
    Jan 24, 2004
    Message Count:
    6,007
    Which aMember Pro version are you using? Which e-mail client?
    Could you contact us via helpdesk with site access info?
  16. jumble New Member

    Member Since:
    Jan 24, 2006
    Message Count:
    4
    Problem solved!

    I have solved the problem.

    Hope this can help others with the same issue.
    I deleted all the " \r " in common.inc.php
    except of the line: $text = join("\r\n", preg_split("|\r*\n|", $text));

    :D
  17. brent_env aMember Pro Customer

    Member Since:
    Sep 18, 2007
    Message Count:
    5
    Using simple formatting within E-Mail Template

    How do I correctly use HTML formatting in the template emails (i.e. <b>, <i>)?

    On the "Edit E-Mail Template" page within the aMember CP, I did try selecting "HTML E-mail" from the "E-Mail Message Type" drop-down.

    In the E-Mail Message box, adding <b> and </b> did bold the text within, but I lose all of the the line returns and hyperlinks in the received email. Must I add these manually when switching to HTML type?

    Is there not a simple way of adding bold, italics, etc, within the "Plain text (default)" email message type?

    Thanks in advance,
    Brent
  18. tylergraf New Member

    Member Since:
    Aug 23, 2011
    Message Count:
    8
    You could use <br /> tags for line breaks.

    I know it's been a couple years since this post but just thought I'd answer.

Share This Page