Jump to content

Recommended Posts

$msg = "Test msg ";
$RemoveMsg = "Extra info ";
$RemoveMsgTag = "< a href='http://site2.desmond-otoole.co.uk/CustomerRemove.php'>Remove me</a>";
$msg .= "\r\n\r\n$RemoveMsg $RemoveMsgTag\r\n";

$success = mail($emailList,$subject, $msg, $headers, '-froot@desmond-otoole.co.uk'); // must comply with » RFC 2822.

Hi I want to send out a mailing list with a link at the bottom for anyone wishing to be removed. I can't get the link working.

 

Link to comment
https://forums.phpfreaks.com/topic/297200-sending-a-html-link-in-a-an-email-mail/
Share on other sites

$name="postmaster";
$site ="millersyard";
$webemail = $site . "@desmond-otoole.co.uk";
$headers = "From: $name <$webemail>\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

$RemoveMsgTag = "< a href='http://site2.desmond-otoole.co.uk/CustomerRemove.php'>Remove me</a>";
$msg .= "\r\n\r\n$RemoveMsg $RemoveMsgTag\r\n";

$success = mail($emailList,$subject, $msg, $headers, '-froot@desmond-otoole.co.uk'); // must comply with » RFC 2822.

I have tried turning it into a html email using code found on internet.

 

 

Using plain text email, I just put the raw link (no anchor tag) on it's own line starting with http://. MOST email clients will automatically change anything that starts with http:// into a clickable link.

 

Try just using:

http://site2.desmond-otoole.co.uk/CustomerRemove.php

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.