Hotmail Problems / SPF record and Google Apps

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
dirkr
Forum Newbie
Posts: 20
Joined: Sat Jul 07, 2007 2:55 pm

Hotmail Problems / SPF record and Google Apps

Post by dirkr »

i'm currently having problems with hotmail blocking every mail with a url in it
( and i really need to send mails with url's in them )

i had my provider add my SPF record but no change at all.

now i was thinking that maybe if i move to GoogleApps and use their smtp that it might work?

well on that note i'm wondering if i have to add google's smtp server to my spf record or not?

anybody who knows how i can get my mails with links to hotmail accounts ( other html links work fine ) or knows about the spf record.. would be appreciated
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Have you tried using a different URL such as http://www.google.com/?q=coffee ? Perhaps the spam filter doesn't like the particular URLs you're sending. Do they all reference the same website?
dirkr
Forum Newbie
Posts: 20
Joined: Sat Jul 07, 2007 2:55 pm

Post by dirkr »

it is every url i put...
if i put the url in plaintext it works ..but if i add it as a clickable html tag <a href =""></a> then it gets blocked
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Can you post the code please? More than likely the amount of text in comparison to the amount of HTML is too high.
dirkr
Forum Newbie
Posts: 20
Joined: Sat Jul 07, 2007 2:55 pm

Post by dirkr »

uhm here is the mail that is supposed to get sent out :

Code: Select all

$smtp =& new Swift_Connection_SMTP("hosturlhere");
$smtp ->setUsername('loginhere');
$smtp ->setpassword('pwhere');

$swift =& new Swift($smtp);

$message->attach(new Swift_Message_Part('Your MOHRCO.NET Coupons \n\n Please go to the url below and print out your promotions to keep on site as reference for MOHRCO.NET Consumer Members.\n\n http://mohrco.net/shCompanyPrintCoupons ... d='.$mid.' \n\n Kind Regards, \n\n\n Mohrco.net'));
$message->attach(new Swift_Message_Part("<h2>Your MOHRCO.NET Coupons</h2><br><br>
                                                <p>Here is a list of the coupons your company is currently offering. Please click the link below and print out your promotions to keep on site as reference for MOHRCO.NET Consumer  
                                                 Members.</p><br>
						<p><a href=http://mohrco.net/shCompanyPrintCoupons.php?mid=".$mid.">View and print coupon.</a><p>
						<p>If you don't see that link or you can't click it copy this link to your browser:</p>
						<p>http://mohrco.net/shCompanyPrintCoupons.php?mid=".$mid."</p>
						<br><br>
						<p>Kind regards,<p>
						<br>
						<p>Mohrco.net </p>","text/html"));

		
		if($swift->send($message, new Swift_Address('ronsmansdirk@hotmail.com'), new Swift_Address('noreply@mohrco.net','MOHRCO.NET')))
		{
			echo('Sent SuccesFull'); 
		}
		else
		{
			echo('Sent Failed');
		}

i've also just tried it with just mailing some text and a url link..
example : testmail <a href=google.com>google.com</a>
but this fails too

and the weird part is .. it used to work.. i was able to send out my mails ( like these ) but from one day to another hotmail stopped receiving them

edit : oh by the way.. its not just with links ( i think ) the smoke embedded image test fails too .. however the multipart mail works ( the one with the <strong> tags )
so thats why i'm so clueless as to what it is
Post Reply