Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Links::send_email - being classed as spam :/

Quote Reply
Links::send_email - being classed as spam :/
Hi,

Just wondering if anyone worked out a solution for emails being classed as SPAM (on gmail.com, in my case) - sent via Links::send_email(). The code is:

Code:
Links::send_email("priority_thanks.eml", { %$IN, %$link, %$USER } ) or die "Unable to send message: $GT::Mail::error";

That works fine, and the email is definatly sent out - but its just put in the spam folder, instead of my Inbox :(

The email template is as follows:

Code:
To: <%if Email%><%if Name%>"<%Name%>" <<%Email%>><%else%><%Email%><%endif%><%elsif Name%>"<%Name%>" <<%Email%>><%else%><%Email%><%endif%>
Subject: Thanks for your purchase. Order confirmation: <%custom%>
From: <%config.db_admin_email%>
Content-Type: text/html


<html>

<head>
<meta http-equiv="Content-Language" content="en-gb">
</head>

<body>

<p>Hi,</p>
<p>Thanks for your purchase of a &quot;priority listing&quot; on our site. You should now
be able to see your listing in its peak spot, at the top of your category (even
on sub-pages of the given category). The priority status will expire on <%Expires%></p>
<p>The details of your purchase are as follows:</p>

<p><b>Payment Date:</b> <%payment_date%></p>
<p><b>First Name:</b> <%first_name%><br>
<b>Last Name:</b> <%last_name%><br>
<br>
<b>Country:</b> <%residence_country%></p>
<p><b>Item Name:</b> <%item_name%></p>
<p><b>Payment Amount:</b> <%payment_gross%><br>
<b>Currency:</b> USD</p>

</font>
<p>We would like to take this time to thank you again for your purchase, and we
hope it brings you much traffic!</p>
<p>Cheers</p>
<p><%site_title%></p>
</body>

</html>

Am I missing a header tag or something?

TIA! This one has been bugging me all day Frown

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Links::send_email - being classed as spam :/ In reply to
Hi Andy,
perhaps it's not the missing header tag, but the combination of your email + domain + automated email script.
I don't know how someone gets on a spam list, but sending many emails with an automated script is, so I think, one way.
There must be only few people who put your email on their personal spamlist. Perhaps they are to lazy to unsubscribe or to delete their account, and then you are getting on the default spam list of their provider/free email server.....

Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Links::send_email - being classed as spam :/ In reply to
Hi,

Thanks for the reply.

I guess it could be, but if I send it as just plain text , it seems to come through ok. Ideally, I want to use HTML email's - but I guess if push comes to shove, I'll have no choice but to change them over to plain text :(

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Links::send_email - being classed as spam :/ In reply to
Hi Andy,
I'm blocking html mails, since 2002 or was it 2000 :-)
Plain text, that's all an email needs.

Matthias

Matthias
gpaed.de