/    Sign up×
Community /Pin to ProfileBookmark

Mail via SwiftMail failing to send links

Hey all,

I have a simple script that sends an email to a couple of people. I have had it running for a year or two without any issues but all of a sudden it seems to have stopped working (no idea why). After searching and testing I found that it is much easier/better to use something like SwiftMailer if you have html emails. So I set that up and am still having the same issue..
If I have the following in the email content, it works fine:

[code=php]
$mailContent = “Click <a href=’http://mywebsite.com’>here</a> to go to a website”;
[/code]

But if I make that :

[code=php]
$mailContent = “Click <a href=’http://mywebsite.com/page’>here</a> to go to a website”;
[/code]

I never get the email.. Maybe this is a problem with me receiving the email rather than how it sends (ie my gmail blocks it?).. but it doesn’t make any sense to me. Any ideas as to what is causing it and how to fix it?

Thanks!

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @lilfellabob spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.22,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...