• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 335
  • Last Modified:

Send an email upon checkout

My checkout page sends a confirmation email for any purchase made via the website. However, I am adding functionality to this code so when users select to e-mail a gift card it will send the recipient an email and the purchaser will receive the confirmation email of the order. The confirmation email to the purchaser is working properly, but the recipient is not receiving the gift card via e-mail. I am hoping you can help me find out what is missing so recipients can receive the gift card in an email format. I've attached my code-behind page. To reference the code I created, please do a find on "sendGiftCardsViaEmail".
SecureCheckoutEx.aspx.cs
0
is_staff
Asked:
is_staff
  • 10
  • 8
  • 2
1 Solution
 
daveamourCommented:
Have you tried debugging this and stepping through it?
0
 
is_staffAuthor Commented:
yes
0
 
daveamourCommented:
And what happened?
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
is_staffAuthor Commented:
i've tried placing several breakpoints but it doesnt seem to be hitting them.
0
 
Roopesh ReddyIT AnalystCommented:
Hi,

I see sendGiftCardsViaEmail() function sending mail only for the purchaser! I didn't see the code send for sending the Gift Card!

Instead of sending the Gift Card, send him the link to the gift card. Once he clicks on the link, you just display the gift card!

Hope it helps u...
0
 
is_staffAuthor Commented:
Are you sure? Lines 1932-2039 should be sending the gift card. There's even a string called MessagetoFriend.
0
 
Roopesh ReddyIT AnalystCommented:
Hi,

Oh k!

Also make sure, you are attaching the images -
fileName2 = fileName2 + "/Shop/myLogoConfirm.jpg";

Open in new window


paths are correct!

Hope it helps u...
0
 
is_staffAuthor Commented:
Any ideas why it wouldnt send?
0
 
Roopesh ReddyIT AnalystCommented:
Hi,

Is the image paths are correct?

Try debug and check whether the images are referenced correctly!

Also check this link - http://stackoverflow.com/questions/5293078/send-email-with-image-embedded-image-not-visible

Hope it helps u...
0
 
is_staffAuthor Commented:
Yes. The paths are correct.
0
 
Roopesh ReddyIT AnalystCommented:
Hi,

Did you checked the link?
0
 
is_staffAuthor Commented:
The image links? If so, then yes.
0
 
Roopesh ReddyIT AnalystCommented:
0
 
is_staffAuthor Commented:
Thanks! I'll check it out. i'm not so much worried about the images at this point. I'll send plain text if i have to. I just want the email to send upon checkout for the time being. Thank u
0
 
Roopesh ReddyIT AnalystCommented:
Hi,

Ok!

Hope it helps u...
0
 
is_staffAuthor Commented:
I'm going to need further assistance. My confirmation email is being sent just fine to the purchaser, why cant the recipient recieive the gift card e-mail? Theyre both set up the same way!
0
 
Roopesh ReddyIT AnalystCommented:
Hi,

You are using AlternateViews for sending the Gift Cards!!!

May that causing the problem!
0
 
is_staffAuthor Commented:
In the link u provided, there are 3 possible answers. Which one do you suggest I should replicate? Thank u! I think I'm getting on the right track now :)
0
 
Roopesh ReddyIT AnalystCommented:
Hi,

You can try the first one, since it helped in most of the cases!

Hope it helps u...
0
 
is_staffAuthor Commented:
Okay. I will give it a shot and let you know my progress. Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 10
  • 8
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now