T
tirrell payton
Hello,
I am attempting to validate my user's email addresses by sending them a
link. However, I am having trouble concatenating the variable name (GUID)
into the url. Im using C#:
public void SendSignupEmail(string emailaddress, string customerid)
{
SmtpClient mysmtpclient = new SmtpClient();
MailMessage mymailmessage = new MailMessage();
MailAddress mymailaddress = new MailAddress("(e-mail address removed)",
"Signup");
mysmtpclient.Host = "smtp.domain.com";
mysmtpclient.Port = 25;
mymailmessage.From = mymailaddress;
mymailmessage.To.Add("(e-mail address removed)");
mymailmessage.Subject = "Thank you for signing up";
mymailmessage.IsBodyHtml = true;
//this is the part where I am having problems, I want to put the
customerid in the url, but I dont know the syntax
mymailmessage.Body = "<p><a
href='http://www.domain.com/confirmation.aspx?customerid=&customerid'click
here to validate your signup</a></p>";
mysmtpclient.Send(mymailmessage);
}
I am attempting to validate my user's email addresses by sending them a
link. However, I am having trouble concatenating the variable name (GUID)
into the url. Im using C#:
public void SendSignupEmail(string emailaddress, string customerid)
{
SmtpClient mysmtpclient = new SmtpClient();
MailMessage mymailmessage = new MailMessage();
MailAddress mymailaddress = new MailAddress("(e-mail address removed)",
"Signup");
mysmtpclient.Host = "smtp.domain.com";
mysmtpclient.Port = 25;
mymailmessage.From = mymailaddress;
mymailmessage.To.Add("(e-mail address removed)");
mymailmessage.Subject = "Thank you for signing up";
mymailmessage.IsBodyHtml = true;
//this is the part where I am having problems, I want to put the
customerid in the url, but I dont know the syntax
mymailmessage.Body = "<p><a
href='http://www.domain.com/confirmation.aspx?customerid=&customerid'click
here to validate your signup</a></p>";
mysmtpclient.Send(mymailmessage);
}