473,408 Members | 2,402 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Problems sending mail using ASPmail

Hi,
I'm trying to use ASPmail in order to send an email, for some reason the
email arrives to the recipent but the body isn't sent with it and the
subject is shown as question marks(encoding problems probably)

This is the code :
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromName = mailer.EncodeHeader(fromtitle)
Mailer.FromAddress= from
Mailer.RemoteHost = "localhost"
Mailer.AddRecipient recipent,recipent
Mailer.Subject = mailer.EncodeHeader(subject)
Mailer.BodyText = html
Mailer.ContentType = "text/html"
Mailer.Encoding=1
Mailer.CustomCharSet="windows-1255"
if Mailer.SendMail then
Response.Write ""
else
Response.Write "Mail send failure. Error was " & Mailer.Response
end if
set mailer=nothing


Thx,
Roy.
Jul 19 '05 #1
1 2341
I recommend you remove the following line, re-send the mail and see what
happens. I am guessing the mail reader does not have this character set
installed.

Mailer.CustomCharSet="windows-1255"
--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"Roy Danon" <ad***@droyd.net> wrote in message
news:c4**********@news2.netvision.net.il...
Hi,
I'm trying to use ASPmail in order to send an email, for some reason the
email arrives to the recipent but the body isn't sent with it and the
subject is shown as question marks(encoding problems probably)

This is the code :
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromName = mailer.EncodeHeader(fromtitle)
Mailer.FromAddress= from
Mailer.RemoteHost = "localhost"
Mailer.AddRecipient recipent,recipent
Mailer.Subject = mailer.EncodeHeader(subject)
Mailer.BodyText = html
Mailer.ContentType = "text/html"
Mailer.Encoding=1
Mailer.CustomCharSet="windows-1255"
if Mailer.SendMail then
Response.Write ""
else
Response.Write "Mail send failure. Error was " & Mailer.Response
end if
set mailer=nothing


Thx,
Roy.

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stephajn Craig | last post by:
It's been a while since I posted here, but here goes. Our server is a Windows 2000 Server with Service Pack 3, IIS 5 with Lockdown Wizard applied. My first problem is related to...
6
by: Steve Bywaters | last post by:
Since 2000, I have built a web site for a client in ASP, using CDO mail. All has been well, and I have getting extension projects from them <g> But while I was away on the holiday over Christmas,...
5
by: Kelli | last post by:
Hi there, I'm wondering if someone can have a quick look at my code and see if there's anything that I've done wrong. This silly script is driving me crazy! <% DIM File, Upload, Count,...
11
by: Jonah Olsson | last post by:
Hi guys, I'm trying to figure out how to use MailMessage to send mails with a different return path than the sender if the delivery fails. Here's the case: Sender: Joe's Pizza Sender email:...
0
by: Chris | last post by:
I love the new mail class but if I'm not using the built in MS SMTP server how can I utilize it? Before I was using my ASP pages and ASPMail. My mail server is IMail (and is on the same box with my...
3
by: armando perez | last post by:
Hi, this is my first time here, but I was looking for something that may help me, and still, I haven't found something to use. I'm using a website made in .NET with C#, when I'm running my site...
8
by: Mike Owen | last post by:
Hi, I am using the following code to send email on a Windows 2003 Web Server: Imports System.Net.Mail ........ Dim msgmail As New MailMessage msgmail.To.Add(New...
1
by: Proteus | last post by:
Hi, I have written some very simple code that runs within my website that use system.web.mail to send an email using the SMTP server here. It works fine. However when I alter the code to work...
2
by: oliu321 | last post by:
Hi, First I am not trying to write a client to talk with hotmail straightly. I am trying to write some codes to send emails through a SMTP server. I wrote a C++ version using pure socket...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.