Hey guys,
First off... love SwiftMailer.
Gotta question about how to craft my plain text and HTML messages.
The email that I am sending will include a URL link like the following:
http://www.mysite.com/page.php?x=12&y=34
When I craft my plain text and html message to put into the SwiftMailer $message->attach(new Swift_Message_Part($plainTextVersion)) and .. {repeat}.. ift_Message_Part($htmlVersion))...
..do I need to write the ampersand in the URL as '&', or do I write it as '&'? I don't know whether I need to use the HTML equivalent or not. I am having problems with my emails getting sent to junk folders and didn't know if this could be a culprit.
IE: Which one?
1) $plainTextVersion = 'Blah Blah Blah\n\nhttp://www.mysite.com/page.php?x=12&y=34';
- or -
2) $plainTextVersion = 'Blah Blah Blah\n\nhttp://www.mysite.com/page.php?x=12&y=34';
Thanks for any help!
Using & for URL parameter?
Moderators: Chris Corbyn, General Moderators
- seodevhead
- Forum Regular
- Posts: 705
- Joined: Sat Oct 08, 2005 8:18 pm
- Location: Windermere, FL
- andyhoneycutt
- Forum Contributor
- Posts: 468
- Joined: Wed Aug 27, 2008 10:02 am
- Location: Idaho Falls
Re: Using & for URL parameter?
I've had success with both, but results may vary depending on the end-user's browser.
-Andy
-Andy
Re: Using & for URL parameter?
& is a special HTML character, for use in HTML documents to be rendered on the browser screen. URLs are entirely different, not part of HTML standards.