Asp.Net and Aweber

by Mark Wiseman on June 30th, 2009 | Posted in Revium Sandbox | Read the comments

ALFitness recently wanted to change their users’ email marketing tool and decided to use aweber. This looked like it would be a simple process but ended up being a nightmare.

When a user joined ALFitness we would subscribe them to an email list in aweber by sending an email. This was not a problem. The problems started when we wanted to parse information from that email so it could be used in the marketing campaign.

i.e. Saving current exercise frequency and activities they enjoyed.

We would receive an email from MAILER-DAEMON@mail1.aweber.com saying:
Hi. This is the qmail-send program at mail1.aweber.com. I’m afraid I wasn’t able to deliver your message to the following addresses. This is a permanent error; I’ve given up. Sorry it didn’t work out.

It would then attach a copy of our email with the body formatted strangley:
Exercise Regularity: 1-3 times per week=0D=0AActivities Enjoyed: Home gym=0D=0A

The problem is instead of Carriage Return Line Feeds it was recieving =0D=0A. After a lot of time on the phone with Aweber and a lot of searching I found out that we were sending our emails with: Content-Transfer-Encoding: quoted-printable. Apparantly there are some systems that cannot recognize this and we would need to change this to 7bit. It isn’t obvious how to do this but this is how we achieved it:

Dim message As MailMessage = New MailMessage
message.From = New MailAddress(from)
message.To.Add(pTo)
message.Subject = subject

message.BodyEncoding = Encoding.GetEncoding("iso-8859-1")

Dim plainView As AlternateView = AlternateView.CreateAlternateViewFromString(body, Encoding.GetEncoding("iso-8859-1"), "text/plain")
plainView.TransferEncoding = Net.Mime.TransferEncoding.SevenBit	'VERY IMPORTANT
message.AlternateViews.Add(plainView)

Dim smtpClient As SmtpClient = New SmtpClient
smtpClient.Send(message)

Related posts:

  1. Why should a company outsource thier email delivery?

Tags: email

« Power of the ASP.NET MVC + jquery

Javascript Window Tiling »

2 Responses to “Asp.Net and Aweber”

  1. Arnold Shields says:
    October 2, 2009 at 6:11 pm

    Many thanks for posting that it is saving a lot of time.

    I am using login control to send details directly direct to aweber.
    The alternate view now looks fine but still error?

    Any thoughts?

  2. Mark Wiseman says:
    October 5, 2009 at 1:49 pm

    Hi Arnold.
    It’s really hard to say without seeing the error you are receiving now. If =0D=0A has been removed it is possibly the parser you have set up in AWeber. That is what they kept telling us our problem was. Maybe check that.

Leave a Reply

Click here to cancel reply.

Recent Articles

  • FluentSecurity + MvcSiteMapProvider = Better .Net Security Management
  • Revium To Deliver The ACCC’s Energy Price Comparison website
  • Responsive Web Design
  • Vermont Consulting website launched
  • Code Compliance Monitoring Committee’s website launched
  • Revium: Victorian Government eService provider
  • BelcherPage2012 website goes for gold
  • Tangshan Burak’s website overhaul goes live.

Twitter

  • Sweet ... SugarCRM has new v6.5 for easier nav, rapid access. Call us if you need to get the best out of your CRM http://t.co/iqAcNO6F 6 days ago
  • Using Social Logins? - Nice article on trends and pitch for an aggregrated sharing approach for your site. See http://t.co/ZxFJqyAW 1 week ago
  • What are the issues and pitfalls fir choosing a CMS for your website. Come to the Internet Show in Melbourne on... http://t.co/bojO7dVV 2 weeks ago
  • More updates...

Revium Logo

  • Home
  • About
  • Expertise
  • Showcase
  • Contact

  • news
  • blog
  • sandbox
  • twitter
  • rss
  • visit our facebook page

We are Revium, hear us roar!

The news.

13 Feb

Revium To Deliver The ACCC’s Energy Price Comparison website

The ACCC selects Melbourne Based Digital Agency Revium to deliver the Australian Energy Regulator’s Online Energy Price Comparison website. The major purpose of the energy price…

Continue reading
View archive

The blog.

07 Nov

Revium: Victorian Government eService provider

Revium is pleased to be accepted on the refreshed Victorian eServices Panel, and proud to be able to provide the Victorian Government with Systems…

Continue reading
View archive

The sandbox.

08 May

FluentSecurity + MvcSiteMapProvider = Better .Net Security Management

In my continual quest for find better ways of doing anything and everything this week I decided to tackle on of my arch nemesis:…

Continue reading
View archive

eNewsletter.

 

© Copyright 2012. All Rights Reserved.

Revium Pty Ltd

info@revium.com.au Work +61 3 9429 2000

10 Harvey Street
Richmond, Victoria, 3121 Australia
View map

Disclaimer and privacy Revium Pty Ltd

Find us: web development, seo

 
Partner logos