Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Simple anchor link in contact form

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #39265
    aaronheine
    Participant

    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

    #107531
    TheDoc
    Moderator

    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.

    #107572
    aaronheine
    Participant

    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
    #107588
    TheDoc
    Moderator

    It says ‘solved’, did you get it?

    #107589
    aaronheine
    Participant

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

    #107598
    TheDoc
    Moderator

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

    #107599
    TheDoc
    Moderator

    I think the important part is setting the headers.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Back End’ is closed to new topics and replies.