test vs html multipart

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
choubix
Forum Commoner
Posts: 42
Joined: Tue Nov 06, 2007 12:21 pm

test vs html multipart

Post by choubix »

hello,

I will send a multipart message as part of my "I try to avoid my emails being sent to the Junk folder" ;)

just a couple of questions:
is it possible to format the text message?
how do I embed links in the text message?

can I send 2 html messages on top of the text message? (one with a template, one without)

ps: I managed to get my reverse dns right: pining ing my fixed ip address address points to smtp.mydomain.com !! :)

just need the spf record and i am good to go ;)

by the way:

does this syntax look ok?

"v=spf1 a a:smtp.mydomain.com mx:smtp.mydomain.com ~all"

should it point to smtp.mydomain.com or to mydomain.com ?

thanks!
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

You can send more than one HTML part if you want to but most email clients won't like it so I'd avoid it. Generally clients will just choose between HTML or text.

The SPF record has the correct syntax yes. You'd want that SPF record setting against the domain in the email address. i.e.:

user@mydomain.com

Needs the SPF record applying as a TXT field to "mydomain.com".
choubix
Forum Commoner
Posts: 42
Joined: Tue Nov 06, 2007 12:21 pm

Post by choubix »

hi chris,

honestly there must be something I dont get right:
I am testing the spf records thanks to 2 sites. the 2 of them disagree...

for one: the email would bounce, for the other one the syntax is ambiguous because there is no A record
(there is a A and MX record for both smtp.mydomain.com and mydomain.com)

syntaxes I tried were:

v=spf1 mx -all

v=spf1 a mx -all

v=spf1 mx ~all"

v=spf1 a mx ~all
Post Reply