Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 ho to attech pdf using jmail

Author  Topic 

chiragvm
Yak Posting Veteran

65 Posts

Posted - 2006-06-15 : 01:55:35
hello friends
i need your help
i want to attech a pdf using jmail
i write this code

*
Dim mailObj As New MailMessage
Try
Dim culInfo As New Globalization.CultureInfo("en-US", True)
timestamp = Date.Parse(timestamp, culInfo).ToString("dd/MM/yyyy hh:mm:ss tt")

Dim jmail As Object = Server.CreateObject("JMail.SMTPMail")

' This is my local SMTP server
jmail.ServerAddress = ReadConfig("mailserver")
' This is me....
jmail.Sender = ReadConfig("mailfromalerts") jmail.Subject = "Alert for " & servername
jmail.htmlbody="----------------------------------"
jmail.AddRecipient(useremail)
jmail.AddAttachment(Server.MapPath("PdfFiles/" & agentid & ".pdf"))

/*


i using this much of code but problem to send email or send email with attechment
please help me as soon as possible

KenW
Constraint Violating Yak Guru

391 Posts

Posted - 2006-06-15 : 14:29:22
chiraqvm,

What does your question have to do with .NET or SQL Server?

Ken
Go to Top of Page

MichaelP
Jedi Yak

2489 Posts

Posted - 2006-06-15 : 16:13:02
I suggest going to the JMail support forums.

Michael

<Yoda>Use the Search page you must. Find the answer you will. Cursors, path to the Dark Side they are. Avoid them, you must. Use Order By NewID() to get a random record you will.</Yoda>

Opinions expressed in this post are not necessarily those of TeleVox Software, inc. All information is provided "AS IS" with no warranties and confers no rights.
Go to Top of Page
   

- Advertisement -