Grow your CSS skills. Land your dream job.

Simple anchor link in contact form

  • # August 8, 2012 at 2:05 pm

    I’m trying to put a link in the confirmation email sent to customers. What I have doesn’t work.

    $Body .= $Name;
    $Body .= "n";
    $Body .= "Thank you for your interest in Goodwyn. Please visit For Sale";
    $Body .= $Email;

    Thanks

    # August 8, 2012 at 2:12 pm

    Needs to be:

    $Body .= $Name;
    $Body .= "n";
    $Body .= 'Thank you for your interest in Goodwyn. Please visit For Sale';
    $Body .= $Email;

    Note the change to single quotes around the string. The problem was you had two sets of double quotes due to the href.

    # August 9, 2012 at 10:09 am

    That does work but…

    The email doesn’t create the link as it should. It’s fully written out like what you see below with only the address as a link. I dont want the address to be seen just the For Sale link.

    Thank you for your interest in Goodwyn Building. Please visit For Sale
    # August 9, 2012 at 1:58 pm

    It says ‘solved’, did you get it?

    # August 9, 2012 at 2:01 pm

    Well half solved. The form works, but it doesn’t format the link.

    # August 9, 2012 at 2:18 pm

    I should have done a search already! http://css-tricks.com/sending-nice-html-email-with-php/

    # August 9, 2012 at 2:20 pm

    I think the important part is setting the headers.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".